dwt 17.3.4 → 18.0.2
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/LICENSE.txt +2 -2
- package/README.md +26 -33
- package/dist/addon/dbrjs/dbr-9.2.13.browser.worker.js +11 -0
- package/dist/addon/dbrjs/dbr-9.2.13.full.wasm +0 -0
- package/dist/addon/dbrjs/{dbr-8.8.7.full.wasm.js → dbr-9.2.13.full.wasm.js} +285 -285
- package/dist/addon/dbrjs/dbr.js +21 -22
- package/dist/addon/dynamsoft.webtwain.addon.camera.css +7 -7
- package/dist/dist/DynamsoftServiceSetup-arm64.deb +0 -0
- package/dist/dist/DynamsoftServiceSetup.deb +0 -0
- package/dist/dist/DynamsoftServiceSetup.msi +0 -0
- package/dist/dist/DynamsoftServiceSetup.pkg +0 -0
- package/dist/dist/DynamsoftServiceSetup.rpm +0 -0
- package/dist/dynamsoft.webtwain.min.js +327 -191
- package/dist/dynamsoft.webtwain.min.mjs +330 -195
- package/dist/src/{dynamsoft.imagecore-1.7.3.wasm → dynamsoft.imagecore-1.8.0.wasm} +0 -0
- package/dist/src/{dynamsoft.imageio-1.7.3.wasm → dynamsoft.imageio-1.8.0.wasm} +0 -0
- package/dist/src/{dynamsoft.imageio_wasm-1.7.3.js → dynamsoft.imageio_wasm-1.8.0.js} +34 -34
- package/dist/src/dynamsoft.lts.js +12 -34
- package/dist/src/{dynamsoft.pdfReader-1.7.3.wasm → dynamsoft.pdfReader-1.8.0.wasm} +0 -0
- package/dist/src/{dynamsoft.pdfReader_wasm-1.7.3.js → dynamsoft.pdfReader_wasm-1.8.0.js} +34 -34
- package/dist/src/dynamsoft.viewer.css +2 -2
- package/dist/src/dynamsoft.viewer.js +1 -1
- package/dist/src/dynamsoft.webtwain.css +43 -21
- package/dist/src/fastcomp/{dynamsoft.imagecore-1.7.3.wasm → dynamsoft.imagecore-1.8.0.wasm} +0 -0
- package/dist/src/fastcomp/{dynamsoft.imageio-1.7.3.wasm → dynamsoft.imageio-1.8.0.wasm} +0 -0
- package/dist/src/fastcomp/{dynamsoft.imageio_wasm-1.7.3.js → dynamsoft.imageio_wasm-1.8.0.js} +34 -34
- package/dist/types/Addon.Camera.d.ts +22 -4
- package/dist/types/Dynamsoft.Enum.d.ts +14 -0
- package/dist/types/Dynamsoft.d.ts +81 -2
- package/dist/types/WebTwain.Acquire.d.ts +37 -3
- package/dist/types/WebTwain.Viewer.d.ts +21 -17
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/addon/dbrjs/dbr-8.8.7.full.wasm +0 -0
- package/dist/addon/dbrjs/dbr-8.8.7.worker.js +0 -113
- package/dist/dist/DynamsoftServiceSetup-mips64el.deb +0 -0
- package/samples/AcquireImage.html +0 -69
- package/samples/CustomScan.html +0 -98
- package/samples/Dynamic Web TWAIN Online Demo.html +0 -8
- package/samples/Dynamic Web TWAIN Sample Code Gallery.html +0 -8
- package/samples/Edit.html +0 -111
- package/samples/LoadAndSaveImages.html +0 -103
- package/samples/Navigation.html +0 -197
- package/samples/PDFRasterizer.html +0 -88
- package/samples/ReadBarcode.html +0 -231
- package/samples/ScanOrCapture.html +0 -202
- package/samples/Thumbnail.html +0 -88
- package/samples/mobilebrowsercapture.html +0 -13
- /package/dist/src/{dynamsoft.crypto-1.7.3.wasm → dynamsoft.crypto-1.8.0.wasm} +0 -0
- /package/dist/src/{dynamsoft.imageProc-1.7.3.wasm → dynamsoft.imageProc-1.8.0.wasm} +0 -0
- /package/dist/src/{dynamsoft.imageProc-sn-1.7.3.wasm → dynamsoft.imageProc-sn-1.8.0.wasm} +0 -0
- /package/dist/src/{dynamsoft.pdfWriter-1.7.3.wasm → dynamsoft.pdfWriter-1.8.0.wasm} +0 -0
- /package/dist/src/fastcomp/{dynamsoft.crypto-1.7.3.wasm → dynamsoft.crypto-1.8.0.wasm} +0 -0
- /package/dist/src/fastcomp/{dynamsoft.imageProc-1.7.3.wasm → dynamsoft.imageProc-1.8.0.wasm} +0 -0
- /package/dist/src/fastcomp/{dynamsoft.pdfWriter-1.7.3.wasm → dynamsoft.pdfWriter-1.8.0.wasm} +0 -0
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* @website http://www.dynamsoft.com
|
|
5
5
|
* @preserve Copyright 2022, Dynamsoft Corporation
|
|
6
6
|
* @author Dynamsoft
|
|
7
|
-
* @version
|
|
8
|
-
* @
|
|
7
|
+
* @version 18.0.0-build002 61724
|
|
8
|
+
* @description Dynamsoft JavaScript Library for WebTWAIN
|
|
9
9
|
*/
|
|
10
|
-
(function(D){
|
|
11
|
-
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.localforage=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){(function(a){"use strict";function c(){k=!0;for(var a,b,c=l.length;c;){for(b=l,l=[],a=-1;++a<c;)b[a]();c=l.length}k=!1}function d(a){1!==l.push(a)||k||e()}var e,f=a.MutationObserver||a.WebKitMutationObserver;if(f){var g=0,h=new f(c),i=a.document.createTextNode("");h.observe(i,{characterData:!0}),e=function(){i.data=g=++g%2}}else if(a.setImmediate||void 0===a.MessageChannel)e="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var b=a.document.createElement("script");b.onreadystatechange=function(){c(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},a.document.documentElement.appendChild(b)}:function(){setTimeout(c,0)};else{var j=new a.MessageChannel;j.port1.onmessage=c,e=function(){j.port2.postMessage(0)}}var k,l=[];b.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(a,b,c){"use strict";function d(){}function e(a){if("function"!=typeof a)throw new TypeError("resolver must be a function");this.state=s,this.queue=[],this.outcome=void 0,a!==d&&i(this,a)}function f(a,b,c){this.promise=a,"function"==typeof b&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),"function"==typeof c&&(this.onRejected=c,this.callRejected=this.otherCallRejected)}function g(a,b,c){o(function(){var d;try{d=b(c)}catch(b){return p.reject(a,b)}d===a?p.reject(a,new TypeError("Cannot resolve promise with itself")):p.resolve(a,d)})}function h(a){var b=a&&a.then;if(a&&("object"==typeof a||"function"==typeof a)&&"function"==typeof b)return function(){b.apply(a,arguments)}}function i(a,b){function c(b){f||(f=!0,p.reject(a,b))}function d(b){f||(f=!0,p.resolve(a,b))}function e(){b(d,c)}var f=!1,g=j(e);"error"===g.status&&c(g.value)}function j(a,b){var c={};try{c.value=a(b),c.status="success"}catch(a){c.status="error",c.value=a}return c}function k(a){return a instanceof this?a:p.resolve(new this(d),a)}function l(a){var b=new this(d);return p.reject(b,a)}function m(a){function b(a,b){function d(a){g[b]=a,++h!==e||f||(f=!0,p.resolve(j,g))}c.resolve(a).then(d,function(a){f||(f=!0,p.reject(j,a))})}var c=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(new TypeError("must be an array"));var e=a.length,f=!1;if(!e)return this.resolve([]);for(var g=new Array(e),h=0,i=-1,j=new this(d);++i<e;)b(a[i],i);return j}function n(a){function b(a){c.resolve(a).then(function(a){f||(f=!0,p.resolve(h,a))},function(a){f||(f=!0,p.reject(h,a))})}var c=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(new TypeError("must be an array"));var e=a.length,f=!1;if(!e)return this.resolve([]);for(var g=-1,h=new this(d);++g<e;)b(a[g]);return h}var o=a(1),p={},q=["REJECTED"],r=["FULFILLED"],s=["PENDING"];b.exports=e,e.prototype['catch']=function(a){return this.then(null,a)},e.prototype.then=function(a,b){if("function"!=typeof a&&this.state===r||"function"!=typeof b&&this.state===q)return this;var c=new this.constructor(d);if(this.state!==s){g(c,this.state===r?a:b,this.outcome)}else this.queue.push(new f(c,a,b));return c},f.prototype.callFulfilled=function(a){p.resolve(this.promise,a)},f.prototype.otherCallFulfilled=function(a){g(this.promise,this.onFulfilled,a)},f.prototype.callRejected=function(a){p.reject(this.promise,a)},f.prototype.otherCallRejected=function(a){g(this.promise,this.onRejected,a)},p.resolve=function(a,b){var c=j(h,b);if("error"===c.status)return p.reject(a,c.value);var d=c.value;if(d)i(a,d);else{a.state=r,a.outcome=b;for(var e=-1,f=a.queue.length;++e<f;)a.queue[e].callFulfilled(b)}return a},p.reject=function(a,b){a.state=q,a.outcome=b;for(var c=-1,d=a.queue.length;++c<d;)a.queue[c].callRejected(b);return a},e.resolve=k,e.reject=l,e.all=m,e.race=n},{1:1}],3:[function(a,b,c){(function(b){"use strict";"function"!=typeof b.Promise&&(b.Promise=a(2))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(a){return}}function f(){try{if(!ua)return!1;var a=1,b="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");if(!b)a="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform);return(b||!a)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(a){return!1}}function g(a,b){a=a||[],b=b||{};try{return new Blob(a,b)}catch(f){if("TypeError"!==f.name)throw f;for(var c="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,d=new c,e=0;e<a.length;e+=1)d.append(a[e]);return d.getBlob(b.type)}}function h(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}function i(a,b,c){"function"==typeof b&&a.then(b),"function"==typeof c&&a['catch'](c)}function j(a){return"string"!=typeof a&&(console.warn(a+" used as a key, but it is not a string."),a=String(a)),a}function k(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}function l(a){for(var b=a.length,c=new ArrayBuffer(b),d=new Uint8Array(c),e=0;e<b;e++)d[e]=a.charCodeAt(e);return c}function m(a){return new va(function(b){var c=a.transaction(wa,Ba),d=g([""]);c.objectStore(wa).put(d,"key"),c.onabort=function(a){a.preventDefault(),a.stopPropagation(),b(!1)},c.oncomplete=function(){var _h=navigator.userAgentData,a=!0,c=!1;if(_h){c=!0;}else{a=navigator.userAgent.match(/Chrome\/(\d+)/),c=navigator.userAgent.match(/Edge\//);}b(c||!a||parseInt(a[1],10)>=43)}})['catch'](function(){return!1})}function n(a){return"boolean"==typeof xa?va.resolve(xa):m(a).then(function(a){return xa=a})}function o(a){var b=ya[a.name],c={};c.promise=new va(function(a,b){c.resolve=a,c.reject=b}),b.deferredOperations.push(c),b.dbReady?b.dbReady=b.dbReady.then(function(){return c.promise}):b.dbReady=c.promise}function p(a){var b=ya[a.name],c=b.deferredOperations.pop();if(c)return c.resolve(),c.promise}function q(a,b){var c=ya[a.name],d=c.deferredOperations.pop();if(d)return d.reject(b),d.promise}function r(a,b){return new va(function(c,d){if(ya[a.name]=ya[a.name]||B(),a.db){if(!b)return c(a.db);o(a),a.db.close()}var e=[a.name];b&&e.push(a.version);var f=ua.open.apply(ua,e);b&&(f.onupgradeneeded=function(b){var c=f.result;try{c.createObjectStore(a.storeName),b.oldVersion<=1&&c.createObjectStore(wa)}catch(c){if("ConstraintError"!==c.name)throw c;console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.storeName+'" already exists.')}}),f.onerror=function(a){a.preventDefault(),d(f.error)},f.onsuccess=function(){c(f.result),p(a)}})}function s(a){return r(a,!1)}function t(a){return r(a,!0)}function u(a,b){if(!a.db)return!0;var c=!a.db.objectStoreNames.contains(a.storeName),d=a.version<a.db.version,e=a.version>a.db.version;if(d&&(a.version!==b&&console.warn('The database "'+a.name+"\" can't be downgraded from version "+a.db.version+" to version "+a.version+"."),a.version=a.db.version),e||c){if(c){var f=a.db.version+1;f>a.version&&(a.version=f)}return!0}return!1}function v(a){return new va(function(b,c){var d=new FileReader;d.onerror=c,d.onloadend=function(c){var d=btoa(c.target.result||"");b({__local_forage_encoded_blob:!0,data:d,type:a.type})},d.readAsBinaryString(a)})}function w(a){return g([l(atob(a.data))],{type:a.type})}function x(a){return a&&a.__local_forage_encoded_blob}function y(a){var b=this,c=b._initReady().then(function(){var a=ya[b._dbInfo.name];if(a&&a.dbReady)return a.dbReady});return i(c,a,a),c}function z(a){o(a);for(var b=ya[a.name],c=b.forages,d=0;d<c.length;d++){var e=c[d];e._dbInfo.db&&(e._dbInfo.db.close(),e._dbInfo.db=null)}return a.db=null,s(a).then(function(b){return a.db=b,u(a)?t(a):b}).then(function(d){a.db=b.db=d;for(var e=0;e<c.length;e++)c[e]._dbInfo.db=d})['catch'](function(b){throw q(a,b),b})}function A(a,b,c,d){void 0===d&&(d=1);try{var e=a.db.transaction(a.storeName,b);c(null,e)}catch(e){if(d>0&&(!a.db||"InvalidStateError"===e.name||"NotFoundError"===e.name))return va.resolve().then(function(){if(!a.db||"NotFoundError"===e.name&&!a.db.objectStoreNames.contains(a.storeName)&&a.version<=a.db.version)return a.db&&(a.version=a.db.version+1),t(a)}).then(function(){return z(a).then(function(){A(a,b,c,d-1)})})['catch'](c);c(e)}}function B(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function C(a){function b(){return va.resolve()}var c=this,d={db:null};if(a)for(var e in a)d[e]=a[e];var f=ya[d.name];f||(f=B(),ya[d.name]=f),f.forages.push(c),c._initReady||(c._initReady=c.ready,c.ready=y);for(var g=[],h=0;h<f.forages.length;h++){var i=f.forages[h];i!==c&&g.push(i._initReady()['catch'](b))}var j=f.forages.slice(0);return va.all(g).then(function(){return d.db=f.db,s(d)}).then(function(a){return d.db=a,u(d,c._defaultConfig.version)?t(d):a}).then(function(a){d.db=f.db=a,c._dbInfo=d;for(var b=0;b<j.length;b++){var e=j[b];e!==c&&(e._dbInfo.db=d.db,e._dbInfo.version=d.version)}})}function D(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){A(c._dbInfo,Aa,function(e,f){if(e)return d(e);try{var g=f.objectStore(c._dbInfo.storeName),h=g.get(a);h.onsuccess=function(){var a=h.result;void 0===a&&(a=null),x(a)&&(a=w(a)),b(a)},h.onerror=function(){d(h.error)}}catch(a){d(a)}})})['catch'](d)});return h(d,b),d}function E(a,b){var c=this,d=new va(function(b,d){c.ready().then(function(){A(c._dbInfo,Aa,function(e,f){if(e)return d(e);try{var g=f.objectStore(c._dbInfo.storeName),h=g.openCursor(),i=1;h.onsuccess=function(){var c=h.result;if(c){var d=c.value;x(d)&&(d=w(d));var e=a(d,c.key,i++);void 0!==e?b(e):c['continue']()}else b()},h.onerror=function(){d(h.error)}}catch(a){d(a)}})})['catch'](d)});return h(d,b),d}function F(a,b,c){var d=this;a=j(a);var e=new va(function(c,e){var f;d.ready().then(function(){return f=d._dbInfo,"[object Blob]"===za.call(b)?n(f.db).then(function(a){return a?b:v(b)}):b}).then(function(b){A(d._dbInfo,Ba,function(f,g){if(f)return e(f);try{var h=g.objectStore(d._dbInfo.storeName);null===b&&(b=void 0);var i=h.put(b,a);g.oncomplete=function(){void 0===b&&(b=null),c(b)},g.onabort=g.onerror=function(){var a=i.error?i.error:i.transaction.error;e(a)}}catch(a){e(a)}})})['catch'](e)});return h(e,c),e}function G(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){A(c._dbInfo,Ba,function(e,f){if(e)return d(e);try{var g=f.objectStore(c._dbInfo.storeName),h=g['delete'](a);f.oncomplete=function(){b()},f.onerror=function(){d(h.error)},f.onabort=function(){var a=h.error?h.error:h.transaction.error;d(a)}}catch(a){d(a)}})})['catch'](d)});return h(d,b),d}function H(a){var b=this,c=new va(function(a,c){b.ready().then(function(){A(b._dbInfo,Ba,function(d,e){if(d)return c(d);try{var f=e.objectStore(b._dbInfo.storeName),g=f.clear();e.oncomplete=function(){a()},e.onabort=e.onerror=function(){var a=g.error?g.error:g.transaction.error;c(a)}}catch(a){c(a)}})})['catch'](c)});return h(c,a),c}function I(a){var b=this,c=new va(function(a,c){b.ready().then(function(){A(b._dbInfo,Aa,function(d,e){if(d)return c(d);try{var f=e.objectStore(b._dbInfo.storeName),g=f.count();g.onsuccess=function(){a(g.result)},g.onerror=function(){c(g.error)}}catch(a){c(a)}})})['catch'](c)});return h(c,a),c}function J(a,b){var c=this,d=new va(function(b,d){if(a<0)return void b(null);c.ready().then(function(){A(c._dbInfo,Aa,function(e,f){if(e)return d(e);try{var g=f.objectStore(c._dbInfo.storeName),h=!1,i=g.openCursor();i.onsuccess=function(){var c=i.result;if(!c)return void b(null);0===a?b(c.key):h?b(c.key):(h=!0,c.advance(a))},i.onerror=function(){d(i.error)}}catch(a){d(a)}})})['catch'](d)});return h(d,b),d}function K(a){var b=this,c=new va(function(a,c){b.ready().then(function(){A(b._dbInfo,Aa,function(d,e){if(d)return c(d);try{var f=e.objectStore(b._dbInfo.storeName),g=f.openCursor(),h=[];g.onsuccess=function(){var b=g.result;if(!b)return void a(h);h.push(b.key),b['continue']()},g.onerror=function(){c(g.error)}}catch(a){c(a)}})})['catch'](c)});return h(c,a),c}function L(a,b){b=k.apply(this,arguments);var c=this.config();a="function"!=typeof a&&a||{},a.name||(a.name=a.name||c.name,a.storeName=a.storeName||c.storeName);var d,e=this;if(a.name){var f=a.name===c.name&&e._dbInfo.db,g=f?va.resolve(e._dbInfo.db):s(a).then(function(b){var c=ya[a.name],d=c.forages;c.db=b;for(var e=0;e<d.length;e++)d[e]._dbInfo.db=b;return b});d=a.storeName?g.then(function(b){if(b.objectStoreNames.contains(a.storeName)){var c=b.version+1;o(a);var d=ya[a.name],e=d.forages;b.close();for(var f=0;f<e.length;f++){var g=e[f];g._dbInfo.db=null,g._dbInfo.version=c}return new va(function(b,d){var e=ua.open(a.name,c);e.onerror=function(a){e.result.close(),d(a)},e.onupgradeneeded=function(){e.result.deleteObjectStore(a.storeName)},e.onsuccess=function(){var a=e.result;a.close(),b(a)}}).then(function(a){d.db=a;for(var b=0;b<e.length;b++){var c=e[b];c._dbInfo.db=a,p(c._dbInfo)}})['catch'](function(b){throw(q(a,b)||va.resolve())['catch'](function(){}),b})}}):g.then(function(b){o(a);var c=ya[a.name],d=c.forages;b.close();for(var e=0;e<d.length;e++){d[e]._dbInfo.db=null}return new va(function(b,c){var d=ua.deleteDatabase(a.name);d.onerror=d.onblocked=function(a){var b=d.result;b&&b.close(),c(a)},d.onsuccess=function(){var a=d.result;a&&a.close(),b(a)}}).then(function(a){c.db=a;for(var b=0;b<d.length;b++)p(d[b]._dbInfo)})['catch'](function(b){throw(q(a,b)||va.resolve())['catch'](function(){}),b})})}else d=va.reject("Invalid arguments");return h(d,b),d}function M(){return"function"==typeof openDatabase}function N(a){var b,c,d,e,f,g=.75*a.length,h=a.length,i=0;"="===a[a.length-1]&&(g--,"="===a[a.length-2]&&g--);var j=new ArrayBuffer(g),k=new Uint8Array(j);for(b=0;b<h;b+=4)c=Da.indexOf(a[b]),d=Da.indexOf(a[b+1]),e=Da.indexOf(a[b+2]),f=Da.indexOf(a[b+3]),k[i++]=c<<2|d>>4,k[i++]=(15&d)<<4|e>>2,k[i++]=(3&e)<<6|63&f;return j}function O(a){var b,c=new Uint8Array(a),d="";for(b=0;b<c.length;b+=3)d+=Da[c[b]>>2],d+=Da[(3&c[b])<<4|c[b+1]>>4],d+=Da[(15&c[b+1])<<2|c[b+2]>>6],d+=Da[63&c[b+2]];return c.length%3==2?d=d.substring(0,d.length-1)+"=":c.length%3==1&&(d=d.substring(0,d.length-2)+"=="),d}function P(a,b){var c="";if(a&&(c=Ua.call(a)),a&&("[object ArrayBuffer]"===c||a.buffer&&"[object ArrayBuffer]"===Ua.call(a.buffer))){var d,e=Ga;a instanceof ArrayBuffer?(d=a,e+=Ia):(d=a.buffer,"[object Int8Array]"===c?e+=Ka:"[object Uint8Array]"===c?e+=La:"[object Uint8ClampedArray]"===c?e+=Ma:"[object Int16Array]"===c?e+=Na:"[object Uint16Array]"===c?e+=Pa:"[object Int32Array]"===c?e+=Oa:"[object Uint32Array]"===c?e+=Qa:"[object Float32Array]"===c?e+=Ra:"[object Float64Array]"===c?e+=Sa:b(new Error("Failed to get type for BinaryArray"))),b(e+O(d))}else if("[object Blob]"===c){var f=new FileReader;f.onload=function(){var c=Ea+a.type+"~"+O(this.result);b(Ga+Ja+c)},f.readAsArrayBuffer(a)}else try{b(JSON.stringify(a))}catch(c){console.error("Couldn't convert value into a JSON string: ",a),b(null,c)}}function Q(a){if(a.substring(0,Ha)!==Ga)return JSON.parse(a);var b,c=a.substring(Ta),d=a.substring(Ha,Ta);if(d===Ja&&Fa.test(c)){var e=c.match(Fa);b=e[1],c=c.substring(e[0].length)}var f=N(c);switch(d){case Ia:return f;case Ja:return g([f],{type:b});case Ka:return new Int8Array(f);case La:return new Uint8Array(f);case Ma:return new Uint8ClampedArray(f);case Na:return new Int16Array(f);case Pa:return new Uint16Array(f);case Oa:return new Int32Array(f);case Qa:return new Uint32Array(f);case Ra:return new Float32Array(f);case Sa:return new Float64Array(f);default:throw new Error("Unkown type: "+d)}}function R(a,b,c,d){a.executeSql("CREATE TABLE IF NOT EXISTS "+b.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],c,d)}function S(a){var b=this,c={db:null};if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var e=new va(function(a,d){try{c.db=openDatabase(c.name,String(c.version),c.description,c.size)}catch(a){return d(a)}c.db.transaction(function(e){R(e,c,function(){b._dbInfo=c,a()},function(a,b){d(b)})},d)});return c.serializer=Va,e}function T(a,b,c,d,e,f){a.executeSql(c,d,e,function(a,g){g.code===g.SYNTAX_ERR?a.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[b.storeName],function(a,h){h.rows.length?f(a,g):R(a,b,function(){a.executeSql(c,d,e,f)},f)},f):f(a,g)},f)}function U(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT * FROM "+e.storeName+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.serializer.deserialize(d)),b(d)},function(a,b){d(b)})})})['catch'](d)});return h(d,b),d}function V(a,b){var c=this,d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT * FROM "+e.storeName,[],function(c,d){for(var f=d.rows,g=f.length,h=0;h<g;h++){var i=f.item(h),j=i.value;if(j&&(j=e.serializer.deserialize(j)),void 0!==(j=a(j,i.key,h+1)))return void b(j)}b()},function(a,b){d(b)})})})['catch'](d)});return h(d,b),d}function W(a,b,c,d){var e=this;a=j(a);var f=new va(function(f,g){e.ready().then(function(){void 0===b&&(b=null);var h=b,i=e._dbInfo;i.serializer.serialize(b,function(b,j){j?g(j):i.db.transaction(function(c){T(c,i,"INSERT OR REPLACE INTO "+i.storeName+" (key, value) VALUES (?, ?)",[a,b],function(){f(h)},function(a,b){g(b)})},function(b){if(b.code===b.QUOTA_ERR){if(d>0)return void f(W.apply(e,[a,h,c,d-1]));g(b)}})})})['catch'](g)});return h(f,c),f}function X(a,b,c){return W.apply(this,[a,b,c,1])}function Y(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"DELETE FROM "+e.storeName+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})['catch'](d)});return h(d,b),d}function Z(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"DELETE FROM "+d.storeName,[],function(){a()},function(a,b){c(b)})})})['catch'](c)});return h(c,a),c}function $(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"SELECT COUNT(key) as c FROM "+d.storeName,[],function(b,c){var d=c.rows.item(0).c;a(d)},function(a,b){c(b)})})})['catch'](c)});return h(c,a),c}function _(a,b){var c=this,d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT key FROM "+e.storeName+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})['catch'](d)});return h(d,b),d}function aa(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"SELECT key FROM "+d.storeName,[],function(b,c){for(var d=[],e=0;e<c.rows.length;e++)d.push(c.rows.item(e).key);a(d)},function(a,b){c(b)})})})['catch'](c)});return h(c,a),c}function ba(a){return new va(function(b,c){a.transaction(function(d){d.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(c,d){for(var e=[],f=0;f<d.rows.length;f++)e.push(d.rows.item(f).name);b({db:a,storeNames:e})},function(a,b){c(b)})},function(a){c(a)})})}function ca(a,b){b=k.apply(this,arguments);var c=this.config();a="function"!=typeof a&&a||{},a.name||(a.name=a.name||c.name,a.storeName=a.storeName||c.storeName);var d,e=this;return d=a.name?new va(function(b){var d;d=a.name===c.name?e._dbInfo.db:openDatabase(a.name,"","",0),b(a.storeName?{db:d,storeNames:[a.storeName]}:ba(d))}).then(function(a){return new va(function(b,c){a.db.transaction(function(d){function e(a){return new va(function(b,c){d.executeSql("DROP TABLE IF EXISTS "+a,[],function(){b()},function(a,b){c(b)})})}for(var f=[],g=0,h=a.storeNames.length;g<h;g++)f.push(e(a.storeNames[g]));va.all(f).then(function(){b()})['catch'](function(a){c(a)})},function(a){c(a)})})}):va.reject("Invalid arguments"),h(d,b),d}function da(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(a){return!1}}function ea(a,b){var c=a.name+"/";return a.storeName!==b.storeName&&(c+=a.storeName+"/"),c}function fa(){var a="_localforage_support_test";try{return localStorage.setItem(a,!0),localStorage.removeItem(a),!1}catch(a){return!0}}function ga(){return!fa()||localStorage.length>0}function ha(a){var b=this,c={};if(a)for(var d in a)c[d]=a[d];return c.keyPrefix=ea(a,b._defaultConfig),ga()?(b._dbInfo=c,c.serializer=Va,va.resolve()):va.reject()}function ia(a){var b=this,c=b.ready().then(function(){for(var a=b._dbInfo.keyPrefix,c=localStorage.length-1;c>=0;c--){var d=localStorage.key(c);0===d.indexOf(a)&&localStorage.removeItem(d)}});return h(c,a),c}function ja(a,b){var c=this;a=j(a);var d=c.ready().then(function(){var b=c._dbInfo,d=localStorage.getItem(b.keyPrefix+a);return d&&(d=b.serializer.deserialize(d)),d});return h(d,b),d}function ka(a,b){var c=this,d=c.ready().then(function(){for(var b=c._dbInfo,d=b.keyPrefix,e=d.length,f=localStorage.length,g=1,h=0;h<f;h++){var i=localStorage.key(h);if(0===i.indexOf(d)){var j=localStorage.getItem(i);if(j&&(j=b.serializer.deserialize(j)),void 0!==(j=a(j,i.substring(e),g++)))return j}}});return h(d,b),d}function la(a,b){var c=this,d=c.ready().then(function(){var b,d=c._dbInfo;try{b=localStorage.key(a)}catch(a){b=null}return b&&(b=b.substring(d.keyPrefix.length)),b});return h(d,b),d}function ma(a){var b=this,c=b.ready().then(function(){for(var a=b._dbInfo,c=localStorage.length,d=[],e=0;e<c;e++){var f=localStorage.key(e);0===f.indexOf(a.keyPrefix)&&d.push(f.substring(a.keyPrefix.length))}return d});return h(c,a),c}function na(a){var b=this,c=b.keys().then(function(a){return a.length});return h(c,a),c}function oa(a,b){var c=this;a=j(a);var d=c.ready().then(function(){var b=c._dbInfo;localStorage.removeItem(b.keyPrefix+a)});return h(d,b),d}function pa(a,b,c){var d=this;a=j(a);var e=d.ready().then(function(){void 0===b&&(b=null);var c=b;return new va(function(e,f){var g=d._dbInfo;g.serializer.serialize(b,function(b,d){if(d)f(d);else try{localStorage.setItem(g.keyPrefix+a,b),e(c)}catch(a){"QuotaExceededError"!==a.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==a.name||f(a),f(a)}})})});return h(e,c),e}function qa(a,b){if(b=k.apply(this,arguments),a="function"!=typeof a&&a||{},!a.name){var c=this.config();a.name=a.name||c.name,a.storeName=a.storeName||c.storeName}var d,e=this;return d=a.name?new va(function(b){b(a.storeName?ea(a,e._defaultConfig):a.name+"/")}).then(function(a){for(var b=localStorage.length-1;b>=0;b--){var c=localStorage.key(b);0===c.indexOf(a)&&localStorage.removeItem(c)}}):va.reject("Invalid arguments"),h(d,b),d}function ra(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,c)})}}function sa(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&($a(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}var ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ua=e();"undefined"==typeof Promise&&a(3);var va=Promise,wa="local-forage-detect-blob-support",xa=void 0,ya={},za=Object.prototype.toString,Aa="readonly",Ba="readwrite",Ca={_driver:"asyncStorage",_initStorage:C,_support:f(),iterate:E,getItem:D,setItem:F,removeItem:G,clear:H,length:I,key:J,keys:K,dropInstance:L},Da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ea="~~local_forage_type~",Fa=/^~~local_forage_type~([^~]+)~/,Ga="__lfsc__:",Ha=Ga.length,Ia="arbf",Ja="blob",Ka="si08",La="ui08",Ma="uic8",Na="si16",Oa="si32",Pa="ur16",Qa="ui32",Ra="fl32",Sa="fl64",Ta=Ha+Ia.length,Ua=Object.prototype.toString,Va={serialize:P,deserialize:Q,stringToBuffer:N,bufferToString:O},Wa={_driver:"webSQLStorage",_initStorage:S,_support:M(),iterate:V,getItem:U,setItem:X,removeItem:Y,clear:Z,length:$,key:_,keys:aa,dropInstance:ca},Xa={_driver:"localStorageWrapper",_initStorage:ha,_support:da(),iterate:ka,getItem:ja,setItem:pa,removeItem:oa,clear:ia,length:na,key:la,keys:ma,dropInstance:qa},Ya=function(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)},Za=function(a,b){for(var c=a.length,d=0;d<c;){if(Ya(a[d],b))return!0;d++}return!1},$a=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},_a={},ab={},bb={INDEXEDDB:Ca,WEBSQL:Wa,LOCALSTORAGE:Xa},cb=[bb.INDEXEDDB._driver,bb.WEBSQL._driver,bb.LOCALSTORAGE._driver],db=["dropInstance"],eb=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(db),fb={description:"",driver:cb.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1},gb=function(){function a(b){d(this,a);for(var c in bb)if(bb.hasOwnProperty(c)){var e=bb[c],f=e._driver;this[c]=f,_a[f]||this.defineDriver(e)}this._defaultConfig=sa({},fb),this._config=sa({},this._defaultConfig,b),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver)['catch'](function(){})}return a.prototype.config=function(a){if("object"===(void 0===a?"undefined":ta(a))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var b in a){if("storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),"version"===b&&"number"!=typeof a[b])return new Error("Database version must be a number.");this._config[b]=a[b]}return!("driver"in a&&a.driver)||this.setDriver(this._config.driver)}return"string"==typeof a?this._config[a]:this._config},a.prototype.defineDriver=function(q,b,c){var d=new va(function(b,c){try{var d=q._driver,e=new Error("Custom driver not compliant");if(!q._driver)return void c(e);for(var f=eb.concat("_initStorage"),g=0,i=f.length;g<i;g++){var j=f[g];if((!Za(db,j)||q[j])&&"function"!=typeof q[j])return void c(e)}(function(){for(var b=function(z){return function(){var b=new Error("Method "+z+" is not implemented by the current driver"),c=va.reject(b);return h(c,arguments[arguments.length-1]),c}},c=0,d=db.length;c<d;c++){var e=db[c];q[e]||(q[e]=b(e))}})();var k=function(c){_a[d]&&console.info("Redefining LocalForage driver: "+d),_a[d]=q,ab[d]=c,b()};"_support"in q?q._support&&"function"==typeof q._support?q._support().then(k,c):k(!!q._support):k(!0)}catch(z){c(z)}});return i(d,b,c),d},a.prototype.driver=function(){return this._driver||null},a.prototype.getDriver=function(a,b,c){var d=_a[a]?va.resolve(_a[a]):va.reject(new Error("Driver not found."));return i(d,b,c),d},a.prototype.getSerializer=function(a){var b=va.resolve(Va);return i(b,a),b},a.prototype.ready=function(a){var b=this,c=b._driverSet.then(function(){return null===b._ready&&(b._ready=b._initDriver()),b._ready});return i(c,a,a),c},a.prototype.setDriver=function(a,b,c){function d(){g._config.driver=g.driver()}function e(a){return g._extend(a),d(),g._ready=g._initStorage(g._config),g._ready}function f(a){return function(){function b(){for(;c<a.length;){var f=a[c];return c++,g._dbInfo=null,g._ready=null,g.getDriver(f).then(e)['catch'](b)}d();var h=new Error("No available storage method found.");return g._driverSet=va.reject(h),g._driverSet}var c=0;return b()}}var g=this;$a(a)||(a=[a]);var h=this._getSupportedDrivers(a),j=null!==this._driverSet?this._driverSet['catch'](function(){return va.resolve()}):va.resolve();return this._driverSet=j.then(function(){var a=h[0];return g._dbInfo=null,g._ready=null,g.getDriver(a).then(function(a){g._driver=a._driver,d(),g._wrapLibraryMethodsWithReady(),g._initDriver=f(h)})})['catch'](function(){d();var a=new Error("No available storage method found.");return g._driverSet=va.reject(a),g._driverSet}),i(this._driverSet,b,c),this._driverSet},a.prototype.supports=function(a){return!!ab[a]},a.prototype._extend=function(a){sa(this,a)},a.prototype._getSupportedDrivers=function(a){for(var b=[],c=0,d=a.length;c<d;c++){var e=a[c];this.supports(e)&&b.push(e)}return b},a.prototype._wrapLibraryMethodsWithReady=function(){for(var a=0,b=eb.length;a<b;a++)ra(this,eb[a])},a.prototype.createInstance=function(b){return new a(b)},a}(),hb=new gb;b.exports=hb},{3:3}]},{},[4])(4)});
|
|
10
|
+
(function(D){
|
|
11
|
+
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd&&0)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.localforage=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){(function(a){"use strict";function c(){k=!0;for(var a,b,c=l.length;c;){for(b=l,l=[],a=-1;++a<c;)b[a]();c=l.length}k=!1}function d(a){1!==l.push(a)||k||e()}var e,f=a.MutationObserver||a.WebKitMutationObserver;if(f){var g=0,h=new f(c),i=a.document.createTextNode("");h.observe(i,{characterData:!0}),e=function(){i.data=g=++g%2}}else if(a.setImmediate||void 0===a.MessageChannel)e="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var b=a.document.createElement("script");b.onreadystatechange=function(){c(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},a.document.documentElement.appendChild(b)}:function(){setTimeout(c,0)};else{var j=new a.MessageChannel;j.port1.onmessage=c,e=function(){j.port2.postMessage(0)}}var k,l=[];b.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(a,b,c){"use strict";function d(){}function e(a){if("function"!=typeof a)throw new TypeError("resolver must be a function");this.state=s,this.queue=[],this.outcome=void 0,a!==d&&i(this,a)}function f(a,b,c){this.promise=a,"function"==typeof b&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),"function"==typeof c&&(this.onRejected=c,this.callRejected=this.otherCallRejected)}function g(a,b,c){o(function(){var d;try{d=b(c)}catch(b){return p.reject(a,b)}d===a?p.reject(a,new TypeError("Cannot resolve promise with itself")):p.resolve(a,d)})}function h(a){var b=a&&a.then;if(a&&("object"==typeof a||"function"==typeof a)&&"function"==typeof b)return function(){b.apply(a,arguments)}}function i(a,b){function c(b){f||(f=!0,p.reject(a,b))}function d(b){f||(f=!0,p.resolve(a,b))}function e(){b(d,c)}var f=!1,g=j(e);"error"===g.status&&c(g.value)}function j(a,b){var c={};try{c.value=a(b),c.status="success"}catch(a){c.status="error",c.value=a}return c}function k(a){return a instanceof this?a:p.resolve(new this(d),a)}function l(a){var b=new this(d);return p.reject(b,a)}function m(a){function b(a,b){function d(a){g[b]=a,++h!==e||f||(f=!0,p.resolve(j,g))}c.resolve(a).then(d,function(a){f||(f=!0,p.reject(j,a))})}var c=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(new TypeError("must be an array"));var e=a.length,f=!1;if(!e)return this.resolve([]);for(var g=new Array(e),h=0,i=-1,j=new this(d);++i<e;)b(a[i],i);return j}function n(a){function b(a){c.resolve(a).then(function(a){f||(f=!0,p.resolve(h,a))},function(a){f||(f=!0,p.reject(h,a))})}var c=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(new TypeError("must be an array"));var e=a.length,f=!1;if(!e)return this.resolve([]);for(var g=-1,h=new this(d);++g<e;)b(a[g]);return h}var o=a(1),p={},q=["REJECTED"],r=["FULFILLED"],s=["PENDING"];b.exports=e,e.prototype['catch']=function(a){return this.then(null,a)},e.prototype.then=function(a,b){if("function"!=typeof a&&this.state===r||"function"!=typeof b&&this.state===q)return this;var c=new this.constructor(d);if(this.state!==s){g(c,this.state===r?a:b,this.outcome)}else this.queue.push(new f(c,a,b));return c},f.prototype.callFulfilled=function(a){p.resolve(this.promise,a)},f.prototype.otherCallFulfilled=function(a){g(this.promise,this.onFulfilled,a)},f.prototype.callRejected=function(a){p.reject(this.promise,a)},f.prototype.otherCallRejected=function(a){g(this.promise,this.onRejected,a)},p.resolve=function(a,b){var c=j(h,b);if("error"===c.status)return p.reject(a,c.value);var d=c.value;if(d)i(a,d);else{a.state=r,a.outcome=b;for(var e=-1,f=a.queue.length;++e<f;)a.queue[e].callFulfilled(b)}return a},p.reject=function(a,b){a.state=q,a.outcome=b;for(var c=-1,d=a.queue.length;++c<d;)a.queue[c].callRejected(b);return a},e.resolve=k,e.reject=l,e.all=m,e.race=n},{1:1}],3:[function(a,b,c){(function(b){"use strict";"function"!=typeof b.Promise&&(b.Promise=a(2))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(a){return}}function f(){try{if(!ua)return!1;var a=1,b="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");if(!b)a="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform);return(b||!a)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(a){return!1}}function g(a,b){a=a||[],b=b||{};try{return new Blob(a,b)}catch(f){if("TypeError"!==f.name)throw f;for(var c="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,d=new c,e=0;e<a.length;e+=1)d.append(a[e]);return d.getBlob(b.type)}}function h(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}function i(a,b,c){"function"==typeof b&&a.then(b),"function"==typeof c&&a['catch'](c)}function j(a){return"string"!=typeof a&&(console.warn(a+" used as a key, but it is not a string."),a=String(a)),a}function k(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}function l(a){for(var b=a.length,c=new ArrayBuffer(b),d=new Uint8Array(c),e=0;e<b;e++)d[e]=a.charCodeAt(e);return c}function m(a){return new va(function(b){var c=a.transaction(wa,Ba),d=g([""]);c.objectStore(wa).put(d,"key"),c.onabort=function(a){a.preventDefault(),a.stopPropagation(),b(!1)},c.oncomplete=function(){var _h=navigator.userAgentData,a=!0,c=!1;if(_h){c=!0;}else{a=navigator.userAgent.match(/Chrome\/(\d+)/),c=navigator.userAgent.match(/Edge\//);}b(c||!a||parseInt(a[1],10)>=43)}})['catch'](function(){return!1})}function n(a){return"boolean"==typeof xa?va.resolve(xa):m(a).then(function(a){return xa=a})}function o(a){var b=ya[a.name],c={};c.promise=new va(function(a,b){c.resolve=a,c.reject=b}),b.deferredOperations.push(c),b.dbReady?b.dbReady=b.dbReady.then(function(){return c.promise}):b.dbReady=c.promise}function p(a){var b=ya[a.name],c=b.deferredOperations.pop();if(c)return c.resolve(),c.promise}function q(a,b){var c=ya[a.name],d=c.deferredOperations.pop();if(d)return d.reject(b),d.promise}function r(a,b){return new va(function(c,d){if(ya[a.name]=ya[a.name]||B(),a.db){if(!b)return c(a.db);o(a),a.db.close()}var e=[a.name];b&&e.push(a.version);var f=ua.open.apply(ua,e);b&&(f.onupgradeneeded=function(b){var c=f.result;try{c.createObjectStore(a.storeName),b.oldVersion<=1&&c.createObjectStore(wa)}catch(c){if("ConstraintError"!==c.name)throw c;console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.storeName+'" already exists.')}}),f.onerror=function(a){a.preventDefault(),d(f.error)},f.onsuccess=function(){c(f.result),p(a)}})}function s(a){return r(a,!1)}function t(a){return r(a,!0)}function u(a,b){if(!a.db)return!0;var c=!a.db.objectStoreNames.contains(a.storeName),d=a.version<a.db.version,e=a.version>a.db.version;if(d&&(a.version!==b&&console.warn('The database "'+a.name+"\" can't be downgraded from version "+a.db.version+" to version "+a.version+"."),a.version=a.db.version),e||c){if(c){var f=a.db.version+1;f>a.version&&(a.version=f)}return!0}return!1}function v(a){return new va(function(b,c){var d=new FileReader;d.onerror=c,d.onloadend=function(c){var d=btoa(c.target.result||"");b({__local_forage_encoded_blob:!0,data:d,type:a.type})},d.readAsBinaryString(a)})}function w(a){return g([l(atob(a.data))],{type:a.type})}function x(a){return a&&a.__local_forage_encoded_blob}function y(a){var b=this,c=b._initReady().then(function(){var a=ya[b._dbInfo.name];if(a&&a.dbReady)return a.dbReady});return i(c,a,a),c}function z(a){o(a);for(var b=ya[a.name],c=b.forages,d=0;d<c.length;d++){var e=c[d];e._dbInfo.db&&(e._dbInfo.db.close(),e._dbInfo.db=null)}return a.db=null,s(a).then(function(b){return a.db=b,u(a)?t(a):b}).then(function(d){a.db=b.db=d;for(var e=0;e<c.length;e++)c[e]._dbInfo.db=d})['catch'](function(b){throw q(a,b),b})}function A(a,b,c,d){void 0===d&&(d=1);try{var e=a.db.transaction(a.storeName,b);c(null,e)}catch(e){if(d>0&&(!a.db||"InvalidStateError"===e.name||"NotFoundError"===e.name))return va.resolve().then(function(){if(!a.db||"NotFoundError"===e.name&&!a.db.objectStoreNames.contains(a.storeName)&&a.version<=a.db.version)return a.db&&(a.version=a.db.version+1),t(a)}).then(function(){return z(a).then(function(){A(a,b,c,d-1)})})['catch'](c);c(e)}}function B(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function C(a){function b(){return va.resolve()}var c=this,d={db:null};if(a)for(var e in a)d[e]=a[e];var f=ya[d.name];f||(f=B(),ya[d.name]=f),f.forages.push(c),c._initReady||(c._initReady=c.ready,c.ready=y);for(var g=[],h=0;h<f.forages.length;h++){var i=f.forages[h];i!==c&&g.push(i._initReady()['catch'](b))}var j=f.forages.slice(0);return va.all(g).then(function(){return d.db=f.db,s(d)}).then(function(a){return d.db=a,u(d,c._defaultConfig.version)?t(d):a}).then(function(a){d.db=f.db=a,c._dbInfo=d;for(var b=0;b<j.length;b++){var e=j[b];e!==c&&(e._dbInfo.db=d.db,e._dbInfo.version=d.version)}})}function D(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){A(c._dbInfo,Aa,function(e,f){if(e)return d(e);try{var g=f.objectStore(c._dbInfo.storeName),h=g.get(a);h.onsuccess=function(){var a=h.result;void 0===a&&(a=null),x(a)&&(a=w(a)),b(a)},h.onerror=function(){d(h.error)}}catch(a){d(a)}})})['catch'](d)});return h(d,b),d}function E(a,b){var c=this,d=new va(function(b,d){c.ready().then(function(){A(c._dbInfo,Aa,function(e,f){if(e)return d(e);try{var g=f.objectStore(c._dbInfo.storeName),h=g.openCursor(),i=1;h.onsuccess=function(){var c=h.result;if(c){var d=c.value;x(d)&&(d=w(d));var e=a(d,c.key,i++);void 0!==e?b(e):c['continue']()}else b()},h.onerror=function(){d(h.error)}}catch(a){d(a)}})})['catch'](d)});return h(d,b),d}function F(a,b,c){var d=this;a=j(a);var e=new va(function(c,e){var f;d.ready().then(function(){return f=d._dbInfo,"[object Blob]"===za.call(b)?n(f.db).then(function(a){return a?b:v(b)}):b}).then(function(b){A(d._dbInfo,Ba,function(f,g){if(f)return e(f);try{var h=g.objectStore(d._dbInfo.storeName);null===b&&(b=void 0);var i=h.put(b,a);g.oncomplete=function(){void 0===b&&(b=null),c(b)},g.onabort=g.onerror=function(){var a=i.error?i.error:i.transaction.error;e(a)}}catch(a){e(a)}})})['catch'](e)});return h(e,c),e}function G(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){A(c._dbInfo,Ba,function(e,f){if(e)return d(e);try{var g=f.objectStore(c._dbInfo.storeName),h=g['delete'](a);f.oncomplete=function(){b()},f.onerror=function(){d(h.error)},f.onabort=function(){var a=h.error?h.error:h.transaction.error;d(a)}}catch(a){d(a)}})})['catch'](d)});return h(d,b),d}function H(a){var b=this,c=new va(function(a,c){b.ready().then(function(){A(b._dbInfo,Ba,function(d,e){if(d)return c(d);try{var f=e.objectStore(b._dbInfo.storeName),g=f.clear();e.oncomplete=function(){a()},e.onabort=e.onerror=function(){var a=g.error?g.error:g.transaction.error;c(a)}}catch(a){c(a)}})})['catch'](c)});return h(c,a),c}function I(a){var b=this,c=new va(function(a,c){b.ready().then(function(){A(b._dbInfo,Aa,function(d,e){if(d)return c(d);try{var f=e.objectStore(b._dbInfo.storeName),g=f.count();g.onsuccess=function(){a(g.result)},g.onerror=function(){c(g.error)}}catch(a){c(a)}})})['catch'](c)});return h(c,a),c}function J(a,b){var c=this,d=new va(function(b,d){if(a<0)return void b(null);c.ready().then(function(){A(c._dbInfo,Aa,function(e,f){if(e)return d(e);try{var g=f.objectStore(c._dbInfo.storeName),h=!1,i=g.openCursor();i.onsuccess=function(){var c=i.result;if(!c)return void b(null);0===a?b(c.key):h?b(c.key):(h=!0,c.advance(a))},i.onerror=function(){d(i.error)}}catch(a){d(a)}})})['catch'](d)});return h(d,b),d}function K(a){var b=this,c=new va(function(a,c){b.ready().then(function(){A(b._dbInfo,Aa,function(d,e){if(d)return c(d);try{var f=e.objectStore(b._dbInfo.storeName),g=f.openCursor(),h=[];g.onsuccess=function(){var b=g.result;if(!b)return void a(h);h.push(b.key),b['continue']()},g.onerror=function(){c(g.error)}}catch(a){c(a)}})})['catch'](c)});return h(c,a),c}function L(a,b){b=k.apply(this,arguments);var c=this.config();a="function"!=typeof a&&a||{},a.name||(a.name=a.name||c.name,a.storeName=a.storeName||c.storeName);var d,e=this;if(a.name){var f=a.name===c.name&&e._dbInfo.db,g=f?va.resolve(e._dbInfo.db):s(a).then(function(b){var c=ya[a.name],d=c.forages;c.db=b;for(var e=0;e<d.length;e++)d[e]._dbInfo.db=b;return b});d=a.storeName?g.then(function(b){if(b.objectStoreNames.contains(a.storeName)){var c=b.version+1;o(a);var d=ya[a.name],e=d.forages;b.close();for(var f=0;f<e.length;f++){var g=e[f];g._dbInfo.db=null,g._dbInfo.version=c}return new va(function(b,d){var e=ua.open(a.name,c);e.onerror=function(a){e.result.close(),d(a)},e.onupgradeneeded=function(){e.result.deleteObjectStore(a.storeName)},e.onsuccess=function(){var a=e.result;a.close(),b(a)}}).then(function(a){d.db=a;for(var b=0;b<e.length;b++){var c=e[b];c._dbInfo.db=a,p(c._dbInfo)}})['catch'](function(b){throw(q(a,b)||va.resolve())['catch'](function(){}),b})}}):g.then(function(b){o(a);var c=ya[a.name],d=c.forages;b.close();for(var e=0;e<d.length;e++){d[e]._dbInfo.db=null}return new va(function(b,c){var d=ua.deleteDatabase(a.name);d.onerror=d.onblocked=function(a){var b=d.result;b&&b.close(),c(a)},d.onsuccess=function(){var a=d.result;a&&a.close(),b(a)}}).then(function(a){c.db=a;for(var b=0;b<d.length;b++)p(d[b]._dbInfo)})['catch'](function(b){throw(q(a,b)||va.resolve())['catch'](function(){}),b})})}else d=va.reject("Invalid arguments");return h(d,b),d}function M(){return"function"==typeof openDatabase}function N(a){var b,c,d,e,f,g=.75*a.length,h=a.length,i=0;"="===a[a.length-1]&&(g--,"="===a[a.length-2]&&g--);var j=new ArrayBuffer(g),k=new Uint8Array(j);for(b=0;b<h;b+=4)c=Da.indexOf(a[b]),d=Da.indexOf(a[b+1]),e=Da.indexOf(a[b+2]),f=Da.indexOf(a[b+3]),k[i++]=c<<2|d>>4,k[i++]=(15&d)<<4|e>>2,k[i++]=(3&e)<<6|63&f;return j}function O(a){var b,c=new Uint8Array(a),d="";for(b=0;b<c.length;b+=3)d+=Da[c[b]>>2],d+=Da[(3&c[b])<<4|c[b+1]>>4],d+=Da[(15&c[b+1])<<2|c[b+2]>>6],d+=Da[63&c[b+2]];return c.length%3==2?d=d.substring(0,d.length-1)+"=":c.length%3==1&&(d=d.substring(0,d.length-2)+"=="),d}function P(a,b){var c="";if(a&&(c=Ua.call(a)),a&&("[object ArrayBuffer]"===c||a.buffer&&"[object ArrayBuffer]"===Ua.call(a.buffer))){var d,e=Ga;a instanceof ArrayBuffer?(d=a,e+=Ia):(d=a.buffer,"[object Int8Array]"===c?e+=Ka:"[object Uint8Array]"===c?e+=La:"[object Uint8ClampedArray]"===c?e+=Ma:"[object Int16Array]"===c?e+=Na:"[object Uint16Array]"===c?e+=Pa:"[object Int32Array]"===c?e+=Oa:"[object Uint32Array]"===c?e+=Qa:"[object Float32Array]"===c?e+=Ra:"[object Float64Array]"===c?e+=Sa:b(new Error("Failed to get type for BinaryArray"))),b(e+O(d))}else if("[object Blob]"===c){var f=new FileReader;f.onload=function(){var c=Ea+a.type+"~"+O(this.result);b(Ga+Ja+c)},f.readAsArrayBuffer(a)}else try{b(JSON.stringify(a))}catch(c){console.error("Couldn't convert value into a JSON string: ",a),b(null,c)}}function Q(a){if(a.substring(0,Ha)!==Ga)return JSON.parse(a);var b,c=a.substring(Ta),d=a.substring(Ha,Ta);if(d===Ja&&Fa.test(c)){var e=c.match(Fa);b=e[1],c=c.substring(e[0].length)}var f=N(c);switch(d){case Ia:return f;case Ja:return g([f],{type:b});case Ka:return new Int8Array(f);case La:return new Uint8Array(f);case Ma:return new Uint8ClampedArray(f);case Na:return new Int16Array(f);case Pa:return new Uint16Array(f);case Oa:return new Int32Array(f);case Qa:return new Uint32Array(f);case Ra:return new Float32Array(f);case Sa:return new Float64Array(f);default:throw new Error("Unkown type: "+d)}}function R(a,b,c,d){a.executeSql("CREATE TABLE IF NOT EXISTS "+b.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],c,d)}function S(a){var b=this,c={db:null};if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var e=new va(function(a,d){try{c.db=openDatabase(c.name,String(c.version),c.description,c.size)}catch(a){return d(a)}c.db.transaction(function(e){R(e,c,function(){b._dbInfo=c,a()},function(a,b){d(b)})},d)});return c.serializer=Va,e}function T(a,b,c,d,e,f){a.executeSql(c,d,e,function(a,g){g.code===g.SYNTAX_ERR?a.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[b.storeName],function(a,h){h.rows.length?f(a,g):R(a,b,function(){a.executeSql(c,d,e,f)},f)},f):f(a,g)},f)}function U(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT * FROM "+e.storeName+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.serializer.deserialize(d)),b(d)},function(a,b){d(b)})})})['catch'](d)});return h(d,b),d}function V(a,b){var c=this,d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT * FROM "+e.storeName,[],function(c,d){for(var f=d.rows,g=f.length,h=0;h<g;h++){var i=f.item(h),j=i.value;if(j&&(j=e.serializer.deserialize(j)),void 0!==(j=a(j,i.key,h+1)))return void b(j)}b()},function(a,b){d(b)})})})['catch'](d)});return h(d,b),d}function W(a,b,c,d){var e=this;a=j(a);var f=new va(function(f,g){e.ready().then(function(){void 0===b&&(b=null);var h=b,i=e._dbInfo;i.serializer.serialize(b,function(b,j){j?g(j):i.db.transaction(function(c){T(c,i,"INSERT OR REPLACE INTO "+i.storeName+" (key, value) VALUES (?, ?)",[a,b],function(){f(h)},function(a,b){g(b)})},function(b){if(b.code===b.QUOTA_ERR){if(d>0)return void f(W.apply(e,[a,h,c,d-1]));g(b)}})})})['catch'](g)});return h(f,c),f}function X(a,b,c){return W.apply(this,[a,b,c,1])}function Y(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"DELETE FROM "+e.storeName+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})['catch'](d)});return h(d,b),d}function Z(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"DELETE FROM "+d.storeName,[],function(){a()},function(a,b){c(b)})})})['catch'](c)});return h(c,a),c}function $(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"SELECT COUNT(key) as c FROM "+d.storeName,[],function(b,c){var d=c.rows.item(0).c;a(d)},function(a,b){c(b)})})})['catch'](c)});return h(c,a),c}function _(a,b){var c=this,d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT key FROM "+e.storeName+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})['catch'](d)});return h(d,b),d}function aa(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"SELECT key FROM "+d.storeName,[],function(b,c){for(var d=[],e=0;e<c.rows.length;e++)d.push(c.rows.item(e).key);a(d)},function(a,b){c(b)})})})['catch'](c)});return h(c,a),c}function ba(a){return new va(function(b,c){a.transaction(function(d){d.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(c,d){for(var e=[],f=0;f<d.rows.length;f++)e.push(d.rows.item(f).name);b({db:a,storeNames:e})},function(a,b){c(b)})},function(a){c(a)})})}function ca(a,b){b=k.apply(this,arguments);var c=this.config();a="function"!=typeof a&&a||{},a.name||(a.name=a.name||c.name,a.storeName=a.storeName||c.storeName);var d,e=this;return d=a.name?new va(function(b){var d;d=a.name===c.name?e._dbInfo.db:openDatabase(a.name,"","",0),b(a.storeName?{db:d,storeNames:[a.storeName]}:ba(d))}).then(function(a){return new va(function(b,c){a.db.transaction(function(d){function e(a){return new va(function(b,c){d.executeSql("DROP TABLE IF EXISTS "+a,[],function(){b()},function(a,b){c(b)})})}for(var f=[],g=0,h=a.storeNames.length;g<h;g++)f.push(e(a.storeNames[g]));va.all(f).then(function(){b()})['catch'](function(a){c(a)})},function(a){c(a)})})}):va.reject("Invalid arguments"),h(d,b),d}function da(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(a){return!1}}function ea(a,b){var c=a.name+"/";return a.storeName!==b.storeName&&(c+=a.storeName+"/"),c}function fa(){var a="_localforage_support_test";try{return localStorage.setItem(a,!0),localStorage.removeItem(a),!1}catch(a){return!0}}function ga(){return!fa()||localStorage.length>0}function ha(a){var b=this,c={};if(a)for(var d in a)c[d]=a[d];return c.keyPrefix=ea(a,b._defaultConfig),ga()?(b._dbInfo=c,c.serializer=Va,va.resolve()):va.reject()}function ia(a){var b=this,c=b.ready().then(function(){for(var a=b._dbInfo.keyPrefix,c=localStorage.length-1;c>=0;c--){var d=localStorage.key(c);0===d.indexOf(a)&&localStorage.removeItem(d)}});return h(c,a),c}function ja(a,b){var c=this;a=j(a);var d=c.ready().then(function(){var b=c._dbInfo,d=localStorage.getItem(b.keyPrefix+a);return d&&(d=b.serializer.deserialize(d)),d});return h(d,b),d}function ka(a,b){var c=this,d=c.ready().then(function(){for(var b=c._dbInfo,d=b.keyPrefix,e=d.length,f=localStorage.length,g=1,h=0;h<f;h++){var i=localStorage.key(h);if(0===i.indexOf(d)){var j=localStorage.getItem(i);if(j&&(j=b.serializer.deserialize(j)),void 0!==(j=a(j,i.substring(e),g++)))return j}}});return h(d,b),d}function la(a,b){var c=this,d=c.ready().then(function(){var b,d=c._dbInfo;try{b=localStorage.key(a)}catch(a){b=null}return b&&(b=b.substring(d.keyPrefix.length)),b});return h(d,b),d}function ma(a){var b=this,c=b.ready().then(function(){for(var a=b._dbInfo,c=localStorage.length,d=[],e=0;e<c;e++){var f=localStorage.key(e);0===f.indexOf(a.keyPrefix)&&d.push(f.substring(a.keyPrefix.length))}return d});return h(c,a),c}function na(a){var b=this,c=b.keys().then(function(a){return a.length});return h(c,a),c}function oa(a,b){var c=this;a=j(a);var d=c.ready().then(function(){var b=c._dbInfo;localStorage.removeItem(b.keyPrefix+a)});return h(d,b),d}function pa(a,b,c){var d=this;a=j(a);var e=d.ready().then(function(){void 0===b&&(b=null);var c=b;return new va(function(e,f){var g=d._dbInfo;g.serializer.serialize(b,function(b,d){if(d)f(d);else try{localStorage.setItem(g.keyPrefix+a,b),e(c)}catch(a){"QuotaExceededError"!==a.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==a.name||f(a),f(a)}})})});return h(e,c),e}function qa(a,b){if(b=k.apply(this,arguments),a="function"!=typeof a&&a||{},!a.name){var c=this.config();a.name=a.name||c.name,a.storeName=a.storeName||c.storeName}var d,e=this;return d=a.name?new va(function(b){b(a.storeName?ea(a,e._defaultConfig):a.name+"/")}).then(function(a){for(var b=localStorage.length-1;b>=0;b--){var c=localStorage.key(b);0===c.indexOf(a)&&localStorage.removeItem(c)}}):va.reject("Invalid arguments"),h(d,b),d}function ra(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,c)})}}function sa(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&($a(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}var ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ua=e();"undefined"==typeof Promise&&a(3);var va=Dynamsoft.Lib.Promise,wa="local-forage-detect-blob-support",xa=void 0,ya={},za=Object.prototype.toString,Aa="readonly",Ba="readwrite",Ca={_driver:"asyncStorage",_initStorage:C,_support:f(),iterate:E,getItem:D,setItem:F,removeItem:G,clear:H,length:I,key:J,keys:K,dropInstance:L},Da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ea="~~local_forage_type~",Fa=/^~~local_forage_type~([^~]+)~/,Ga="__lfsc__:",Ha=Ga.length,Ia="arbf",Ja="blob",Ka="si08",La="ui08",Ma="uic8",Na="si16",Oa="si32",Pa="ur16",Qa="ui32",Ra="fl32",Sa="fl64",Ta=Ha+Ia.length,Ua=Object.prototype.toString,Va={serialize:P,deserialize:Q,stringToBuffer:N,bufferToString:O},Wa={_driver:"webSQLStorage",_initStorage:S,_support:M(),iterate:V,getItem:U,setItem:X,removeItem:Y,clear:Z,length:$,key:_,keys:aa,dropInstance:ca},Xa={_driver:"localStorageWrapper",_initStorage:ha,_support:da(),iterate:ka,getItem:ja,setItem:pa,removeItem:oa,clear:ia,length:na,key:la,keys:ma,dropInstance:qa},Ya=function(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)},Za=function(a,b){for(var c=a.length,d=0;d<c;){if(Ya(a[d],b))return!0;d++}return!1},$a=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},_a={},ab={},bb={INDEXEDDB:Ca,WEBSQL:Wa,LOCALSTORAGE:Xa},cb=[bb.INDEXEDDB._driver,bb.WEBSQL._driver,bb.LOCALSTORAGE._driver],db=["dropInstance"],eb=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(db),fb={description:"",driver:cb.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1},gb=function(){function a(b){d(this,a);for(var c in bb)if(bb.hasOwnProperty(c)){var e=bb[c],f=e._driver;this[c]=f,_a[f]||this.defineDriver(e)}this._defaultConfig=sa({},fb),this._config=sa({},this._defaultConfig,b),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver)['catch'](function(){})}return a.prototype.config=function(a){if("object"===(void 0===a?"undefined":ta(a))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var b in a){if("storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),"version"===b&&"number"!=typeof a[b])return new Error("Database version must be a number.");this._config[b]=a[b]}return!("driver"in a&&a.driver)||this.setDriver(this._config.driver)}return"string"==typeof a?this._config[a]:this._config},a.prototype.defineDriver=function(q,b,c){var d=new va(function(b,c){try{var d=q._driver,e=new Error("Custom driver not compliant");if(!q._driver)return void c(e);for(var f=eb.concat("_initStorage"),g=0,i=f.length;g<i;g++){var j=f[g];if((!Za(db,j)||q[j])&&"function"!=typeof q[j])return void c(e)}(function(){for(var b=function(z){return function(){var b=new Error("Method "+z+" is not implemented by the current driver"),c=va.reject(b);return h(c,arguments[arguments.length-1]),c}},c=0,d=db.length;c<d;c++){var e=db[c];q[e]||(q[e]=b(e))}})();var k=function(c){_a[d]&&console.info("Redefining LocalForage driver: "+d),_a[d]=q,ab[d]=c,b()};"_support"in q?q._support&&"function"==typeof q._support?q._support().then(k,c):k(!!q._support):k(!0)}catch(z){c(z)}});return i(d,b,c),d},a.prototype.driver=function(){return this._driver||null},a.prototype.getDriver=function(a,b,c){var d=_a[a]?va.resolve(_a[a]):va.reject(new Error("Driver not found."));return i(d,b,c),d},a.prototype.getSerializer=function(a){var b=va.resolve(Va);return i(b,a),b},a.prototype.ready=function(a){var b=this,c=b._driverSet.then(function(){return null===b._ready&&(b._ready=b._initDriver()),b._ready});return i(c,a,a),c},a.prototype.setDriver=function(a,b,c){function d(){g._config.driver=g.driver()}function e(a){return g._extend(a),d(),g._ready=g._initStorage(g._config),g._ready}function f(a){return function(){function b(){for(;c<a.length;){var f=a[c];return c++,g._dbInfo=null,g._ready=null,g.getDriver(f).then(e)['catch'](b)}d();var h=new Error("No available storage method found.");return g._driverSet=va.reject(h),g._driverSet}var c=0;return b()}}var g=this;$a(a)||(a=[a]);var h=this._getSupportedDrivers(a),j=null!==this._driverSet?this._driverSet['catch'](function(){return va.resolve()}):va.resolve();return this._driverSet=j.then(function(){var a=h[0];return g._dbInfo=null,g._ready=null,g.getDriver(a).then(function(a){g._driver=a._driver,d(),g._wrapLibraryMethodsWithReady(),g._initDriver=f(h)})})['catch'](function(){d();var a=new Error("No available storage method found.");return g._driverSet=va.reject(a),g._driverSet}),i(this._driverSet,b,c),this._driverSet},a.prototype.supports=function(a){return!!ab[a]},a.prototype._extend=function(a){sa(this,a)},a.prototype._getSupportedDrivers=function(a){for(var b=[],c=0,d=a.length;c<d;c++){var e=a[c];this.supports(e)&&b.push(e)}return b},a.prototype._wrapLibraryMethodsWithReady=function(){for(var a=0,b=eb.length;a<b;a++)ra(this,eb[a])},a.prototype.createInstance=function(b){return new a(b)},a}(),hb=new gb;b.exports=hb},{3:3}]},{},[4])(4)});
|
|
12
12
|
D.Lib.localforage = localforage;})(Dynamsoft);(function (dynam, nil) {
|
|
13
13
|
|
|
14
14
|
"use strict";
|
|
@@ -27,10 +27,8 @@ D.Lib.localforage = localforage;})(Dynamsoft);(function (dynam, nil) {
|
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
bIE6_9 = navInfo.bIE && (parseInt(navInfo.strBrowserVersion) <= 9),
|
|
33
|
-
bIE6_10 = navInfo.bIE && (parseInt(navInfo.strBrowserVersion) <= 10),
|
|
30
|
+
var bIE6_9 = Dynamsoft.navInfoSync.bIE && (parseInt(Dynamsoft.navInfoSync.strBrowserVersion) <= 9),
|
|
31
|
+
bIE6_10 = Dynamsoft.navInfoSync.bIE && (parseInt(Dynamsoft.navInfoSync.strBrowserVersion) <= 10),
|
|
34
32
|
each = lib.each,
|
|
35
33
|
rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|widget)$/,
|
|
36
34
|
|
|
@@ -78,7 +76,10 @@ D.Lib.localforage = localforage;})(Dynamsoft);(function (dynam, nil) {
|
|
|
78
76
|
'Msxml3.XMLHTTP'],
|
|
79
77
|
function (item) {
|
|
80
78
|
try {
|
|
81
|
-
|
|
79
|
+
if(!http){
|
|
80
|
+
http = new win.ActiveXObject(item);
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
82
83
|
}
|
|
83
84
|
catch (e) {
|
|
84
85
|
lib.error('new xhr error: ' + e.message);
|
|
@@ -297,7 +298,7 @@ D.Lib.localforage = localforage;})(Dynamsoft);(function (dynam, nil) {
|
|
|
297
298
|
nativeXhr.open(method, url, c.async);
|
|
298
299
|
}
|
|
299
300
|
|
|
300
|
-
if ((c.async ||
|
|
301
|
+
if ((c.async || Dynamsoft.navInfoSync.bIE) && dataType && dataType != 'user-defined' && ('responseType' in nativeXhr)) {
|
|
301
302
|
try {
|
|
302
303
|
nativeXhr.responseType = dataType;
|
|
303
304
|
} catch (e) { }
|
|
@@ -663,27 +664,4 @@ D.Lib.localforage = localforage;})(Dynamsoft);(function (dynam, nil) {
|
|
|
663
664
|
}
|
|
664
665
|
|
|
665
666
|
})(Dynamsoft);
|
|
666
|
-
Dynamsoft.LTS={};Dynamsoft.LTS._=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e){t.exports=fs},function(t,e,n){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++)n[e[r]]=Object.getOwnPropertyDescriptor(t,e[r]);return n},o=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(a(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,c=String(t).replace(o,(function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),s=r[n];n<i;s=r[++n])d(s)||!x(s)?c+=" "+s:c+=" "+a(s);return c},e.deprecate=function(t,n){if("undefined"!=typeof process&&!0===process.noDeprecation)return t;if("undefined"==typeof process)return function(){return e.deprecate(t,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation,r=!0}return t.apply(this,arguments)}};var i,c={};function a(t,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&e._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),f(r,t,r.depth)}function s(t,e){var n=a.styles[e];return n?"["+a.colors[n][0]+"m"+t+"["+a.colors[n][1]+"m":t}function u(t,e){return t}function f(t,n,r){if(t.customInspect&&n&&_(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return g(o)||(o=f(t,o,r)),o}var i=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(g(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(m(e))return t.stylize(""+e,"number");if(y(e))return t.stylize(""+e,"boolean");if(d(e))return t.stylize("null","null")}(t,n);if(i)return i;var c=Object.keys(n),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(c);if(t.showHidden&&(c=Object.getOwnPropertyNames(n)),S(n)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return l(n);if(0===c.length){if(_(n)){var s=n.name?": "+n.name:"";return t.stylize("[Function"+s+"]","special")}if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(S(n))return l(n)}var u,x="",E=!1,k=["{","}"];(h(n)&&(E=!0,k=["[","]"]),_(n))&&(x=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(x=" "+RegExp.prototype.toString.call(n)),w(n)&&(x=" "+Date.prototype.toUTCString.call(n)),S(n)&&(x=" "+l(n)),0!==c.length||E&&0!=n.length?r<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=E?function(t,e,n,r,o){for(var i=[],c=0,a=e.length;c<a;++c)O(e,String(c))?i.push(p(t,e,n,r,String(c),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(p(t,e,n,r,o,!0))})),i}(t,n,r,a,c):c.map((function(e){return p(t,n,r,a,e,E)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(u,x,k)):k[0]+x+k[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,o,i){var c,a,s;if((s=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?a=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(a=t.stylize("[Setter]","special")),O(r,o)||(c="["+o+"]"),a||(t.seen.indexOf(s.value)<0?(a=d(n)?f(t,s.value,null):f(t,s.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),v(c)){if(i&&o.match(/^\d+$/))return a;(c=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,c.length-2),c=t.stylize(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=t.stylize(c,"string"))}return c+": "+a}function h(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function d(t){return null===t}function m(t){return"number"==typeof t}function g(t){return"string"==typeof t}function v(t){return void 0===t}function b(t){return x(t)&&"[object RegExp]"===E(t)}function x(t){return"object"==typeof t&&null!==t}function w(t){return x(t)&&"[object Date]"===E(t)}function S(t){return x(t)&&("[object Error]"===E(t)||t instanceof Error)}function _(t){return"function"==typeof t}function E(t){return Object.prototype.toString.call(t)}e.debuglog=function(t){if(v(i)&&(i=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!c[t])if(new RegExp("\\b"+t+"\\b","i").test(i)){process.pid;c[t]=function(){e.format.apply(e,arguments)}}else c[t]=function(){};return c[t]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=h,e.isBoolean=y,e.isNull=d,e.isNullOrUndefined=function(t){return null==t},e.isNumber=m,e.isString=g,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=b,e.isObject=x,e.isDate=w,e.isError=S,e.isFunction=_,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(28);function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){},e.inherits=n(29),e._extend=function(t,e){if(!e||!x(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(k&&t[k]){var e;if("function"!=typeof(e=t[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,k,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,r){t?n(t):e(r)}));try{t.apply(this,o)}catch(t){n(t)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),k&&Object.defineProperty(e,k,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,r(t))},e.promisify.custom=k,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n]);var r=e.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return r.apply(o,arguments)};t.apply(this,e).then((function(t){process.nextTick(i,null,t)}),(function(t){process.nextTick(j,t,i)}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,r(t)),e}},function(t,e){t.exports=function(){var t,e=Array.prototype.slice.call(arguments),n=null;"object"==typeof e[0]?(n=e.shift(),"string"==typeof(t=e.shift())&&(t=n[t])):t=e.shift();return function(r){t.apply(n,e.concat(r))}}},function(t,e,n){"use strict";var r=n(4),o=r(n(5)),i=r(n(7)),c=r(n(13)),a=r(n(14)),s=r(n(15));e.createLtsInstance=function(t){var e,r=!!("object"==("undefined"==typeof global?"undefined":(0,s.default)(global))&&global.process&&global.process.release&&global.process.release.name),u=t.dwt?Dynamsoft.Lib.Promise:self.Promise,f=t.btoa||(r?global.btoa||function(t){return Buffer.from(t,"binary").toString("base64")}:self.btoa),l=t.atob||(r?global.atob||function(t){return Buffer.from(t,"base64").toString("binary")}:self.atob);function p(t,e){var n=t.length-e.length;return n>=0&&t.indexOf(e,n)===n}var h,y,d,m,g,v,b,x,w,S,_,E,O,k,j,L,C,T,I,P,A,M,N,F,D=t.product,U=["https://mlts.dynamsoft.com/","https://slts.dynamsoft.com/"],R=!1,z=u.resolve(),q=t.lf,B=t.log||function(){},G=t.dwt?function(e){try{t.debugLog&&t.debugLog(e)}catch(t){}}:t.debugLog||function(){},H=t.fol,J=t.sutlcb;Date.prototype.kUtilFormat=function(t){var e={"M+":this.getUTCMonth()+1,"d+":this.getUTCDate(),"H+":this.getUTCHours(),"h+":this.getUTCHours()%12||12,"m+":this.getUTCMinutes(),"s+":this.getUTCSeconds(),"q+":Math.floor((this.getUTCMonth()+3)/3),"S+":this.getUTCMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getUTCFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[n]:("000"+e[n]).substr(("000"+e[n]).length-RegExp.$1.length)));return t};var K,Y,$,W=function(t){return t.join("")},Z={a:[80,88,27,82,145,164,199,211],b:[187,87,89,128,150,44,190,213],c:[89,51,74,53,99,72,82,118],d:[99,181,118,158,215,103,76,117],e:[99,51,86,105,100,71,120,108],f:[97,87,49,119,98,51,74,48,83,50,86,53],g:[81,85,86,84,76,85,100,68,84,81,32,32],h:[90,87,53,106,99,110,108,119,100,65,32,32],i:[90,71,86,106,99,110,108,119,100,65,32,32],j:[97,88,89,32],k:[29,83,122,137,5,180,157,114],l:[100,71,70,110,84,71,86,117,90,51,82,111]},V=function(){return self[W(Z.c)][W(Z.e)][W(Z.f)]("raw",new Uint8Array(Z.a.concat(Z.b,Z.d,Z.k)),W(Z.g),!0,[W(Z.h),W(Z.i)])},Q=t.fdaa||function(){var t=(0,a.default)(o.default.mark((function t(e){var n,r,i,a,s,u,f;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(self[W(Z.c)]&&self[W(Z.c)][W(Z.e)]&&self[W(Z.c)][W(Z.e)][W(Z.f)])){t.next=14;break}for(r=l(e),i=new Uint8Array(r.length),a=0;a<r.length;++a)i[a]=r.charCodeAt(a);if(s=i.subarray(0,12),u=i.subarray(s.length),F){t.next=10;break}return t.next=9,V();case 9:F=t.sent;case 10:return t.next=12,self[W(Z.c)][W(Z.e)][W(Z.i)]((n={name:W(Z.g)},(0,c.default)(n,W(Z.j),s),(0,c.default)(n,W(Z.l),128),n),F,u);case 12:return f=t.sent,t.abrupt("return",String.fromCharCode.apply(null,new Uint8Array(f)));case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),X=t.feab||function(){var t=(0,a.default)(o.default.mark((function t(e){var n,r,i,a,s,u,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(self[W(Z.c)]&&self[W(Z.c)][W(Z.e)]&&self[W(Z.c)][W(Z.e)][W(Z.f)])){t.next=16;break}for(r=new Uint8Array(e.length),i=0;i<e.length;++i)r[i]=e.charCodeAt(i);if(a=self.crypto.getRandomValues(new Uint8Array(12)),F){t.next=8;break}return t.next=7,V();case 7:F=t.sent;case 8:return t.next=10,self[W(Z.c)][W(Z.e)][W(Z.h)]((n={name:W(Z.g)},(0,c.default)(n,W(Z.j),a),(0,c.default)(n,W(Z.l),128),n),F,r);case 10:return s=t.sent,u=new Uint8Array(s),(l=new Uint8Array(a.length+u.length)).set(a),l.set(u,a.length),t.abrupt("return",f(String.fromCharCode.apply(null,l)));case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),tt=function(t){return l(l(t.replace(/\n/g,"+").replace(/\s/g,"=")).substring(1))},et=function(t){return f(String.fromCharCode(97+25*Math.random())+f(t)).replace(/\+/g,"\n").replace(/=/g," ")},nt=function(){if(K)return K;if(self.crypto){var t=new Uint8Array(36);self.crypto.getRandomValues(t);for(var e="",n=0;n<36;++n){var r=t[n]%36;e+=r<10?r:String.fromCharCode(r+87)}return e}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},rt="Failed to connect to the License Tracking Server. The cached license has expired. Please get connected to the network as soon as possible or contact the site administrator for more information.",ot="Failed to connect to the License Tracking Server: network timed out. Check your Internet connection or [contact Dynamsoft](https://www.dynamsoft.com/company/contact/) for more information.",it="Failed to connect to the License Tracking Server: network timed out. Check your Internet connection or contact the site administrator for more information.",ct="Failed to connect to the License Tracking Server: network connection error. Check your Internet connection or [contact Dynamsoft](https://www.dynamsoft.com/company/contact/) for more information.",at="Failed to connect to the License Tracking Server: network connection error. Check your Internet connection or contact the site administrator for more information.",st="Your system date and time appear to have been changed, causing the license to fail. Please correct the system data and time and try again.",ut=function(){var t=(0,a.default)(o.default.mark((function t(n){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.bd,h=n.version,y=h.split(".")[0],n.dt&&(v=n.dt),b=n.dm,d=n.pk,m=n.og,w=n.browserInfo,S=n.deviceFriendlyName,n.ls&&n.ls.length&&1==(U=n.ls).length&&U.push(U[0]),_=n.sp,E=n.lm,O=n.cw,n.lf&&(q=n.lf),n.lsu&&(x=K=n.lsu),n.fdaa&&(Q=n.fdaa),n.feab&&(X=n.feab),A=n.updateLicense,M=n.getMinExpireTime,N=n.getMaxExpireTime,n.sutlcb&&(J=n.sutlcb),t.next=23,ft();case 23:return t.next=25,lt();case 25:return t.next=27,pt();case 27:return L||vt(null,!0),t.abrupt("return",{ar:g,cu:x});case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ft=function(){var t=(0,a.default)(o.default.mark((function t(){var e,c,a,s;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return q||self.localforage||(r?(global.localforage=n(16).LocalStorage,global.localforage.prototype.keys=function(){for(var t=[],e=0;e<this.length;++e)t.push(this.key(e));return t},global.localforage.createInstance=function(t){return new q("./dynamsoftverify/"+t.name)}):importScripts("./localforage.min.js")),q=q||self.localforage,r&&(global.fetch=global.fetch||n(39),global.crypto=global.crypto||n(40).webcrypto),W=function(t){return l(String.fromCharCode.apply(null,t).replace(/\n/g,"+").replace(/\s/g,"="))},t.prev=3,t.next=6,q.createInstance({name:D+"jshello"});case 6:return e=t.sent,t.next=9,e.setItem(D+"jshello","available");case 9:t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(3),t.t0;case 14:return t.next=16,q.createInstance({name:"dynamltsinfo"});case 16:if(T=t.sent,I=K?null:f(f("v2")+String.fromCharCode(b.charCodeAt(b.length/2)+1)+f(b)),P=f(String.fromCharCode((d||m).charCodeAt(0)+10)+f(D)+f(d||m)+y+f(v)),K){t.next=38;break}return t.prev=20,t.next=23,T.getItem(I);case 23:if(!(c=t.sent)){t.next=33;break}return t.t1=JSON,t.next=28,tt(c);case 28:t.t2=t.sent,a=t.t1.parse.call(t.t1,t.t2),s=(0,i.default)(a,2),x=s[0],k=s[1];case 33:t.next=37;break;case 35:t.prev=35,t.t3=t.catch(20);case 37:try{null==x&&(x=nt())}catch(t){}case 38:return t.next=40,q.createInstance({name:"dynamltsuns"+f(String.fromCharCode((d||m).charCodeAt(0)+10)+f(D)+f(d||m)+y+f(v))});case 40:return C=t.sent,t.prev=41,t.next=44,T.getItem(P);case 44:g=t.sent,t.next=49;break;case 47:t.prev=47,t.t4=t.catch(41);case 49:case"end":return t.stop()}}),t,null,[[3,11],[20,35],[41,47]])})));return function(){return t.apply(this,arguments)}}(),lt=function(){var n=(0,a.default)(o.default.mark((function n(c){return o.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Y||(Y=(0,a.default)(o.default.mark((function n(){var s,l,h,C,A,M;return o.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,s={hs:d,og:m,pd:D,vm:y,dt:v||(r?"server":"browser"),ed:"javascript",cu:x,ad:b,os:JSON.stringify(w),fn:S},l={},!k||K){n.next=17;break}return n.next=6,T.getItem(I);case 6:if(!(h=n.sent)){n.next=16;break}return n.t0=JSON,n.next=11,tt(h);case 11:n.t1=n.sent,C=n.t0.parse.call(n.t0,n.t1),A=(0,i.default)(C,2),x=A[0],k=A[1];case 16:l["lts-time"]=k;case 17:return _&&(s.sp=_),E&&(s.lm=E),O&&(s.cw=O),n.next=22,u.race([(0,a.default)(o.default.mark((function t(){var e,n,r,i,h,y,v,b;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=(new Date).kUtilFormat("yyyy-MM-ddTHH:mm:ss.SSSZ"),!k||K){t.next=9;break}return t.t0=T,t.t1=I,t.next=6,et(JSON.stringify([x,e]));case 6:t.t2=t.sent,t.t0.setItem.call(t.t0,t.t1,t.t2),k=e;case 9:return r="auth/?ext="+encodeURIComponent(f(JSON.stringify(s))),i=!1,h=!1,v=function(){var t=(0,a.default)(o.default.mark((function t(e){var n,r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:if(!e.ok){t.next=4;break}return t.abrupt("return");case 4:return t.prev=4,t.next=7,e.text();case 7:(n=t.sent)&&(n,(r=JSON.parse(n)).errorCode&&(y=r,r.errorCode>100&&r.errorCode<200&&(g=null,i=!0,h=!0))),t.next=13;break;case 11:t.prev=11,t.t0=t.catch(4);case 13:case"end":return t.stop()}}),t,null,[[4,11]])})));return function(e){return t.apply(this,arguments)}}(),t.prev=13,t.next=16,u.race([fetch(U[0]+r,{headers:l,cache:c?"reload":"default",mode:"cors",timeout:1e4}),new u((function(t,e){setTimeout(e,1e4)}))]);case 16:return n=t.sent,t.next=19,v(n);case 19:t.next=23;break;case 21:t.prev=21,t.t3=t.catch(13);case 23:if(k||n&&n.ok||i){t.next=34;break}return t.prev=24,t.next=27,fetch(U[1]+r,{headers:l,mode:"cors",timeout:3e4});case 27:return n=t.sent,t.next=30,v(n);case 30:t.next=34;break;case 32:t.prev=32,t.t4=t.catch(24);case 34:if(k||n&&n.ok||i){t.next=45;break}return t.prev=35,t.next=38,fetch(U[0]+r,{headers:l,mode:"cors",timeout:3e4});case 38:return n=t.sent,t.next=41,v(n);case 41:t.next=45;break;case 43:t.prev=43,t.t5=t.catch(35);case 45:if(!y||151!=y.errorCode){t.next=57;break}return K||T.removeItem(I),T.removeItem(P),x=nt(),s.cu=x,k=void 0,r=encodeURIComponent(f(JSON.stringify(s))),t.next=54,fetch(U[0]+"auth/?ext="+r,{headers:l,mode:"cors",timeout:3e4});case 54:return n=t.sent,t.next=57,v(n);case 57:return function(){if(!n||!n.ok){var t;h&&T.setItem(P,""),y?111==y.errorCode?t=y.message:(p(t=y.message.trim(),".")||(t+="."),t="An error occurred during authorization: ".concat(t,d||m?" Contact the site administrator for more information.":" [Contact Dynamsoft](https://www.dynamsoft.com/company/contact/) for more information.")):t=d||m?at:ct;var e=Error(t);throw y&&y.errorCode&&(e.ltsErrorCode=y.errorCode),e}}(),t.next=61,n.text();case 61:if(b=t.sent,t.prev=62,k||K){t.next=71;break}return t.t6=T,t.t7=I,t.next=68,et(JSON.stringify([x,e]));case 68:t.t8=t.sent,t.t6.setItem.call(t.t6,t.t7,t.t8),k=e;case 71:T.setItem(P,b),t.next=76;break;case 74:t.prev=74,t.t9=t.catch(62);case 76:return t.abrupt("return",b);case 77:case"end":return t.stop()}}),t,null,[[13,21],[24,32],[35,43],[62,74]])})))(),new u((function(t,e){var n;n=d||m?it:ot,setTimeout((function(){return e(new Error(n))}),g?3e3:15e3)}))]);case 22:M=n.sent,g=M,n.next=30;break;case 26:n.prev=26,n.t2=n.catch(0),e&&t.dwt&&self.console.error(n.t2),L=n.t2;case 30:j=(new Date).kUtilFormat("yyyy-MM-ddTHH:mm:ss.SSSZ"),Y=null;case 32:case"end":return n.stop()}}),n,null,[[0,26]])})))()),n.next=3,Y;case 3:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),pt=function(){var n=(0,a.default)(o.default.mark((function n(){return o.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return $||($=(0,a.default)(o.default.mark((function n(){var r,i;return o.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(G(x),g){n.next=6;break}if(R){n.next=5;break}throw B(L.message),L;case 5:return n.abrupt("return");case 6:if(L&&H&&(H(L),H=null),r={dm:b},e&&(r.bd=!0),r.brtk=!0,r.ls=U[0],d&&(r.hs=d),m&&(r.og=m),r.cu=x,S&&(r.fn=S),D&&(r.product=D),v&&(r.dt=v),O&&(r.cw=O),w&&(r.os=JSON.stringify(w)),G(g),n.prev=20,t.dwt){n.next=35;break}return n.t0=JSON,n.next=25,Q(g);case 25:n.t1=n.sent,(i=n.t0.parse.call(n.t0,n.t1)).ba&&(r.ba=i.ba),i.usu&&(r.usu=i.usu),i.trial&&(r.trial=i.trial),i.its&&(r.its=i.its),1==r.trial&&i.msg?r.msg=i.msg:L?r.msg=L.message||L:i.msg&&(r.msg=i.msg),r.ar=i.in,n.next=36;break;case 35:r.ar=g;case 36:r.bafc=!!L,n.next=41;break;case 39:n.prev=39,n.t2=n.catch(20);case 41:return G(r),n.prev=42,n.next=45,A(r);case 45:n.next=49;break;case 47:n.prev=47,n.t3=n.catch(42);case 49:return n.next=51,ht();case 51:R||(R=!0),$=null;case 53:case"end":return n.stop()}}),n,null,[[20,39],[42,47]])})))()),n.next=3,$;case 3:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),ht=function(){var t=(0,a.default)(o.default.mark((function t(){var e,n,r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new Date,n=e.kUtilFormat("yyyy-MM-ddTHH:mm:ss.SSSZ"),t.next=4,N();case 4:if(r=t.sent,G(r),!(r&&r<n)){t.next=12;break}if(!L){t.next=11;break}throw new Error(rt);case 11:throw new Error(st);case 12:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),yt=function(){var t=(0,a.default)(o.default.mark((function t(){var e,n,r,i,c,a;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new Date,n=e.kUtilFormat("yyyy-MM-ddTHH:mm:ss.SSSZ"),t.next=4,M();case 4:return r=t.sent,t.next=7,N();case 7:if(!((i=t.sent)&&i<n)){t.next=15;break}return t.next=11,lt(!0);case 11:return t.next=13,pt();case 13:t.next=16;break;case 15:r&&r<n&&(e.setMinutes(e.getMinutes()-6),c=e,e=null,a=c.kUtilFormat("yyyy-MM-ddTHH:mm:ss.SSSZ"),k<a&<().then((function(){return pt()})));case 16:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),dt=!1,mt=null,gt=function(){var e=(0,a.default)(o.default.mark((function e(n,r,i,c){var s;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.dwt||r){e.next=4;break}return e.next=3,vt(i);case 3:return e.abrupt("return");case 4:if(e.prev=4,n=r,!new RegExp("^"+"{").test(n)||!p(r,"}")){e.next=11;break}return e.next=8,X(r);case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0=r;case 12:if(!(s=e.t0)){e.next=18;break}return e.next=16,C.setItem(i,s);case 16:e.next=19;break;case 18:G("ept ecpt");case 19:e.next=23;break;case 21:e.prev=21,e.t1=e.catch(4);case 23:if(!c){e.next=26;break}return e.next=26,vt(i);case 26:mt&&clearTimeout(mt),mt=setTimeout((0,a.default)(o.default.mark((function t(){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,vt();case 2:case"end":return t.stop()}}),t)}))),36e4);case 28:case"end":return e.stop()}var n}),e,null,[[4,21]])})));return function(t,n,r,o){return e.apply(this,arguments)}}(),vt=function(){var t=(0,a.default)(o.default.mark((function t(e,n){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return z=z.then((0,a.default)(o.default.mark((function t(){var r,c,a,s,u,f,l,p,h,y,d,m;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,C.keys();case 3:if(r=t.sent,n||(dt?e&&(r=r.filter((function(t){return t<e}))):e&&r.includes(e)?r=[e]:(r=[],G("Unexpected null key"))),r.length){t.next=7;break}return t.abrupt("return");case 7:dt||(dt=!0),c=0;case 9:if(!(c<r.length/1e3)){t.next=77;break}a=r.slice(1e3*c,1e3*c+999),s=[],u=0;case 13:if(!(u<a.length)){t.next=22;break}return t.t0=s,t.next=17,C.getItem(a[u]);case 17:t.t1=t.sent,t.t0.push.call(t.t0,t.t1);case 19:++u,t.next=13;break;case 22:if(f=(new Date).kUtilFormat("yyyy-MM-ddTHH:mm:ss.SSSZ"),K){t.next=42;break}return t.t2=T,t.t3=I,t.next=28,et(JSON.stringify([x,f]));case 28:return t.t4=t.sent,t.t2.setItem.call(t.t2,t.t3,t.t4),t.next=32,T.getItem(I);case 32:if(!(l=t.sent)){t.next=42;break}return t.t5=JSON,t.next=37,tt(l);case 37:t.t6=t.sent,p=t.t5.parse.call(t.t5,t.t6),h=(0,i.default)(p,2),x=h[0],k=h[1];case 42:return t.prev=42,y={"Content-Type":"application/json"},k&&!K&&(y["lts-time"]=k),t.next=47,fetch(U[0]+"verify",{mode:"cors",method:"POST",body:JSON.stringify(s),headers:y,timeout:3e4});case 47:if(!(d=t.sent).ok){t.next=67;break}k=f,m=0;case 51:if(!(m<a.length)){t.next=57;break}return t.next=54,C.removeItem(a[m]);case 54:++m,t.next=51;break;case 57:return t.next=59,d.json();case 59:if(!(t.sent.handshakeUpdateTime>j)){t.next=65;break}return t.next=63,lt(!0);case 63:return t.next=65,pt();case 65:t.next=68;break;case 67:throw new Error("verify failed. Status Code: "+d.status);case 68:t.next=74;break;case 70:throw t.prev=70,t.t7=t.catch(42),H&&(H(t.t7),H=null),t.t7;case 74:++c,t.next=9;break;case 77:J&&J(),t.next=82;break;case 80:t.prev=80,t.t8=t.catch(0);case 82:case"end":return t.stop()}}),t,null,[[0,80],[42,70]])})))),t.next=3,z;case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return{i:ut,c:yt,s:gt,caret:ht}}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){t.exports=n(6)},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function a(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),c=new _(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=x(c,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=u(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,c),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function l(){}function p(){}function h(){}var y={};a(y,o,(function(){return this}));var d=Object.getPrototypeOf,m=d&&d(d(E([])));m&&m!==e&&n.call(m,o)&&(y=m);var g=h.prototype=l.prototype=Object.create(y);function v(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var r;this._invoke=function(o,i){function c(){return new e((function(r,c){!function r(o,i,c,a){var s=u(t[o],t,i);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,a)}),(function(t){r("throw",t,c,a)})):e.resolve(l).then((function(t){f.value=t,c(f)}),(function(t){return r("throw",t,c,a)}))}a(s.arg)}(o,i,r,c)}))}return r=r?r.then(c,c):c()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,a(g,"constructor",h),a(h,"constructor",p),p.displayName=a(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(b.prototype),a(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var c=new b(s(e,n,r,o),i);return t.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},v(g),a(g,c,"Generator"),a(g,o,(function(){return this})),a(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=E,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return c.type="throw",c.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){var r=n(8),o=n(9),i=n(10),c=n(12);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||c()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(11);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(t,e,n,r,o,i,c){try{var a=t[i](c),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(r,o)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var c=t.apply(e,r);function a(t){n(c,o,i,a,s,"next",t)}function s(t){n(c,o,i,a,s,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){(function(){var t,r,o,i,c,a,s,u,f,l,p,h,y,d=function(t,e){for(var n in e)m.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},m={}.hasOwnProperty;h=n(17),p=n(0),l=n(18),y=n(19).sync,a=function(t){var e,n,r,o,i;for(i=[],e=0,n=(o=p.readdirSync(t)).length;e<n;e++)r=o[e],i.push(u(h.join(t,r)));return i},u=function(t){return p.statSync(t).isDirectory()?(a(t),p.rmdirSync(t)):p.unlinkSync(t)},s=function(t){return""===t?"---.EMPTY_STRING.---":""+t},i=function(t){function e(t){this.message=null!=t?t:"Unknown error.",e.__super__.constructor.call(this),null!=Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}return d(e,t),e.prototype.toString=function(){return this.name+": "+this.message},e}(Error),c=function(t,e,n,r,o){this.key=t,this.oldValue=e,this.newValue=n,this.url=r,this.storageArea=null!=o?o:"localStorage"},o=function t(e,n){if(this.key=e,this.index=n,!(this instanceof t))return new t(this.key,this.index)},f=function(){var t;return(t=function(){}).prototype=Object.create(null),new t},t=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,t),e.prototype.setItem=function(t,n){var r;return r=JSON.stringify(n),e.__super__.setItem.call(this,t,r)},e.prototype.getItem=function(t){return JSON.parse(e.__super__.getItem.call(this,t))},e}(r=function(t){var e;function n(t,r){var o,c;return this._location=t,this.quota=null!=r?r:5242880,n.__super__.constructor.call(this),this instanceof n?(this._location=h.resolve(this._location),null!=e[this._location]?e[this._location]:(this.length=0,this._bytesInUse=0,this._keys=[],this._metaKeyMap=f(),this._eventUrl="pid:"+process.pid,this._init(),this._QUOTA_EXCEEDED_ERR=i,"undefined"!=typeof Proxy&&null!==Proxy?(o={set:(c=this,function(t,e,n){return null!=c[e]?c[e]=n:c.setItem(e,n)}),get:function(t){return function(e,n){return null!=t[n]?t[n]:t.getItem(n)}}(this)},e[this._location]=new Proxy(this,o),e[this._location]):(e[this._location]=this,e[this._location]))):new n(this._location,this.quota)}return d(n,t),e={},n.prototype._init=function(){var t,e,n,r,i,c,a,s,u;try{if(null!=(u=p.statSync(this._location))&&!u.isDirectory())throw new Error("A file exists at the location '"+this._location+"' when trying to create/open localStorage");for(this._bytesInUse=0,this.length=0,n=p.readdirSync(this._location),c=i=0,s=n.length;i<s;c=++i)a=n[c],e=decodeURIComponent(a),this._keys.push(e),t=new o(a,c),this._metaKeyMap[e]=t,null!=(null!=(u=this._getStat(a))?u.size:void 0)&&(t.size=u.size,this._bytesInUse+=u.size);this.length=n.length}catch(t){if("ENOENT"!==(r=t).code)throw r;try{p.mkdirSync(this._location,{recursive:!0})}catch(t){if("EEXIST"!==(r=t).code)throw r}}},n.prototype.setItem=function(t,e){var n,r,a,u,f,l,p,d,m,g;if(d=null,(f=this.listenerCount("storage"))&&(d=this.getItem(t)),t=s(t),n=encodeURIComponent(t).replace(/[!'()]/g,escape).replace(/\*/g,"%2A"),u=h.join(this._location,n),g=(m=""+e).length,p=(a=!!(l=this._metaKeyMap[t]))?l.size:0,this._bytesInUse-p+g>this.quota)throw new i;if(y(u,m,{encoding:"utf8"}),a||((l=new o(n,this._keys.push(t)-1)).size=g,this._metaKeyMap[t]=l,this.length+=1,this._bytesInUse+=g),f)return r=new c(t,d,e,this._eventUrl),this.emit("storage",r)},n.prototype.getItem=function(t){var e,n;return t=s(t),(n=this._metaKeyMap[t])?(e=h.join(this._location,n.key),p.readFileSync(e,"utf8")):null},n.prototype._getStat=function(t){var e;t=s(t),e=h.join(this._location,encodeURIComponent(t));try{return p.statSync(e)}catch(t){return null}},n.prototype.removeItem=function(t){var e,n,r,o,i,a,f,l;if(t=s(t),a=this._metaKeyMap[t]){for(o in f=null,(r=this.listenerCount("storage"))&&(f=this.getItem(t)),delete this._metaKeyMap[t],this.length-=1,this._bytesInUse-=a.size,n=h.join(this._location,a.key),this._keys.splice(a.index,1),l=this._metaKeyMap)l[o],(i=this._metaKeyMap[o]).index>a.index&&(i.index-=1);if(u(n),r)return e=new c(t,f,null,this._eventUrl),this.emit("storage",e)}},n.prototype.key=function(t){var e;return"---.EMPTY_STRING.---"===(e=this._keys[t])?"":e},n.prototype.clear=function(){var t;if(a(this._location),this._metaKeyMap=f(),this._keys=[],this.length=0,this._bytesInUse=0,this.listenerCount("storage"))return t=new c(null,null,null,this._eventUrl),this.emit("storage",t)},n.prototype._getBytesInUse=function(){return this._bytesInUse},n.prototype._deleteLocation=function(){return delete e[this._location],u(this._location),this._metaKeyMap={},this._keys=[],this.length=0,this._bytesInUse=0},n}(l.EventEmitter)),e.LocalStorage=r,e.JSONStorage=t,e.QUOTA_EXCEEDED_ERR=i}).call(this)},function(t,e){t.exports=path},function(t,e,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var c=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(t,e){return new Promise((function(n,r){function o(n){t.removeListener(e,i),r(n)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",o),n([].slice.call(arguments))}g(t,e,i,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,n)}(t,o,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function l(t,e,n,r){var o,i,c;if(u(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),c=i[e]),void 0===c)c=i[e]=n,++t._eventsCount;else if("function"==typeof c?c=i[e]=r?[n,c]:[c,n]:r?c.unshift(n):c.push(n),(o=f(t))>0&&c.length>o&&!c.warned){c.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=c.length,console&&console.warn}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function y(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):m(o,o.length)}function d(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function g(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function o(i){r.once&&t.removeEventListener(e,o),n(i)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||c(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||c(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},a.prototype.getMaxListeners=function(){return f(this)},a.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var c;if(e.length>0&&(c=e[0]),c instanceof Error)throw c;var a=new Error("Unhandled error."+(c?" ("+c.message+")":""));throw a.context=c,a}var s=o[t];if(void 0===s)return!1;if("function"==typeof s)i(s,this,e);else{var u=s.length,f=m(s,u);for(n=0;n<u;++n)i(f[n],this,e)}return!0},a.prototype.addListener=function(t,e){return l(this,t,e,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(t,e){return l(this,t,e,!0)},a.prototype.once=function(t,e){return u(e),this.on(t,h(this,t,e)),this},a.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,h(this,t,e)),this},a.prototype.removeListener=function(t,e){var n,r,o,i,c;if(u(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){c=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,c||e)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},a.prototype.listeners=function(t){return y(this,t,!0)},a.prototype.rawListeners=function(t){return y(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},a.prototype.listenerCount=d,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){"use strict";t.exports=function(t,e,n,i){n instanceof Function&&(i=n,n=null);n||(n={});r.realpath(t,(function(a,u){!function(t,e,n,i){var a=s(t);return n.mode&&n.chown?u():r.stat(t,(function(t,e){return t||!e||((n=c({},n)).mode||(n.mode=e.mode),!n.chown&&process.getuid&&(n.chown={uid:e.uid,gid:e.gid})),u()}));function u(){o([[f,a,e,n.mode,n.encoding||"utf8"],n.chown&&[r,r.chown,a,n.chown.uid,n.chown.gid],n.mode&&[r,r.chmod,a,n.mode],[r,r.rename,a,t]],(function(t){t?r.unlink(a,(function(){i(t)})):i()}))}function f(t,e,o,i,c){r.open(t,"w",n.mode,(function(t,n){return t?c(t):Buffer.isBuffer(e)?r.write(n,e,0,e.length,0,o):null!=e?r.write(n,String(e),0,String(i),o):o();function o(t){if(t)return c(t);r.fsync(n,(function(t){if(t)return c(t);r.close(n,c)}))}}))}}(u||t,e,n,i)}))},t.exports.sync=function(t,e,n){n||(n={});try{t=r.realpathSync(t)}catch(t){}var o=s(t);try{if(!n.mode||!n.chown)try{var i=r.statSync(t);(n=c({},n)).mode||(n.mode=i.mode),!n.chown&&process.getuid&&(n.chown={uid:i.uid,gid:i.gid})}catch(t){}var a=r.openSync(o,"w",n.mode);Buffer.isBuffer(e)?r.writeSync(a,e,0,e.length,0):null!=e&&r.writeSync(a,String(e),0,String(n.encoding||"utf8")),r.fsyncSync(a),r.closeSync(a),n.chown&&r.chownSync(o,n.chown.uid,n.chown.gid),n.mode&&r.chmodSync(o,n.mode),r.renameSync(o,t)}catch(t){try{r.unlinkSync(o)}catch(t){}throw t}},t.exports._getTmpname=s;var r=n(20),o=n(35).chain,i=n(38),c=Object.assign||n(1)._extend,a=0;function s(t){return t+"."+i(__filename).hash(String(process.pid)).hash(String(++a)).result()}},function(t,e,n){var r,o,i=n(0),c=n(21),a=n(24),s=n(27),u=n(1);function f(t,e){Object.defineProperty(t,r,{get:function(){return e}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(r=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",o="___graceful-fs.previous");var l,p=function(){};if(u.debuglog?p=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var t=u.format.apply(u,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: ")}),!i[r]){var h=global[r]||[];f(i,h),i.close=function(t){function e(e,n){return t.call(i,e,(function(t){t||m(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(e,o,{value:t}),e}(i.close),i.closeSync=function(t){function e(e){t.apply(i,arguments),m()}return Object.defineProperty(e,o,{value:t}),e}(i.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){p(i[r]),n(30).equal(i[r].length,0)}))}function y(t){c(t),t.gracefulify=y,t.createReadStream=function(e,n){return new t.ReadStream(e,n)},t.createWriteStream=function(e,n){return new t.WriteStream(e,n)};var e=t.readFile;t.readFile=function(t,n,r){"function"==typeof n&&(r=n,n=null);return function t(n,r,o,i){return e(n,r,(function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?"function"==typeof o&&o.apply(this,arguments):d([t,[n,r,o],e,i||Date.now(),Date.now()])}))}(t,n,r)};var n=t.writeFile;t.writeFile=function(t,e,r,o){"function"==typeof r&&(o=r,r=null);return function t(e,r,o,i,c){return n(e,r,o,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof i&&i.apply(this,arguments):d([t,[e,r,o,i],n,c||Date.now(),Date.now()])}))}(t,e,r,o)};var r=t.appendFile;r&&(t.appendFile=function(t,e,n,o){"function"==typeof n&&(o=n,n=null);return function t(e,n,o,i,c){return r(e,n,o,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof i&&i.apply(this,arguments):d([t,[e,n,o,i],r,c||Date.now(),Date.now()])}))}(t,e,n,o)});var o=t.copyFile;o&&(t.copyFile=function(t,e,n,r){"function"==typeof n&&(r=n,n=0);return function t(e,n,r,i,c){return o(e,n,r,(function(o){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):d([t,[e,n,r,i],o,c||Date.now(),Date.now()])}))}(t,e,n,r)});var i=t.readdir;t.readdir=function(t,e,n){"function"==typeof e&&(n=e,e=null);var r=s.test(process.version)?function(t,e,n,r){return i(t,o(t,e,n,r))}:function(t,e,n,r){return i(t,e,o(t,e,n,r))};return r(t,e,n);function o(t,e,n,o){return function(i,c){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?(c&&c.sort&&c.sort(),"function"==typeof n&&n.call(this,i,c)):d([r,[t,e,n],i,o||Date.now(),Date.now()])}}};var s=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var u=a(t);m=u.ReadStream,g=u.WriteStream}var f=t.ReadStream;f&&(m.prototype=Object.create(f.prototype),m.prototype.open=function(){var t=this;b(t.path,t.flags,t.mode,(function(e,n){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n),t.read())}))});var l=t.WriteStream;l&&(g.prototype=Object.create(l.prototype),g.prototype.open=function(){var t=this;b(t.path,t.flags,t.mode,(function(e,n){e?(t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n))}))}),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(t){m=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return g},set:function(t){g=t},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(t){p=t},enumerable:!0,configurable:!0});var h=g;function m(t,e){return this instanceof m?(f.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function g(t,e){return this instanceof g?(l.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}Object.defineProperty(t,"FileWriteStream",{get:function(){return h},set:function(t){h=t},enumerable:!0,configurable:!0});var v=t.open;function b(t,e,n,r){return"function"==typeof n&&(r=n,n=null),function t(e,n,r,o,i){return v(e,n,r,(function(c,a){!c||"EMFILE"!==c.code&&"ENFILE"!==c.code?"function"==typeof o&&o.apply(this,arguments):d([t,[e,n,r,o],c,i||Date.now(),Date.now()])}))}(t,e,n,r)}return t.open=b,t}function d(t){p("ENQUEUE",t[0].name,t[1]),i[r].push(t),g()}function m(){for(var t=Date.now(),e=0;e<i[r].length;++e)i[r][e].length>2&&(i[r][e][3]=t,i[r][e][4]=t);g()}function g(){if(clearTimeout(l),l=void 0,0!==i[r].length){var t=i[r].shift(),e=t[0],n=t[1],o=t[2],c=t[3],a=t[4];if(void 0===c)p("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-c>=6e4){p("TIMEOUT",e.name,n);var s=n.pop();"function"==typeof s&&s.call(null,o)}else{var u=Date.now()-a,f=Math.max(a-c,1);u>=Math.min(1.2*f,100)?(p("RETRY",e.name,n),e.apply(null,n.concat([c]))):i[r].push(t)}void 0===l&&(l=setTimeout(g,0))}}global[r]||f(global,i[r]),t.exports=y(s(i)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched&&(t.exports=y(i),i.__patched=!0)},function(t,e,n){var r=n(22),o=process.cwd,i=null,c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=o.call(process)),i};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(t){i=null,a.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}t.exports=function(t){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,n,o){t.open(e,r.O_WRONLY|r.O_SYMLINK,n,(function(e,r){e?o&&o(e):t.fchmod(r,n,(function(e){t.close(r,(function(t){o&&o(e||t)}))}))}))},t.lchmodSync=function(e,n){var o,i=t.openSync(e,r.O_WRONLY|r.O_SYMLINK,n),c=!0;try{o=t.fchmodSync(i,n),c=!1}finally{if(c)try{t.closeSync(i)}catch(t){}else t.closeSync(i)}return o}}(t);t.lutimes||function(t){r.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(e,n,o,i){t.open(e,r.O_SYMLINK,(function(e,r){e?i&&i(e):t.futimes(r,n,o,(function(e){t.close(r,(function(t){i&&i(e||t)}))}))}))},t.lutimesSync=function(e,n,o){var i,c=t.openSync(e,r.O_SYMLINK),a=!0;try{i=t.futimesSync(c,n,o),a=!1}finally{if(a)try{t.closeSync(c)}catch(t){}else t.closeSync(c)}return i}):t.futimes&&(t.lutimes=function(t,e,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t);t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=e(t.chmod),t.fchmod=e(t.fchmod),t.lchmod=e(t.lchmod),t.chownSync=i(t.chownSync),t.fchownSync=i(t.fchownSync),t.lchownSync=i(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=s(t.statSync),t.fstatSync=s(t.fstatSync),t.lstatSync=s(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(t,e,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.chown&&!t.lchown&&(t.lchown=function(t,e,n,r){r&&process.nextTick(r)},t.lchownSync=function(){});"win32"===c&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,r,o){var i=Date.now(),c=0;e(n,r,(function a(s){if(s&&("EACCES"===s.code||"EPERM"===s.code)&&Date.now()-i<6e4)return setTimeout((function(){t.stat(r,(function(t,i){t&&"ENOENT"===t.code?e(n,r,a):o(s)}))}),c),void(c<100&&(c+=10));o&&o(s)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.rename));function e(e){return e?function(n,r,o){return e.call(t,n,r,(function(t){u(t)&&(t=null),o&&o.apply(this,arguments)}))}:e}function n(e){return e?function(n,r){try{return e.call(t,n,r)}catch(t){if(!u(t))throw t}}:e}function o(e){return e?function(n,r,o,i){return e.call(t,n,r,o,(function(t){u(t)&&(t=null),i&&i.apply(this,arguments)}))}:e}function i(e){return e?function(n,r,o){try{return e.call(t,n,r,o)}catch(t){if(!u(t))throw t}}:e}function a(e){return e?function(n,r,o){function i(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),o&&o.apply(this,arguments)}return"function"==typeof r&&(o=r,r=null),r?e.call(t,n,r,i):e.call(t,n,i)}:e}function s(e){return e?function(n,r){var o=r?e.call(t,n,r):e.call(t,n);return o&&(o.uid<0&&(o.uid+=4294967296),o.gid<0&&(o.gid+=4294967296)),o}:e}function u(t){return!t||("ENOSYS"===t.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==t.code&&"EPERM"!==t.code))}t.read="function"!=typeof t.read?t.read:function(e){function n(n,r,o,i,c,a){var s;if(a&&"function"==typeof a){var u=0;s=function(f,l,p){if(f&&"EAGAIN"===f.code&&u<10)return u++,e.call(t,n,r,o,i,c,s);a.apply(this,arguments)}}return e.call(t,n,r,o,i,c,s)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(f=t.readSync,function(e,n,r,o,i){for(var c=0;;)try{return f.call(t,e,n,r,o,i)}catch(t){if("EAGAIN"===t.code&&c<10){c++;continue}throw t}});var f}},function(t,e,n){t.exports=n(23)},function(t,e){t.exports=function(e){return t.exports.definer(e)},t.exports.define=function(e,n,r){var o;if("object"==typeof n)for(o in n)n.hasOwnProperty(o)&&t.exports.define(e,o,n[o]);else Object.defineProperty(e,n,{value:r,enumerable:!0,writable:!1,configurable:!1});return e},t.exports.definer=function(e){return e=e||Object.create(null),function(n,r){return t.exports.define(e,n,r)}}},function(t,e,n){var r=n(25).Stream;t.exports=function(t){return{ReadStream:function e(n,o){if(!(this instanceof e))return new e(n,o);r.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,o=o||{};for(var c=Object.keys(o),a=0,s=c.length;a<s;a++){var u=c[a];this[u]=o[u]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){i._read()}));t.open(this.path,this.flags,this.mode,(function(t,e){if(t)return i.emit("error",t),void(i.readable=!1);i.fd=e,i.emit("open",e),i._read()}))},WriteStream:function e(n,o){if(!(this instanceof e))return new e(n,o);r.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var i=Object.keys(o),c=0,a=i.length;c<a;c++){var s=i[c];this[s]=o[s]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},function(t,e,n){var r=n(26);function o(){r.call(this)}o.prototype=new r,t.exports=o,o.Stream=o,o.prototype.pipe=function(t,e){var n=this;function r(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",c),n.on("close",a));var i=!1;function c(){i||(i=!0,t.end())}function a(){i||(i=!0,"function"==typeof t.destroy&&t.destroy())}function s(t){if(u(),!this.hasListeners("error"))throw t}function u(){n.off("data",r),t.off("drain",o),n.off("end",c),n.off("close",a),n.off("error",s),t.off("error",s),n.off("end",u),n.off("close",u),t.off("end",u),t.off("close",u)}return n.on("error",s),t.on("error",s),n.on("end",u),n.on("close",u),t.on("end",u),t.on("close",u),t.emit("pipe",n),t}},function(t,e){function n(t){if(t)return function(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}(t)}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},n.prototype.once=function(t,e){var n=this;function r(){n.off(t,r),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},r.fn=e,this.on(t,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks[t];if(!r)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var o=0;o<r.length;o++)if((n=r[o])===e||n.fn===e){r.splice(o,1);break}return this},n.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n)for(var r=0,o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,e);return this},n.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},n.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:r(t)};else e=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e};var r=Object.getPrototypeOf||function(t){return t.__proto__}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";var r=n(31);
|
|
667
|
-
/*!
|
|
668
|
-
* The buffer module from node.js, for the browser.
|
|
669
|
-
*
|
|
670
|
-
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
671
|
-
* @license MIT
|
|
672
|
-
*/function o(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0}function i(t){return global.Buffer&&"function"==typeof global.Buffer.isBuffer?global.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var c=n(32),a=Object.prototype.hasOwnProperty,s=Array.prototype.slice,u="foo"===function(){}.name;function f(t){return Object.prototype.toString.call(t)}function l(t){return!i(t)&&("function"==typeof global.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var p=t.exports=v,h=/\s*function\s+([^\(\s]*)\s*/;function y(t){if(c.isFunction(t)){if(u)return t.name;var e=t.toString().match(h);return e&&e[1]}}function d(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function m(t){if(u||!c.isFunction(t))return c.inspect(t);var e=y(t);return"[Function"+(e?": "+e:"")+"]"}function g(t,e,n,r,o){throw new p.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:o})}function v(t,e){t||g(t,!0,e,"==",p.ok)}function b(t,e,n,r){if(t===e)return!0;if(i(t)&&i(e))return 0===o(t,e);if(c.isDate(t)&&c.isDate(e))return t.getTime()===e.getTime();if(c.isRegExp(t)&&c.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(l(t)&&l(e)&&f(t)===f(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===o(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;var a=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==a&&a===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(t,e,n,r){if(null==t||null==e)return!1;if(c.isPrimitive(t)||c.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var o=x(t),i=x(e);if(o&&!i||!o&&i)return!1;if(o)return t=s.call(t),e=s.call(e),b(t,e,n);var a,u,f=_(t),l=_(e);if(f.length!==l.length)return!1;for(f.sort(),l.sort(),u=f.length-1;u>=0;u--)if(f[u]!==l[u])return!1;for(u=f.length-1;u>=0;u--)if(a=f[u],!b(t[a],e[a],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function x(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function S(t,e,n,r){var o;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!o&&g(o,n,"Missing expected exception"+r);var i="string"==typeof r,a=!t&&o&&!n;if((!t&&c.isError(o)&&i&&w(o,n)||a)&&g(o,n,"Got unwanted exception"+r),t&&o&&n&&!w(o,n)||!t&&o)throw o}p.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return d(m(t.actual),128)+" "+t.operator+" "+d(m(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,o=y(e),i=r.indexOf("\n"+o);if(i>=0){var c=r.indexOf("\n",i+1);r=r.substring(c+1)}this.stack=r}}},c.inherits(p.AssertionError,Error),p.fail=g,p.ok=v,p.equal=function(t,e,n){t!=e&&g(t,e,n,"==",p.equal)},p.notEqual=function(t,e,n){t==e&&g(t,e,n,"!=",p.notEqual)},p.deepEqual=function(t,e,n){b(t,e,!1)||g(t,e,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(t,e,n){b(t,e,!0)||g(t,e,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(t,e,n){b(t,e,!1)&&g(t,e,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function t(e,n,r){b(e,n,!0)&&g(e,n,r,"notDeepStrictEqual",t)},p.strictEqual=function(t,e,n){t!==e&&g(t,e,n,"===",p.strictEqual)},p.notStrictEqual=function(t,e,n){t===e&&g(t,e,n,"!==",p.notStrictEqual)},p.throws=function(t,e,n){S(!0,t,e,n)},p.doesNotThrow=function(t,e,n){S(!1,t,e,n)},p.ifError=function(t){if(t)throw t},p.strict=r((function t(e,n){e||g(e,!0,n,"==",t)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var _=Object.keys||function(t){var e=[];for(var n in t)a.call(t,n)&&e.push(n);return e}},function(t,e,n){"use strict";
|
|
673
|
-
/*
|
|
674
|
-
object-assign
|
|
675
|
-
(c) Sindre Sorhus
|
|
676
|
-
@license MIT
|
|
677
|
-
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function c(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,s=c(t),u=1;u<arguments.length;u++){for(var f in n=Object(arguments[u]))o.call(n,f)&&(s[f]=n[f]);if(r){a=r(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},function(t,e,n){var r=/%[sdj%]/g;e.format=function(t){if(!m(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(c(arguments[n]));return e.join(" ")}n=1;for(var o=arguments,i=o.length,a=String(t).replace(r,(function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(t){return"[Circular]"}default:return t}})),s=o[n];n<i;s=o[++n])y(s)||!b(s)?a+=" "+s:a+=" "+c(s);return a},e.deprecate=function(t,n){if(g(global.process))return function(){return e.deprecate(t,n).apply(this,arguments)};if(!0===process.noDeprecation)return t;var r=!1;return function(){if(!r){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation,r=!0}return t.apply(this,arguments)}};var o,i={};function c(t,n){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&e._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),u(r,t,r.depth)}function a(t,e){var n=c.styles[e];return n?"["+c.colors[n][0]+"m"+t+"["+c.colors[n][1]+"m":t}function s(t,e){return t}function u(t,n,r){if(t.customInspect&&n&&S(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return m(o)||(o=u(t,o,r)),o}var i=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(m(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(d(e))return t.stylize(""+e,"number");if(h(e))return t.stylize(""+e,"boolean");if(y(e))return t.stylize("null","null")}(t,n);if(i)return i;var c=Object.keys(n),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(c);if(t.showHidden&&(c=Object.getOwnPropertyNames(n)),w(n)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return f(n);if(0===c.length){if(S(n)){var s=n.name?": "+n.name:"";return t.stylize("[Function"+s+"]","special")}if(v(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return t.stylize(Date.prototype.toString.call(n),"date");if(w(n))return f(n)}var b,_="",O=!1,k=["{","}"];(p(n)&&(O=!0,k=["[","]"]),S(n))&&(_=" [Function"+(n.name?": "+n.name:"")+"]");return v(n)&&(_=" "+RegExp.prototype.toString.call(n)),x(n)&&(_=" "+Date.prototype.toUTCString.call(n)),w(n)&&(_=" "+f(n)),0!==c.length||O&&0!=n.length?r<0?v(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),b=O?function(t,e,n,r,o){for(var i=[],c=0,a=e.length;c<a;++c)E(e,String(c))?i.push(l(t,e,n,r,String(c),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(l(t,e,n,r,o,!0))})),i}(t,n,r,a,c):c.map((function(e){return l(t,n,r,a,e,O)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(b,_,k)):k[0]+_+k[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,n,r,o,i){var c,a,s;if((s=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?a=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(a=t.stylize("[Setter]","special")),E(r,o)||(c="["+o+"]"),a||(t.seen.indexOf(s.value)<0?(a=y(n)?u(t,s.value,null):u(t,s.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),g(c)){if(i&&o.match(/^\d+$/))return a;(c=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,c.length-2),c=t.stylize(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=t.stylize(c,"string"))}return c+": "+a}function p(t){return Array.isArray(t)}function h(t){return"boolean"==typeof t}function y(t){return null===t}function d(t){return"number"==typeof t}function m(t){return"string"==typeof t}function g(t){return void 0===t}function v(t){return b(t)&&"[object RegExp]"===_(t)}function b(t){return"object"==typeof t&&null!==t}function x(t){return b(t)&&"[object Date]"===_(t)}function w(t){return b(t)&&("[object Error]"===_(t)||t instanceof Error)}function S(t){return"function"==typeof t}function _(t){return Object.prototype.toString.call(t)}e.debuglog=function(t){if(g(o)&&(o=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!i[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){process.pid;i[t]=function(){e.format.apply(e,arguments)}}else i[t]=function(){};return i[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=h,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=d,e.isString=m,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=g,e.isRegExp=v,e.isObject=b,e.isDate=x,e.isError=w,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(33);function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){},e.inherits=n(34),e._extend=function(t,e){if(!e||!b(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){e.asyncMap=n(36),e.bindActor=n(2),e.chain=n(37)},function(t,e){t.exports=function(){var t=Array.prototype.slice.call(arguments),e=t.shift()||[],n=t.pop();if("function"!=typeof n)throw new Error("No callback provided to asyncMap");if(!e)return n(null,[]);Array.isArray(e)||(e=[e]);var r=t.length,o=[],i=null,c=e.length,a=c*r;if(!a)return n(null,[]);function s(u){u&&!i&&(i=u);for(var f=arguments.length,l=1;l<f;l++)void 0!==arguments[l]&&(o[l-1]=(o[l-1]||[]).concat(arguments[l]));if(e.length>c){var p=e.slice(c);a+=(e.length-c)*r,c=e.length,process.nextTick((function(){p.forEach((function(e){t.forEach((function(t){t(e,s)}))}))}))}0==--a&&n.apply(null,[i].concat(o))}e.forEach((function(e){t.forEach((function(t){t(e,s)}))}))}},function(t,e,n){t.exports=o;var r=n(2);function o(t,e){var n=[];!function i(c,a){return c>=a?e(null,n):(Array.isArray(t[c])&&(t[c]=r.apply(null,t[c].map((function(t){return t===o.first?n[0]:t===o.last?n[n.length-1]:t})))),t[c]?void t[c]((function(t,r){if(t)return e(t,n);void 0!==r&&(n=n.concat(r)),i(c+1,a)})):i(c+1,a))}(0,t.length)}o.first={},o.last={}},function(t,e,n){
|
|
678
|
-
/**
|
|
679
|
-
* @preserve
|
|
680
|
-
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
|
|
681
|
-
*
|
|
682
|
-
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
|
|
683
|
-
* @see http://github.com/homebrewing/brauhaus-diff
|
|
684
|
-
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
|
|
685
|
-
* @see http://github.com/garycourt/murmurhash-js
|
|
686
|
-
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
|
|
687
|
-
* @see http://sites.google.com/site/murmurhash/
|
|
688
|
-
*/
|
|
689
|
-
!function(){var e;function n(t,r){var o=this instanceof n?this:e;if(o.reset(r),"string"==typeof t&&t.length>0&&o.hash(t),o!==this)return o}n.prototype.hash=function(t){var e,n,r,o,i;switch(i=t.length,this.len+=i,n=this.k1,r=0,this.rem){case 0:n^=i>r?65535&t.charCodeAt(r++):0;case 1:n^=i>r?(65535&t.charCodeAt(r++))<<8:0;case 2:n^=i>r?(65535&t.charCodeAt(r++))<<16:0;case 3:n^=i>r?(255&t.charCodeAt(r))<<24:0,n^=i>r?(65280&t.charCodeAt(r++))>>8:0}if(this.rem=i+this.rem&3,(i-=this.rem)>0){for(e=this.h1;e=5*(e=(e^=n=13715*(n=(n=11601*n+3432906752*(65535&n)&4294967295)<<15|n>>>17)+461832192*(65535&n)&4294967295)<<13|e>>>19)+3864292196&4294967295,!(r>=i);)n=65535&t.charCodeAt(r++)^(65535&t.charCodeAt(r++))<<8^(65535&t.charCodeAt(r++))<<16,n^=(255&(o=t.charCodeAt(r++)))<<24^(65280&o)>>8;switch(n=0,this.rem){case 3:n^=(65535&t.charCodeAt(r+2))<<16;case 2:n^=(65535&t.charCodeAt(r+1))<<8;case 1:n^=65535&t.charCodeAt(r)}this.h1=e}return this.k1=n,this},n.prototype.result=function(){var t,e;return t=this.k1,e=this.h1,t>0&&(e^=t=13715*(t=(t=11601*t+3432906752*(65535&t)&4294967295)<<15|t>>>17)+461832192*(65535&t)&4294967295),e^=this.len,e=51819*(e^=e>>>16)+2246770688*(65535&e)&4294967295,e=44597*(e^=e>>>13)+3266445312*(65535&e)&4294967295,(e^=e>>>16)>>>0},n.prototype.reset=function(t){return this.h1="number"==typeof t?t:0,this.rem=this.k1=this.len=0,this},e=new n,t.exports=n}()},function(t,e,n){"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw new Error("unable to locate global object")}();t.exports=e=r.fetch,r.fetch&&(e.default=r.fetch.bind(r)),e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response},function(t,e){}]);
|
|
667
|
+
!function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var r=function(e){return e&&e.Math==Math&&e},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")(),o={},i=function(e){try{return!!e()}catch(t){return!0}},a=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),c=u,f=Function.prototype.call,s=c?f.bind(f):function(){return f.apply(f,arguments)},l={},d={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!d.call({1:2},1);l.f=h?function(e){var t=p(this,e);return!!t&&t.enumerable}:d;var y,v,g=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},b=u,m=Function.prototype,x=m.bind,w=m.call,S=b&&x.bind(w,w),A=b?function(e){return e&&S(e)}:function(e){return e&&function(){return w.apply(e,arguments)}},O=A,_=O({}.toString),I=O("".slice),E=function(e){return I(_(e),8,-1)},T=A,k=i,j=E,R=n.Object,M=T("".split),P=k((function(){return!R("z").propertyIsEnumerable(0)}))?function(e){return"String"==j(e)?M(e,""):R(e)}:R,C=n.TypeError,D=function(e){if(e==undefined)throw C("Can't call method on "+e);return e},L=P,N=D,F=function(e){return L(N(e))},B=function(e){return"function"==typeof e},U=B,W=function(e){return"object"==typeof e?null!==e:U(e)},Y=n,G=B,$=function(e){return G(e)?e:undefined},z=function(e,t){return arguments.length<2?$(Y[e]):Y[e]&&Y[e][t]},V=A({}.isPrototypeOf),H=z("navigator","userAgent")||"",J=n,K=H,X=J.process,Z=J.Deno,q=X&&X.versions||Z&&Z.version,Q=q&&q.v8;Q&&(v=(y=Q.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!v&&K&&(!(y=K.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=K.match(/Chrome\/(\d+)/))&&(v=+y[1]);var ee=v,te=ee,re=i,ne=!!Object.getOwnPropertySymbols&&!re((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&te&&te<41})),oe=ne&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ie=z,ae=B,ue=V,ce=oe,fe=n.Object,se=ce?function(e){return"symbol"==typeof e}:function(e){var t=ie("Symbol");return ae(t)&&ue(t.prototype,fe(e))},le=n.String,de=function(e){try{return le(e)}catch(t){return"Object"}},pe=B,he=de,ye=n.TypeError,ve=function(e){if(pe(e))return e;throw ye(he(e)+" is not a function")},ge=ve,be=function(e,t){var r=e[t];return null==r?undefined:ge(r)},me=s,xe=B,we=W,Se=n.TypeError,Ae={exports:{}},Oe=n,_e=Object.defineProperty,Ie=function(e,t){try{_e(Oe,e,{value:t,configurable:!0,writable:!0})}catch(r){Oe[e]=t}return t},Ee=Ie,Te="__core-js_shared__",ke=n[Te]||Ee(Te,{}),je=ke;(Ae.exports=function(e,t){return je[e]||(je[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.22.4",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE",source:"https://github.com/zloirock/core-js"});var Re=D,Me=n.Object,Pe=function(e){return Me(Re(e))},Ce=Pe,De=A({}.hasOwnProperty),Le=Object.hasOwn||function(e,t){return De(Ce(e),t)},Ne=A,Fe=0,Be=Math.random(),Ue=Ne(1..toString),We=function(e){return"Symbol("+(e===undefined?"":e)+")_"+Ue(++Fe+Be,36)},Ye=n,Ge=Ae.exports,$e=Le,ze=We,Ve=ne,He=oe,Je=Ge("wks"),Ke=Ye.Symbol,Xe=Ke&&Ke["for"],Ze=He?Ke:Ke&&Ke.withoutSetter||ze,qe=function(e){if(!$e(Je,e)||!Ve&&"string"!=typeof Je[e]){var t="Symbol."+e;Ve&&$e(Ke,e)?Je[e]=Ke[e]:Je[e]=He&&Xe?Xe(t):Ze(t)}return Je[e]},Qe=s,et=W,tt=se,rt=be,nt=function(e,t){var r,n;if("string"===t&&xe(r=e.toString)&&!we(n=me(r,e)))return n;if(xe(r=e.valueOf)&&!we(n=me(r,e)))return n;if("string"!==t&&xe(r=e.toString)&&!we(n=me(r,e)))return n;throw Se("Can't convert object to primitive value")},ot=qe,it=n.TypeError,at=ot("toPrimitive"),ut=function(e,t){if(!et(e)||tt(e))return e;var r,n=rt(e,at);if(n){if(t===undefined&&(t="default"),r=Qe(n,e,t),!et(r)||tt(r))return r;throw it("Can't convert object to primitive value")}return t===undefined&&(t="number"),nt(e,t)},ct=se,ft=function(e){var t=ut(e,"string");return ct(t)?t:t+""},st=W,lt=n.document,dt=st(lt)&&st(lt.createElement),pt=function(e){return dt?lt.createElement(e):{}},ht=pt,yt=!a&&!i((function(){return 7!=Object.defineProperty(ht("div"),"a",{get:function(){return 7}}).a})),vt=a,gt=s,bt=l,mt=g,xt=F,wt=ft,St=Le,At=yt,Ot=Object.getOwnPropertyDescriptor;o.f=vt?Ot:function(e,t){if(e=xt(e),t=wt(t),At)try{return Ot(e,t)}catch(r){}if(St(e,t))return mt(!gt(bt.f,e,t),e[t])};var _t={},It=a&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Et=n,Tt=W,kt=Et.String,jt=Et.TypeError,Rt=function(e){if(Tt(e))return e;throw jt(kt(e)+" is not an object")},Mt=a,Pt=yt,Ct=It,Dt=Rt,Lt=ft,Nt=n.TypeError,Ft=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor,Ut="enumerable",Wt="configurable",Yt="writable";_t.f=Mt?Ct?function(e,t,r){if(Dt(e),t=Lt(t),Dt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Yt in r&&!r.writable){var n=Bt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Wt in r?r.configurable:n.configurable,enumerable:Ut in r?r.enumerable:n.enumerable,writable:!1})}return Ft(e,t,r)}:Ft:function(e,t,r){if(Dt(e),t=Lt(t),Dt(r),Pt)try{return Ft(e,t,r)}catch(n){}if("get"in r||"set"in r)throw Nt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Gt=_t,$t=g,zt=a?function(e,t,r){return Gt.f(e,t,$t(1,r))}:function(e,t,r){return e[t]=r,e},Vt={exports:{}},Ht=a,Jt=Le,Kt=Function.prototype,Xt=Ht&&Object.getOwnPropertyDescriptor,Zt=Jt(Kt,"name"),qt={EXISTS:Zt,PROPER:Zt&&"something"===function(){}.name,CONFIGURABLE:Zt&&(!Ht||Ht&&Xt(Kt,"name").configurable)},Qt=B,er=ke,tr=A(Function.toString);Qt(er.inspectSource)||(er.inspectSource=function(e){return tr(e)});var rr,nr,or,ir=er.inspectSource,ar=B,ur=ir,cr=n.WeakMap,fr=ar(cr)&&/native code/.test(ur(cr)),sr=Ae.exports,lr=We,dr=sr("keys"),pr=function(e){return dr[e]||(dr[e]=lr(e))},hr={},yr=fr,vr=n,gr=A,br=W,mr=zt,xr=Le,wr=ke,Sr=pr,Ar=hr,Or="Object already initialized",_r=vr.TypeError,Ir=vr.WeakMap;if(yr||wr.state){var Er=wr.state||(wr.state=new Ir),Tr=gr(Er.get),kr=gr(Er.has),jr=gr(Er.set);rr=function(e,t){if(kr(Er,e))throw new _r(Or);return t.facade=e,jr(Er,e,t),t},nr=function(e){return Tr(Er,e)||{}},or=function(e){return kr(Er,e)}}else{var Rr=Sr("state");Ar[Rr]=!0,rr=function(e,t){if(xr(e,Rr))throw new _r(Or);return t.facade=e,mr(e,Rr,t),t},nr=function(e){return xr(e,Rr)?e[Rr]:{}},or=function(e){return xr(e,Rr)}}var Mr={set:rr,get:nr,has:or,enforce:function(e){return or(e)?nr(e):rr(e,{})},getterFor:function(e){return function(t){var r;if(!br(t)||(r=nr(t)).type!==e)throw _r("Incompatible receiver, "+e+" required");return r}}},Pr=i,Cr=B,Dr=Le,Lr=_t.f,Nr=qt.CONFIGURABLE,Fr=ir,Br=Mr.enforce,Ur=Mr.get,Wr=!Pr((function(){return 8!==Lr((function(){}),"length",{value:8}).length})),Yr=String(String).split("String"),Gr=Vt.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Dr(e,"name")||Nr&&e.name!==t)&&Lr(e,"name",{value:t,configurable:!0}),Wr&&r&&Dr(r,"arity")&&e.length!==r.arity&&Lr(e,"length",{value:r.arity});var n=Br(e);return Dr(n,"source")||(n.source=Yr.join("string"==typeof t?t:"")),e};Function.prototype.toString=Gr((function(){return Cr(this)&&Ur(this).source||Fr(this)}),"toString");var $r=n,zr=B,Vr=zt,Hr=Vt.exports,Jr=Ie,Kr=function(e,t,r,n){var o=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet,u=n&&n.name!==undefined?n.name:t;return zr(r)&&Hr(r,u,n),e===$r?(i?e[t]=r:Jr(t,r),e):(o?!a&&e[t]&&(i=!0):delete e[t],i?e[t]=r:Vr(e,t,r),e)},Xr={},Zr=Math.ceil,qr=Math.floor,Qr=function(e){var t=+e;return t!=t||0===t?0:(t>0?qr:Zr)(t)},en=Qr,tn=Math.max,rn=Math.min,nn=function(e,t){var r=en(e);return r<0?tn(r+t,0):rn(r,t)},on=Qr,an=Math.min,un=function(e){return e>0?an(on(e),9007199254740991):0},cn=un,fn=function(e){return cn(e.length)},sn=F,ln=nn,dn=fn,pn=function(e){return function(t,r,n){var o,i=sn(t),a=dn(i),u=ln(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},hn={includes:pn(!0),indexOf:pn(!1)},yn=Le,vn=F,gn=hn.indexOf,bn=hr,mn=A([].push),xn=function(e,t){var r,n=vn(e),o=0,i=[];for(r in n)!yn(bn,r)&&yn(n,r)&&mn(i,r);for(;t.length>o;)yn(n,r=t[o++])&&(~gn(i,r)||mn(i,r));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=xn,An=wn.concat("length","prototype");Xr.f=Object.getOwnPropertyNames||function(e){return Sn(e,An)};var On={};On.f=Object.getOwnPropertySymbols;var _n=z,In=Xr,En=On,Tn=Rt,kn=A([].concat),jn=_n("Reflect","ownKeys")||function(e){var t=In.f(Tn(e)),r=En.f;return r?kn(t,r(e)):t},Rn=Le,Mn=jn,Pn=o,Cn=_t,Dn=function(e,t,r){for(var n=Mn(t),o=Cn.f,i=Pn.f,a=0;a<n.length;a++){var u=n[a];Rn(e,u)||r&&Rn(r,u)||o(e,u,i(t,u))}},Ln=i,Nn=B,Fn=/#|\.prototype\./,Bn=function(e,t){var r=Wn[Un(e)];return r==Gn||r!=Yn&&(Nn(t)?Ln(t):!!t)},Un=Bn.normalize=function(e){return String(e).replace(Fn,".").toLowerCase()},Wn=Bn.data={},Yn=Bn.NATIVE="N",Gn=Bn.POLYFILL="P",$n=Bn,zn=n,Vn=o.f,Hn=zt,Jn=Kr,Kn=Ie,Xn=Dn,Zn=$n,qn=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,f=e.stat;if(r=c?zn:f?zn[u]||Kn(u,{}):(zn[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Vn(r,n))&&a.value:r[n],!Zn(c?n:u+(f?".":"#")+n,e.forced)&&o!==undefined){if(typeof i==typeof o)continue;Xn(i,o)}(e.sham||o&&o.sham)&&Hn(i,"sham",!0),Jn(r,n,i,e)}},Qn=ve,eo=u,to=A(A.bind),ro=function(e,t){return Qn(e),t===undefined?e:eo?to(e,t):function(){return e.apply(t,arguments)}},no=s,oo=Rt,io=be,ao=function(e,t,r){var n,o;oo(e);try{if(!(n=io(e,"return"))){if("throw"===t)throw r;return r}n=no(n,e)}catch(i){o=!0,n=i}if("throw"===t)throw r;if(o)throw n;return oo(n),r},uo=Rt,co=ao,fo={},so=fo,lo=qe("iterator"),po=Array.prototype,ho=function(e){return e!==undefined&&(so.Array===e||po[lo]===e)},yo={};yo[qe("toStringTag")]="z";var vo="[object z]"===String(yo),go=n,bo=vo,mo=B,xo=E,wo=qe("toStringTag"),So=go.Object,Ao="Arguments"==xo(function(){return arguments}()),Oo=bo?xo:function(e){var t,r,n;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=So(e),wo))?r:Ao?xo(t):"Object"==(n=xo(t))&&mo(t.callee)?"Arguments":n},_o=A,Io=i,Eo=B,To=Oo,ko=ir,jo=function(){},Ro=[],Mo=z("Reflect","construct"),Po=/^\s*(?:class|function)\b/,Co=_o(Po.exec),Do=!Po.exec(jo),Lo=function(e){if(!Eo(e))return!1;try{return Mo(jo,Ro,e),!0}catch(t){return!1}},No=function(e){if(!Eo(e))return!1;switch(To(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Do||!!Co(Po,ko(e))}catch(t){return!0}};No.sham=!0;var Fo=!Mo||Io((function(){var e;return Lo(Lo.call)||!Lo(Object)||!Lo((function(){e=!0}))||e}))?No:Lo,Bo=ft,Uo=_t,Wo=g,Yo=function(e,t,r){var n=Bo(t);n in e?Uo.f(e,n,Wo(0,r)):e[n]=r},Go=Oo,$o=be,zo=fo,Vo=qe("iterator"),Ho=function(e){if(e!=undefined)return $o(e,Vo)||$o(e,"@@iterator")||zo[Go(e)]},Jo=s,Ko=ve,Xo=Rt,Zo=de,qo=Ho,Qo=n.TypeError,ei=function(e,t){var r=arguments.length<2?qo(e):t;if(Ko(r))return Xo(Jo(r,e));throw Qo(Zo(e)+" is not iterable")},ti=ro,ri=s,ni=Pe,oi=function(e,t,r,n){try{return n?t(uo(r)[0],r[1]):t(r)}catch(o){co(e,"throw",o)}},ii=ho,ai=Fo,ui=fn,ci=Yo,fi=ei,si=Ho,li=n.Array,di=qe("iterator"),pi=!1;try{var hi=0,yi={next:function(){return{done:!!hi++}},"return":function(){pi=!0}};yi[di]=function(){return this},Array.from(yi,(function(){throw 2}))}catch(HI){}var vi=function(e,t){if(!t&&!pi)return!1;var r=!1;try{var n={};n[di]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(HI){}return r},gi=function(e){var t=ni(e),r=ai(this),n=arguments.length,o=n>1?arguments[1]:undefined,i=o!==undefined;i&&(o=ti(o,n>2?arguments[2]:undefined));var a,u,c,f,s,l,d=si(t),p=0;if(!d||this==li&&ii(d))for(a=ui(t),u=r?new this(a):li(a);a>p;p++)l=i?o(t[p],p):t[p],ci(u,p,l);else for(s=(f=fi(t,d)).next,u=r?new this:[];!(c=ri(s,f)).done;p++)l=i?oi(f,o,[c.value,p],!0):c.value,ci(u,p,l);return u.length=p,u};qn({target:"Array",stat:!0,forced:!vi((function(e){Array.from(e)}))},{from:gi});var bi=Oo,mi=n.String,xi=function(e){if("Symbol"===bi(e))throw TypeError("Cannot convert a Symbol value to a string");return mi(e)},wi={},Si=xn,Ai=wn,Oi=Object.keys||function(e){return Si(e,Ai)},_i=a,Ii=It,Ei=_t,Ti=Rt,ki=F,ji=Oi;wi.f=_i&&!Ii?Object.defineProperties:function(e,t){Ti(e);for(var r,n=ki(t),o=ji(t),i=o.length,a=0;i>a;)Ei.f(e,r=o[a++],n[r]);return e};var Ri,Mi=z("document","documentElement"),Pi=Rt,Ci=wi,Di=wn,Li=hr,Ni=Mi,Fi=pt,Bi=pr("IE_PROTO"),Ui=function(){},Wi=function(e){return"<script>"+e+"</"+"script>"},Yi=function(e){e.write(Wi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gi=function(){try{Ri=new ActiveXObject("htmlfile")}catch(HI){}var e,t;Gi="undefined"!=typeof document?document.domain&&Ri?Yi(Ri):((t=Fi("iframe")).style.display="none",Ni.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Wi("document.F=Object")),e.close(),e.F):Yi(Ri);for(var r=Di.length;r--;)delete Gi.prototype[Di[r]];return Gi()};Li[Bi]=!0;var $i=Object.create||function(e,t){var r;return null!==e?(Ui.prototype=Pi(e),r=new Ui,Ui.prototype=null,r[Bi]=e):r=Gi(),t===undefined?r:Ci.f(r,t)},zi={},Vi=nn,Hi=fn,Ji=Yo,Ki=n.Array,Xi=Math.max,Zi=function(e,t,r){for(var n=Hi(e),o=Vi(t,n),i=Vi(r===undefined?n:r,n),a=Ki(Xi(i-o,0)),u=0;o<i;o++,u++)Ji(a,u,e[o]);return a.length=u,a},qi=E,Qi=F,ea=Xr.f,ta=Zi,ra="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];zi.f=function(e){return ra&&"Window"==qi(e)?function(e){try{return ea(e)}catch(HI){return ta(ra)}}(e):ea(Qi(e))};var na={},oa=qe;na.f=oa;var ia=n,aa=Le,ua=na,ca=_t.f,fa=function(e){var t=ia.Symbol||(ia.Symbol={});aa(t,e)||ca(t,e,{value:ua.f(e)})},sa=s,la=z,da=qe,pa=Kr,ha=_t.f,ya=Le,va=qe("toStringTag"),ga=function(e,t,r){e&&!r&&(e=e.prototype),e&&!ya(e,va)&&ha(e,va,{configurable:!0,value:t})},ba=E,ma=Array.isArray||function(e){return"Array"==ba(e)},xa=n,wa=ma,Sa=Fo,Aa=W,Oa=qe("species"),_a=xa.Array,Ia=function(e){var t;return wa(e)&&(t=e.constructor,(Sa(t)&&(t===_a||wa(t.prototype))||Aa(t)&&null===(t=t[Oa]))&&(t=undefined)),t===undefined?_a:t},Ea=function(e,t){return new(Ia(e))(0===t?0:t)},Ta=ro,ka=P,ja=Pe,Ra=fn,Ma=Ea,Pa=A([].push),Ca=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(c,f,s,l){for(var d,p,h=ja(c),y=ka(h),v=Ta(f,s),g=Ra(y),b=0,m=l||Ma,x=t?m(c,g):r||a?m(c,0):undefined;g>b;b++)if((u||b in y)&&(p=v(d=y[b],b,h),e))if(t)x[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:Pa(x,d)}else switch(e){case 4:return!1;case 7:Pa(x,d)}return i?-1:n||o?o:x}},Da={forEach:Ca(0),map:Ca(1),filter:Ca(2),some:Ca(3),every:Ca(4),find:Ca(5),findIndex:Ca(6),filterReject:Ca(7)},La=qn,Na=n,Fa=s,Ba=A,Ua=a,Wa=ne,Ya=i,Ga=Le,$a=V,za=Rt,Va=F,Ha=ft,Ja=xi,Ka=g,Xa=$i,Za=Oi,qa=Xr,Qa=zi,eu=On,tu=o,ru=_t,nu=wi,ou=l,iu=Kr,au=Ae.exports,uu=hr,cu=We,fu=qe,su=na,lu=fa,du=function(){var e=la("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=da("toPrimitive");t&&!t[n]&&pa(t,n,(function(e){return sa(r,this)}),{arity:1})},pu=ga,hu=Mr,yu=Da.forEach,vu=pr("hidden"),gu="Symbol",bu=hu.set,mu=hu.getterFor(gu),xu=Object.prototype,wu=Na.Symbol,Su=wu&&wu.prototype,Au=Na.TypeError,Ou=Na.QObject,_u=tu.f,Iu=ru.f,Eu=Qa.f,Tu=ou.f,ku=Ba([].push),ju=au("symbols"),Ru=au("op-symbols"),Mu=au("wks"),Pu=!Ou||!Ou.prototype||!Ou.prototype.findChild,Cu=Ua&&Ya((function(){return 7!=Xa(Iu({},"a",{get:function(){return Iu(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=_u(xu,t);n&&delete xu[t],Iu(e,t,r),n&&e!==xu&&Iu(xu,t,n)}:Iu,Du=function(e,t){var r=ju[e]=Xa(Su);return bu(r,{type:gu,tag:e,description:t}),Ua||(r.description=t),r},Lu=function(e,t,r){e===xu&&Lu(Ru,t,r),za(e);var n=Ha(t);return za(r),Ga(ju,n)?(r.enumerable?(Ga(e,vu)&&e[vu][n]&&(e[vu][n]=!1),r=Xa(r,{enumerable:Ka(0,!1)})):(Ga(e,vu)||Iu(e,vu,Ka(1,{})),e[vu][n]=!0),Cu(e,n,r)):Iu(e,n,r)},Nu=function(e,t){za(e);var r=Va(t),n=Za(r).concat(Wu(r));return yu(n,(function(t){Ua&&!Fa(Fu,r,t)||Lu(e,t,r[t])})),e},Fu=function(e){var t=Ha(e),r=Fa(Tu,this,t);return!(this===xu&&Ga(ju,t)&&!Ga(Ru,t))&&(!(r||!Ga(this,t)||!Ga(ju,t)||Ga(this,vu)&&this[vu][t])||r)},Bu=function(e,t){var r=Va(e),n=Ha(t);if(r!==xu||!Ga(ju,n)||Ga(Ru,n)){var o=_u(r,n);return!o||!Ga(ju,n)||Ga(r,vu)&&r[vu][n]||(o.enumerable=!0),o}},Uu=function(e){var t=Eu(Va(e)),r=[];return yu(t,(function(e){Ga(ju,e)||Ga(uu,e)||ku(r,e)})),r},Wu=function(e){var t=e===xu,r=Eu(t?Ru:Va(e)),n=[];return yu(r,(function(e){!Ga(ju,e)||t&&!Ga(xu,e)||ku(n,ju[e])})),n};Wa||(wu=function(){if($a(Su,this))throw Au("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?Ja(arguments[0]):undefined,t=cu(e),r=function(e){this===xu&&Fa(r,Ru,e),Ga(this,vu)&&Ga(this[vu],t)&&(this[vu][t]=!1),Cu(this,t,Ka(1,e))};return Ua&&Pu&&Cu(xu,t,{configurable:!0,set:r}),Du(t,e)},iu(Su=wu.prototype,"toString",(function(){return mu(this).tag})),iu(wu,"withoutSetter",(function(e){return Du(cu(e),e)})),ou.f=Fu,ru.f=Lu,nu.f=Nu,tu.f=Bu,qa.f=Qa.f=Uu,eu.f=Wu,su.f=function(e){return Du(fu(e),e)},Ua&&(Iu(Su,"description",{configurable:!0,get:function(){return mu(this).description}}),iu(xu,"propertyIsEnumerable",Fu,{unsafe:!0}))),La({global:!0,wrap:!0,forced:!Wa,sham:!Wa},{Symbol:wu}),yu(Za(Mu),(function(e){lu(e)})),La({target:gu,stat:!0,forced:!Wa},{useSetter:function(){Pu=!0},useSimple:function(){Pu=!1}}),La({target:"Object",stat:!0,forced:!Wa,sham:!Ua},{create:function(e,t){return t===undefined?Xa(e):Nu(Xa(e),t)},defineProperty:Lu,defineProperties:Nu,getOwnPropertyDescriptor:Bu}),La({target:"Object",stat:!0,forced:!Wa},{getOwnPropertyNames:Uu}),du(),pu(wu,gu),uu[vu]=!0;var Yu=ne&&!!Symbol["for"]&&!!Symbol.keyFor,Gu=qn,$u=z,zu=Le,Vu=xi,Hu=Ae.exports,Ju=Yu,Ku=Hu("string-to-symbol-registry"),Xu=Hu("symbol-to-string-registry");Gu({target:"Symbol",stat:!0,forced:!Ju},{"for":function(e){var t=Vu(e);if(zu(Ku,t))return Ku[t];var r=$u("Symbol")(t);return Ku[t]=r,Xu[r]=t,r}});var Zu=qn,qu=Le,Qu=se,ec=de,tc=Yu,rc=(0,Ae.exports)("symbol-to-string-registry");Zu({target:"Symbol",stat:!0,forced:!tc},{keyFor:function(e){if(!Qu(e))throw TypeError(ec(e)+" is not a symbol");if(qu(rc,e))return rc[e]}});var nc=u,oc=Function.prototype,ic=oc.apply,ac=oc.call,uc="object"==typeof Reflect&&Reflect.apply||(nc?ac.bind(ic):function(){return ac.apply(ic,arguments)}),cc=A([].slice),fc=qn,sc=z,lc=uc,dc=s,pc=A,hc=i,yc=ma,vc=B,gc=W,bc=se,mc=cc,xc=ne,wc=sc("JSON","stringify"),Sc=pc(/./.exec),Ac=pc("".charAt),Oc=pc("".charCodeAt),_c=pc("".replace),Ic=pc(1..toString),Ec=/[\uD800-\uDFFF]/g,Tc=/^[\uD800-\uDBFF]$/,kc=/^[\uDC00-\uDFFF]$/,jc=!xc||hc((function(){var e=sc("Symbol")();return"[null]"!=wc([e])||"{}"!=wc({a:e})||"{}"!=wc(Object(e))})),Rc=hc((function(){return'"\\udf06\\ud834"'!==wc("\udf06\ud834")||'"\\udead"'!==wc("\udead")})),Mc=function(e,t){var r=mc(arguments),n=t;if((gc(t)||e!==undefined)&&!bc(e))return yc(t)||(t=function(e,t){if(vc(n)&&(t=dc(n,this,e,t)),!bc(t))return t}),r[1]=t,lc(wc,null,r)},Pc=function(e,t,r){var n=Ac(r,t-1),o=Ac(r,t+1);return Sc(Tc,e)&&!Sc(kc,o)||Sc(kc,e)&&!Sc(Tc,n)?"\\u"+Ic(Oc(e,0),16):e};wc&&fc({target:"JSON",stat:!0,arity:3,forced:jc||Rc},{stringify:function(e,t,r){var n=mc(arguments),o=lc(jc?Mc:wc,null,n);return Rc&&"string"==typeof o?_c(o,Ec,Pc):o}});var Cc=On,Dc=Pe;qn({target:"Object",stat:!0,forced:!ne||i((function(){Cc.f(1)}))},{getOwnPropertySymbols:function(e){var t=Cc.f;return t?t(Dc(e)):[]}});var Lc=qn,Nc=a,Fc=n,Bc=A,Uc=Le,Wc=B,Yc=V,Gc=xi,$c=_t.f,zc=Dn,Vc=Fc.Symbol,Hc=Vc&&Vc.prototype;if(Nc&&Wc(Vc)&&(!("description"in Hc)||Vc().description!==undefined)){var Jc={},Kc=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:Gc(arguments[0]),t=Yc(Hc,this)?new Vc(e):e===undefined?Vc():Vc(e);return""===e&&(Jc[t]=!0),t};zc(Kc,Vc),Kc.prototype=Hc,Hc.constructor=Kc;var Xc="Symbol(test)"==String(Vc("test")),Zc=Bc(Hc.toString),qc=Bc(Hc.valueOf),Qc=/^Symbol\((.*)\)[^)]+$/,ef=Bc("".replace),tf=Bc("".slice);$c(Hc,"description",{configurable:!0,get:function(){var e=qc(this),t=Zc(e);if(Uc(Jc,e))return"";var r=Xc?tf(t,7,-1):ef(t,Qc,"$1");return""===r?undefined:r}}),Lc({global:!0,forced:!0},{Symbol:Kc})}fa("iterator");var rf=Pe,nf=Oi;qn({target:"Object",stat:!0,forced:i((function(){nf(1)}))},{keys:function(e){return nf(rf(e))}});var of=qn,af=i,uf=F,cf=o.f,ff=a,sf=af((function(){cf(1)}));of({target:"Object",stat:!0,forced:!ff||sf,sham:!ff},{getOwnPropertyDescriptor:function(e,t){return cf(uf(e),t)}});var lf={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},df=pt("span").classList,pf=df&&df.constructor&&df.constructor.prototype,hf=pf===Object.prototype?undefined:pf,yf=i,vf=function(e,t){var r=[][e];return!!r&&yf((function(){r.call(null,t||function(){return 1},1)}))},gf=Da.forEach,bf=vf("forEach")?[].forEach:function(e){return gf(this,e,arguments.length>1?arguments[1]:undefined)},mf=n,xf=lf,wf=hf,Sf=bf,Af=zt,Of=function(e){if(e&&e.forEach!==Sf)try{Af(e,"forEach",Sf)}catch(HI){e.forEach=Sf}};for(var _f in xf)xf[_f]&&Of(mf[_f]&&mf[_f].prototype);Of(wf);var If=jn,Ef=F,Tf=o,kf=Yo;qn({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Ef(e),o=Tf.f,i=If(n),a={},u=0;i.length>u;)(r=o(n,t=i[u++]))!==undefined&&kf(a,t,r);return a}});var jf,Rf={exports:{}};(jf=Rf).exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},jf.exports.__esModule=!0,jf.exports["default"]=jf.exports;var Mf=t(Rf.exports),Pf={exports:{}},Cf={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports["default"]=e.exports}(Cf);var Df={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r["return"]||r["return"]()}finally{if(u)throw o}}return i}},e.exports.__esModule=!0,e.exports["default"]=e.exports}(Df);var Lf={exports:{}},Nf={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports["default"]=e.exports}(Nf),function(e){var t=Nf.exports;e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports}(Lf);var Ff={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports}(Ff),function(e){var t=Cf.exports,r=Df.exports,n=Lf.exports,o=Ff.exports;e.exports=function(e,i){return t(e)||r(e,i)||n(e,i)||o()},e.exports.__esModule=!0,e.exports["default"]=e.exports}(Pf);var Bf=t(Pf.exports),Uf={exports:{}};!function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports["default"]=e.exports}(Uf);var Wf=t(Uf.exports),Yf={exports:{}};!function(e){function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports["default"]=e.exports}(Yf);var Gf=t(Yf.exports),$f={exports:{}},zf={exports:{}};!function(e){var t=Nf.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports}(zf);var Vf={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports}(Vf);var Hf={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports}(Hf),function(e){var t=zf.exports,r=Vf.exports,n=Lf.exports,o=Hf.exports;e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.__esModule=!0,e.exports["default"]=e.exports}($f);var Jf=t($f.exports),Kf={exports:{}};!function(e){function t(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(HI){return void r(HI)}u.done?t(c):Dynamsoft.Lib.Promise.resolve(c).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Dynamsoft.Lib.Promise((function(o,i){var a=e.apply(r,n);function u(e){t(a,o,i,u,c,"next",e)}function c(e){t(a,o,i,u,c,"throw",e)}u(undefined)}))}},e.exports.__esModule=!0,e.exports["default"]=e.exports}(Kf);var Xf=t(Kf.exports),Zf={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports}(Zf);var qf=t(Zf.exports),Qf={exports:{}},es={exports:{}};!function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(M){f=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),u=new k(n||[]);return o(a,"_invoke",{value:_(e,r,u)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(M){return{type:"throw",arg:M}}}e.wrap=s;var d="suspendedStart",p="executing",h="completed",y={};function v(){}function g(){}function b(){}var m={};f(m,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(j([])));w&&w!==r&&n.call(w,a)&&(m=w);var S=b.prototype=v.prototype=Object.create(m);function A(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,u){var c=l(e[o],e,i);if("throw"!==c.type){var f=c.arg,s=f.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(s).then((function(e){f.value=e,a(f)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function _(e,t,r){var n=d;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return R()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=I(a,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=l(e,t,r);if("normal"===c.type){if(n=r.done?h:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=h,r.method="throw",r.arg=c.arg)}}}function I(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator["return"]&&(r.method="return",r.arg=t,I(e,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:R}}function R(){return{value:t,done:!0}}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=f(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,f(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},A(O.prototype),f(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(S),f(S,c,"Generator"),f(S,a,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function o(){for(;r.length;){var e=r.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=j,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),y}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(es),function(e){e.exports=es.exports}(Qf);var ts=t(Qf.exports),rs=Rt,ns=function(){var e=rs(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},os=i,is=n.RegExp,as=os((function(){var e=is("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),us=as||os((function(){return!is("a","y").sticky})),cs=as||os((function(){var e=is("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),fs={BROKEN_CARET:cs,MISSED_STICKY:us,UNSUPPORTED_Y:as},ss=i,ls=n.RegExp,ds=ss((function(){var e=ls(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ps=i,hs=n.RegExp,ys=ps((function(){var e=hs("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),vs=s,gs=A,bs=xi,ms=ns,xs=fs,ws=Ae.exports,Ss=$i,As=Mr.get,Os=ds,_s=ys,Is=ws("native-string-replace",String.prototype.replace),Es=RegExp.prototype.exec,Ts=Es,ks=gs("".charAt),js=gs("".indexOf),Rs=gs("".replace),Ms=gs("".slice),Ps=function(){var e=/a/,t=/b*/g;return vs(Es,e,"a"),vs(Es,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Cs=xs.BROKEN_CARET,Ds=/()??/.exec("")[1]!==undefined;(Ps||Ds||Cs||Os||_s)&&(Ts=function(e){var t,r,n,o,i,a,u,c=this,f=As(c),s=bs(e),l=f.raw;if(l)return l.lastIndex=c.lastIndex,t=vs(Ts,l,s),c.lastIndex=l.lastIndex,t;var d=f.groups,p=Cs&&c.sticky,h=vs(ms,c),y=c.source,v=0,g=s;if(p&&(h=Rs(h,"y",""),-1===js(h,"g")&&(h+="g"),g=Ms(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==ks(s,c.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,v++),r=new RegExp("^(?:"+y+")",h)),Ds&&(r=new RegExp("^"+y+"$(?!\\s)",h)),Ps&&(n=c.lastIndex),o=vs(Es,p?r:c,g),p?o?(o.input=Ms(o.input,v),o[0]=Ms(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Ps&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Ds&&o&&o.length>1&&vs(Is,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===undefined&&(o[i]=undefined)})),o&&d)for(o.groups=a=Ss(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ls=Ts;qn({target:"RegExp",proto:!0,forced:/./.exec!==Ls},{exec:Ls});var Ns=A,Fs=Kr,Bs=Ls,Us=i,Ws=qe,Ys=zt,Gs=Ws("species"),$s=RegExp.prototype,zs=function(e,t,r,n){var o=Ws(e),i=!Us((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Us((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Gs]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var u=Ns(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=Ns(e),c=t.exec;return c===Bs||c===$s.exec?i&&!o?{done:!0,value:u(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));Fs(String.prototype,e,c[0]),Fs($s,o,c[1])}n&&Ys($s[o],"sham",!0)},Vs=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},Hs=s,Js=Rt,Ks=B,Xs=E,Zs=Ls,qs=n.TypeError,Qs=function(e,t){var r=e.exec;if(Ks(r)){var n=Hs(r,e,t);return null!==n&&Js(n),n}if("RegExp"===Xs(e))return Hs(Zs,e,t);throw qs("RegExp#exec called on incompatible receiver")},el=s,tl=Rt,rl=D,nl=Vs,ol=xi,il=be,al=Qs;zs("search",(function(e,t,r){return[function(t){var r=rl(this),n=t==undefined?undefined:il(t,e);return n?el(n,t,r):new RegExp(t)[e](ol(r))},function(e){var n=tl(this),o=ol(e),i=r(t,n,o);if(i.done)return i.value;var a=n.lastIndex;nl(a,0)||(n.lastIndex=0);var u=al(n,o);return nl(n.lastIndex,a)||(n.lastIndex=a),null===u?-1:u.index}]}));var ul=Oo,cl=vo?{}.toString:function(){return"[object "+ul(this)+"]"};vo||Kr(Object.prototype,"toString",cl,{unsafe:!0});var fl=s,sl=Le,ll=V,dl=ns,pl=RegExp.prototype,hl=function(e){var t=e.flags;return t!==undefined||"flags"in pl||sl(e,"flags")||!ll(pl,e)?t:fl(dl,e)},yl=qt.PROPER,vl=Kr,gl=Rt,bl=xi,ml=i,xl=hl,wl="toString",Sl=RegExp.prototype.toString,Al=ml((function(){return"/a/b"!=Sl.call({source:"a",flags:"b"})})),Ol=yl&&Sl.name!=wl;(Al||Ol)&&vl(RegExp.prototype,wl,(function(){var e=gl(this);return"/"+bl(e.source)+"/"+bl(xl(e))}),{unsafe:!0});var _l=a,Il=qt.EXISTS,El=A,Tl=_t.f,kl=Function.prototype,jl=El(kl.toString),Rl=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ml=El(Rl.exec);_l&&!Il&&Tl(kl,"name",{configurable:!0,get:function(){try{return Ml(Rl,jl(this))[1]}catch(HI){return""}}});var Pl="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Cl=Kr,Dl=function(e,t,r){for(var n in t)Cl(e,n,t[n],r);return e},Ll=V,Nl=n.TypeError,Fl=function(e,t){if(Ll(t,e))return e;throw Nl("Incorrect invocation")},Bl=Qr,Ul=un,Wl=n.RangeError,Yl=function(e){if(e===undefined)return 0;var t=Bl(e),r=Ul(t);if(t!==r)throw Wl("Wrong length or index");return r},Gl=n.Array,$l=Math.abs,zl=Math.pow,Vl=Math.floor,Hl=Math.log,Jl=Math.LN2,Kl={pack:function(e,t,r){var n,o,i,a=Gl(r),u=8*r-t-1,c=(1<<u)-1,f=c>>1,s=23===t?zl(2,-24)-zl(2,-77):0,l=e<0||0===e&&1/e<0?1:0,d=0;for((e=$l(e))!=e||e===Infinity?(o=e!=e?1:0,n=c):(n=Vl(Hl(e)/Jl),e*(i=zl(2,-n))<1&&(n--,i*=2),(e+=n+f>=1?s/i:s*zl(2,1-f))*i>=2&&(n++,i/=2),n+f>=c?(o=0,n=c):n+f>=1?(o=(e*i-1)*zl(2,t),n+=f):(o=e*zl(2,f-1)*zl(2,t),n=0));t>=8;)a[d++]=255&o,o/=256,t-=8;for(n=n<<t|o,u+=t;u>0;)a[d++]=255&n,n/=256,u-=8;return a[--d]|=128*l,a},unpack:function(e,t){var r,n=e.length,o=8*n-t-1,i=(1<<o)-1,a=i>>1,u=o-7,c=n-1,f=e[c--],s=127&f;for(f>>=7;u>0;)s=256*s+e[c--],u-=8;for(r=s&(1<<-u)-1,s>>=-u,u+=t;u>0;)r=256*r+e[c--],u-=8;if(0===s)s=1-a;else{if(s===i)return r?NaN:f?-Infinity:Infinity;r+=zl(2,t),s-=a}return(f?-1:1)*r*zl(2,s-t)}},Xl=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Zl=n,ql=Le,Ql=B,ed=Pe,td=Xl,rd=pr("IE_PROTO"),nd=Zl.Object,od=nd.prototype,id=td?nd.getPrototypeOf:function(e){var t=ed(e);if(ql(t,rd))return t[rd];var r=t.constructor;return Ql(r)&&t instanceof r?r.prototype:t instanceof nd?od:null},ad=n,ud=B,cd=ad.String,fd=ad.TypeError,sd=A,ld=Rt,dd=function(e){if("object"==typeof e||ud(e))return e;throw fd("Can't set "+cd(e)+" as a prototype")},pd=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=sd(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(HI){}return function(r,n){return ld(r),dd(n),t?e(r,n):r.__proto__=n,r}}():undefined),hd=Pe,yd=nn,vd=fn,gd=function(e){for(var t=hd(this),r=vd(t),n=arguments.length,o=yd(n>1?arguments[1]:undefined,r),i=n>2?arguments[2]:undefined,a=i===undefined?r:yd(i,r);a>o;)t[o++]=e;return t},bd=n,md=A,xd=a,wd=Pl,Sd=qt,Ad=zt,Od=Dl,_d=i,Id=Fl,Ed=Qr,Td=un,kd=Yl,jd=Kl,Rd=id,Md=pd,Pd=Xr.f,Cd=_t.f,Dd=gd,Ld=Zi,Nd=ga,Fd=Sd.PROPER,Bd=Sd.CONFIGURABLE,Ud=Mr.get,Wd=Mr.set,Yd="ArrayBuffer",Gd="DataView",$d="Wrong index",zd=bd.ArrayBuffer,Vd=zd,Hd=Vd&&Vd.prototype,Jd=bd.DataView,Kd=Jd&&Jd.prototype,Xd=Object.prototype,Zd=bd.Array,qd=bd.RangeError,Qd=md(Dd),ep=md([].reverse),tp=jd.pack,rp=jd.unpack,np=function(e){return[255&e]},op=function(e){return[255&e,e>>8&255]},ip=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},ap=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},up=function(e){return tp(e,23,4)},cp=function(e){return tp(e,52,8)},fp=function(e,t){Cd(e.prototype,t,{get:function(){return Ud(this)[t]}})},sp=function(e,t,r,n){var o=kd(r),i=Ud(e);if(o+t>i.byteLength)throw qd($d);var a=Ud(i.buffer).bytes,u=o+i.byteOffset,c=Ld(a,u,u+t);return n?c:ep(c)},lp=function(e,t,r,n,o,i){var a=kd(r),u=Ud(e);if(a+t>u.byteLength)throw qd($d);for(var c=Ud(u.buffer).bytes,f=a+u.byteOffset,s=n(+o),l=0;l<t;l++)c[f+l]=s[i?l:t-l-1]};if(wd){var dp=Fd&&zd.name!==Yd;if(_d((function(){zd(1)}))&&_d((function(){new zd(-1)}))&&!_d((function(){return new zd,new zd(1.5),new zd(NaN),dp&&!Bd})))dp&&Bd&&Ad(zd,"name",Yd);else{(Vd=function(e){return Id(this,Hd),new zd(kd(e))}).prototype=Hd;for(var pp,hp=Pd(zd),yp=0;hp.length>yp;)(pp=hp[yp++])in Vd||Ad(Vd,pp,zd[pp]);Hd.constructor=Vd}Md&&Rd(Kd)!==Xd&&Md(Kd,Xd);var vp=new Jd(new Vd(2)),gp=md(Kd.setInt8);vp.setInt8(0,2147483648),vp.setInt8(1,2147483649),!vp.getInt8(0)&&vp.getInt8(1)||Od(Kd,{setInt8:function(e,t){gp(this,e,t<<24>>24)},setUint8:function(e,t){gp(this,e,t<<24>>24)}},{unsafe:!0})}else Hd=(Vd=function(e){Id(this,Hd);var t=kd(e);Wd(this,{bytes:Qd(Zd(t),0),byteLength:t}),xd||(this.byteLength=t)}).prototype,Kd=(Jd=function(e,t,r){Id(this,Kd),Id(e,Hd);var n=Ud(e).byteLength,o=Ed(t);if(o<0||o>n)throw qd("Wrong offset");if(o+(r=r===undefined?n-o:Td(r))>n)throw qd("Wrong length");Wd(this,{buffer:e,byteLength:r,byteOffset:o}),xd||(this.buffer=e,this.byteLength=r,this.byteOffset=o)}).prototype,xd&&(fp(Vd,"byteLength"),fp(Jd,"buffer"),fp(Jd,"byteLength"),fp(Jd,"byteOffset")),Od(Kd,{getInt8:function(e){return sp(this,1,e)[0]<<24>>24},getUint8:function(e){return sp(this,1,e)[0]},getInt16:function(e){var t=sp(this,2,e,arguments.length>1?arguments[1]:undefined);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=sp(this,2,e,arguments.length>1?arguments[1]:undefined);return t[1]<<8|t[0]},getInt32:function(e){return ap(sp(this,4,e,arguments.length>1?arguments[1]:undefined))},getUint32:function(e){return ap(sp(this,4,e,arguments.length>1?arguments[1]:undefined))>>>0},getFloat32:function(e){return rp(sp(this,4,e,arguments.length>1?arguments[1]:undefined),23)},getFloat64:function(e){return rp(sp(this,8,e,arguments.length>1?arguments[1]:undefined),52)},setInt8:function(e,t){lp(this,1,e,np,t)},setUint8:function(e,t){lp(this,1,e,np,t)},setInt16:function(e,t){lp(this,2,e,op,t,arguments.length>2?arguments[2]:undefined)},setUint16:function(e,t){lp(this,2,e,op,t,arguments.length>2?arguments[2]:undefined)},setInt32:function(e,t){lp(this,4,e,ip,t,arguments.length>2?arguments[2]:undefined)},setUint32:function(e,t){lp(this,4,e,ip,t,arguments.length>2?arguments[2]:undefined)},setFloat32:function(e,t){lp(this,4,e,up,t,arguments.length>2?arguments[2]:undefined)},setFloat64:function(e,t){lp(this,8,e,cp,t,arguments.length>2?arguments[2]:undefined)}});Nd(Vd,Yd),Nd(Jd,Gd);var bp={ArrayBuffer:Vd,DataView:Jd},mp=z,xp=_t,wp=a,Sp=qe("species"),Ap=function(e){var t=mp(e),r=xp.f;wp&&t&&!t[Sp]&&r(t,Sp,{configurable:!0,get:function(){return this}})},Op=Ap,_p="ArrayBuffer",Ip=bp.ArrayBuffer;qn({global:!0,forced:n.ArrayBuffer!==Ip},{ArrayBuffer:Ip}),Op(_p);var Ep=Fo,Tp=de,kp=n.TypeError,jp=function(e){if(Ep(e))return e;throw kp(Tp(e)+" is not a constructor")},Rp=Rt,Mp=jp,Pp=qe("species"),Cp=function(e,t){var r,n=Rp(e).constructor;return n===undefined||(r=Rp(n)[Pp])==undefined?t:Mp(r)},Dp=qn,Lp=A,Np=i,Fp=Rt,Bp=nn,Up=un,Wp=Cp,Yp=bp.ArrayBuffer,Gp=bp.DataView,$p=Gp.prototype,zp=Lp(Yp.prototype.slice),Vp=Lp($p.getUint8),Hp=Lp($p.setUint8);Dp({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Np((function(){return!new Yp(2).slice(1,undefined).byteLength}))},{slice:function(e,t){if(zp&&t===undefined)return zp(Fp(this),e);for(var r=Fp(this).byteLength,n=Bp(e,r),o=Bp(t===undefined?r:t,r),i=new(Wp(this,Yp))(Up(o-n)),a=new Gp(this),u=new Gp(i),c=0;n<o;)Hp(u,c++,Vp(a,n++));return i}});var Jp=$i,Kp=_t,Xp=qe("unscopables"),Zp=Array.prototype;Zp[Xp]==undefined&&Kp.f(Zp,Xp,{configurable:!0,value:Jp(null)});var qp,Qp,eh,th=function(e){Zp[Xp][e]=!0},rh=i,nh=B,oh=id,ih=Kr,ah=qe("iterator"),uh=!1;[].keys&&("next"in(eh=[].keys())?(Qp=oh(oh(eh)))!==Object.prototype&&(qp=Qp):uh=!0);var ch=qp==undefined||rh((function(){var e={};return qp[ah].call(e)!==e}));ch&&(qp={}),nh(qp[ah])||ih(qp,ah,(function(){return this}));var fh={IteratorPrototype:qp,BUGGY_SAFARI_ITERATORS:uh},sh=fh.IteratorPrototype,lh=$i,dh=g,ph=ga,hh=fo,yh=function(){return this},vh=qn,gh=s,bh=B,mh=function(e,t,r,n){var o=t+" Iterator";return e.prototype=lh(sh,{next:dh(+!n,r)}),ph(e,o,!1),hh[o]=yh,e},xh=id,wh=pd,Sh=ga,Ah=zt,Oh=Kr,_h=fo,Ih=qt.PROPER,Eh=qt.CONFIGURABLE,Th=fh.IteratorPrototype,kh=fh.BUGGY_SAFARI_ITERATORS,jh=qe("iterator"),Rh="keys",Mh="values",Ph="entries",Ch=function(){return this},Dh=function(e,t,r,n,o,i,a){mh(r,t,n);var u,c,f,s=function(e){if(e===o&&y)return y;if(!kh&&e in p)return p[e];switch(e){case Rh:case Mh:case Ph:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",d=!1,p=e.prototype,h=p[jh]||p["@@iterator"]||o&&p[o],y=!kh&&h||s(o),v="Array"==t&&p.entries||h;if(v&&(u=xh(v.call(new e)))!==Object.prototype&&u.next&&(xh(u)!==Th&&(wh?wh(u,Th):bh(u[jh])||Oh(u,jh,Ch)),Sh(u,l,!0)),Ih&&o==Mh&&h&&h.name!==Mh&&(Eh?Ah(p,"name",Mh):(d=!0,y=function(){return gh(h,this)})),o)if(c={values:s(Mh),keys:i?y:s(Rh),entries:s(Ph)},a)for(f in c)(kh||d||!(f in p))&&Oh(p,f,c[f]);else vh({target:t,proto:!0,forced:kh||d},c);return p[jh]!==y&&Oh(p,jh,y,{name:o}),_h[t]=y,c},Lh=F,Nh=th,Fh=fo,Bh=Mr,Uh=_t.f,Wh=Dh,Yh=a,Gh="Array Iterator",$h=Bh.set,zh=Bh.getterFor(Gh),Vh=Wh(Array,"Array",(function(e,t){$h(this,{type:Gh,target:Lh(e),index:0,kind:t})}),(function(){var e=zh(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=undefined,{value:undefined,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),Hh=Fh.Arguments=Fh.Array;if(Nh("keys"),Nh("values"),Nh("entries"),Yh&&"values"!==Hh.name)try{Uh(Hh,"name",{value:"values"})}catch(HI){}var Jh,Kh,Xh,Zh={exports:{}},qh=Pl,Qh=a,ey=n,ty=B,ry=W,ny=Le,oy=Oo,iy=de,ay=zt,uy=Kr,cy=_t.f,fy=V,sy=id,ly=pd,dy=qe,py=We,hy=ey.Int8Array,yy=hy&&hy.prototype,vy=ey.Uint8ClampedArray,gy=vy&&vy.prototype,by=hy&&sy(hy),my=yy&&sy(yy),xy=Object.prototype,wy=ey.TypeError,Sy=dy("toStringTag"),Ay=py("TYPED_ARRAY_TAG"),Oy=py("TYPED_ARRAY_CONSTRUCTOR"),_y=qh&&!!ly&&"Opera"!==oy(ey.opera),Iy=!1,Ey={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ty={BigInt64Array:8,BigUint64Array:8},ky=function(e){if(!ry(e))return!1;var t=oy(e);return ny(Ey,t)||ny(Ty,t)};for(Jh in Ey)(Xh=(Kh=ey[Jh])&&Kh.prototype)?ay(Xh,Oy,Kh):_y=!1;for(Jh in Ty)(Xh=(Kh=ey[Jh])&&Kh.prototype)&&ay(Xh,Oy,Kh);if((!_y||!ty(by)||by===Function.prototype)&&(by=function(){throw wy("Incorrect invocation")},_y))for(Jh in Ey)ey[Jh]&&ly(ey[Jh],by);if((!_y||!my||my===xy)&&(my=by.prototype,_y))for(Jh in Ey)ey[Jh]&&ly(ey[Jh].prototype,my);if(_y&&sy(gy)!==my&&ly(gy,my),Qh&&!ny(my,Sy))for(Jh in Iy=!0,cy(my,Sy,{get:function(){return ry(this)?this[Ay]:undefined}}),Ey)ey[Jh]&&ay(ey[Jh],Ay,Jh);var jy={NATIVE_ARRAY_BUFFER_VIEWS:_y,TYPED_ARRAY_CONSTRUCTOR:Oy,TYPED_ARRAY_TAG:Iy&&Ay,aTypedArray:function(e){if(ky(e))return e;throw wy("Target is not a typed array")},aTypedArrayConstructor:function(e){if(ty(e)&&(!ly||fy(by,e)))return e;throw wy(iy(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(Qh){if(r)for(var o in Ey){var i=ey[o];if(i&&ny(i.prototype,e))try{delete i.prototype[e]}catch(HI){try{i.prototype[e]=t}catch(a){}}}my[e]&&!r||uy(my,e,r?t:_y&&yy[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(Qh){if(ly){if(r)for(n in Ey)if((o=ey[n])&&ny(o,e))try{delete o[e]}catch(HI){}if(by[e]&&!r)return;try{return uy(by,e,r?t:_y&&by[e]||t)}catch(HI){}}for(n in Ey)!(o=ey[n])||o[e]&&!r||uy(o,e,t)}},isView:function(e){if(!ry(e))return!1;var t=oy(e);return"DataView"===t||ny(Ey,t)||ny(Ty,t)},isTypedArray:ky,TypedArray:by,TypedArrayPrototype:my},Ry=n,My=i,Py=vi,Cy=jy.NATIVE_ARRAY_BUFFER_VIEWS,Dy=Ry.ArrayBuffer,Ly=Ry.Int8Array,Ny=!Cy||!My((function(){Ly(1)}))||!My((function(){new Ly(-1)}))||!Py((function(e){new Ly,new Ly(null),new Ly(1.5),new Ly(e)}),!0)||My((function(){return 1!==new Ly(new Dy(2),1,undefined).length})),Fy=W,By=Math.floor,Uy=Number.isInteger||function(e){return!Fy(e)&&isFinite(e)&&By(e)===e},Wy=Qr,Yy=n.RangeError,Gy=function(e){var t=Wy(e);if(t<0)throw Yy("The argument can't be less than 0");return t},$y=n.RangeError,zy=function(e,t){var r=Gy(e);if(r%t)throw $y("Wrong offset");return r},Vy=ro,Hy=s,Jy=jp,Ky=Pe,Xy=fn,Zy=ei,qy=Ho,Qy=ho,ev=jy.aTypedArrayConstructor,tv=B,rv=W,nv=pd,ov=function(e,t,r){var n,o;return nv&&tv(n=t.constructor)&&n!==r&&rv(o=n.prototype)&&o!==r.prototype&&nv(e,o),e},iv=qn,av=n,uv=s,cv=a,fv=Ny,sv=jy,lv=bp,dv=Fl,pv=g,hv=zt,yv=Uy,vv=un,gv=Yl,bv=zy,mv=ft,xv=Le,wv=Oo,Sv=W,Av=se,Ov=$i,_v=V,Iv=pd,Ev=Xr.f,Tv=function(e){var t,r,n,o,i,a,u=Jy(this),c=Ky(e),f=arguments.length,s=f>1?arguments[1]:undefined,l=s!==undefined,d=qy(c);if(d&&!Qy(d))for(a=(i=Zy(c,d)).next,c=[];!(o=Hy(a,i)).done;)c.push(o.value);for(l&&f>2&&(s=Vy(s,arguments[2])),r=Xy(c),n=new(ev(u))(r),t=0;r>t;t++)n[t]=l?s(c[t],t):c[t];return n},kv=Da.forEach,jv=Ap,Rv=_t,Mv=o,Pv=ov,Cv=Mr.get,Dv=Mr.set,Lv=Rv.f,Nv=Mv.f,Fv=Math.round,Bv=av.RangeError,Uv=lv.ArrayBuffer,Wv=Uv.prototype,Yv=lv.DataView,Gv=sv.NATIVE_ARRAY_BUFFER_VIEWS,$v=sv.TYPED_ARRAY_CONSTRUCTOR,zv=sv.TYPED_ARRAY_TAG,Vv=sv.TypedArray,Hv=sv.TypedArrayPrototype,Jv=sv.aTypedArrayConstructor,Kv=sv.isTypedArray,Xv="BYTES_PER_ELEMENT",Zv="Wrong length",qv=function(e,t){Jv(e);for(var r=0,n=t.length,o=new e(n);n>r;)o[r]=t[r++];return o},Qv=function(e,t){Lv(e,t,{get:function(){return Cv(this)[t]}})},eg=function(e){var t;return _v(Wv,e)||"ArrayBuffer"==(t=wv(e))||"SharedArrayBuffer"==t},tg=function(e,t){return Kv(e)&&!Av(t)&&t in e&&yv(+t)&&t>=0},rg=function(e,t){return t=mv(t),tg(e,t)?pv(2,e[t]):Nv(e,t)},ng=function(e,t,r){return t=mv(t),!(tg(e,t)&&Sv(r)&&xv(r,"value"))||xv(r,"get")||xv(r,"set")||r.configurable||xv(r,"writable")&&!r.writable||xv(r,"enumerable")&&!r.enumerable?Lv(e,t,r):(e[t]=r.value,e)};cv?(Gv||(Mv.f=rg,Rv.f=ng,Qv(Hv,"buffer"),Qv(Hv,"byteOffset"),Qv(Hv,"byteLength"),Qv(Hv,"length")),iv({target:"Object",stat:!0,forced:!Gv},{getOwnPropertyDescriptor:rg,defineProperty:ng}),Zh.exports=function(e,t,r){var n=e.match(/\d+$/)[0]/8,o=e+(r?"Clamped":"")+"Array",i="get"+e,a="set"+e,u=av[o],c=u,f=c&&c.prototype,s={},l=function(e,t){Lv(e,t,{get:function(){return function(e,t){var r=Cv(e);return r.view[i](t*n+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var i=Cv(e);r&&(o=(o=Fv(o))<0?0:o>255?255:255&o),i.view[a](t*n+i.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};Gv?fv&&(c=t((function(e,t,r,o){return dv(e,f),Pv(Sv(t)?eg(t)?o!==undefined?new u(t,bv(r,n),o):r!==undefined?new u(t,bv(r,n)):new u(t):Kv(t)?qv(c,t):uv(Tv,c,t):new u(gv(t)),e,c)})),Iv&&Iv(c,Vv),kv(Ev(u),(function(e){e in c||hv(c,e,u[e])})),c.prototype=f):(c=t((function(e,t,r,o){dv(e,f);var i,a,u,s=0,d=0;if(Sv(t)){if(!eg(t))return Kv(t)?qv(c,t):uv(Tv,c,t);i=t,d=bv(r,n);var p=t.byteLength;if(o===undefined){if(p%n)throw Bv(Zv);if((a=p-d)<0)throw Bv(Zv)}else if((a=vv(o)*n)+d>p)throw Bv(Zv);u=a/n}else u=gv(t),i=new Uv(a=u*n);for(Dv(e,{buffer:i,byteOffset:d,byteLength:a,length:u,view:new Yv(i)});s<u;)l(e,s++)})),Iv&&Iv(c,Vv),f=c.prototype=Ov(Hv)),f.constructor!==c&&hv(f,"constructor",c),hv(f,$v,c),zv&&hv(f,zv,o),s[o]=c,iv({global:!0,forced:c!=u,sham:!Gv},s),Xv in c||hv(c,Xv,n),Xv in f||hv(f,Xv,n),jv(o)}):Zh.exports=function(){},(0,Zh.exports)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var og=Pe,ig=nn,ag=fn,ug=Math.min,cg=[].copyWithin||function(e,t){var r=og(this),n=ag(r),o=ig(e,n),i=ig(t,n),a=arguments.length>2?arguments[2]:undefined,u=ug((a===undefined?n:ig(a,n))-i,n-o),c=1;for(i<o&&o<i+u&&(c=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:delete r[o],o+=c,i+=c;return r},fg=jy,sg=A(cg),lg=fg.aTypedArray;(0,fg.exportTypedArrayMethod)("copyWithin",(function(e,t){return sg(lg(this),e,t,arguments.length>2?arguments[2]:undefined)}));var dg=Da.every,pg=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("every",(function(e){return dg(pg(this),e,arguments.length>1?arguments[1]:undefined)}));var hg=s,yg=gd,vg=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("fill",(function(e){var t=arguments.length;return hg(yg,vg(this),e,t>1?arguments[1]:undefined,t>2?arguments[2]:undefined)}));var gg=fn,bg=Cp,mg=jy.TYPED_ARRAY_CONSTRUCTOR,xg=jy.aTypedArrayConstructor,wg=function(e){return xg(bg(e,e[mg]))},Sg=function(e,t){for(var r=0,n=gg(t),o=new e(n);n>r;)o[r]=t[r++];return o},Ag=wg,Og=Da.filter,_g=function(e,t){return Sg(Ag(e),t)},Ig=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("filter",(function(e){var t=Og(Ig(this),e,arguments.length>1?arguments[1]:undefined);return _g(this,t)}));var Eg=Da.find,Tg=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("find",(function(e){return Eg(Tg(this),e,arguments.length>1?arguments[1]:undefined)}));var kg=Da.findIndex,jg=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("findIndex",(function(e){return kg(jg(this),e,arguments.length>1?arguments[1]:undefined)}));var Rg=Da.forEach,Mg=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("forEach",(function(e){Rg(Mg(this),e,arguments.length>1?arguments[1]:undefined)}));var Pg=hn.includes,Cg=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("includes",(function(e){return Pg(Cg(this),e,arguments.length>1?arguments[1]:undefined)}));var Dg=hn.indexOf,Lg=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("indexOf",(function(e){return Dg(Lg(this),e,arguments.length>1?arguments[1]:undefined)}));var Ng=n,Fg=i,Bg=A,Ug=jy,Wg=Vh,Yg=qe("iterator"),Gg=Ng.Uint8Array,$g=Bg(Wg.values),zg=Bg(Wg.keys),Vg=Bg(Wg.entries),Hg=Ug.aTypedArray,Jg=Ug.exportTypedArrayMethod,Kg=Gg&&Gg.prototype,Xg=!Fg((function(){Kg[Yg].call([1])})),Zg=!!Kg&&Kg.values&&Kg[Yg]===Kg.values&&"values"===Kg.values.name,qg=function(){return $g(Hg(this))};Jg("entries",(function(){return Vg(Hg(this))}),Xg),Jg("keys",(function(){return zg(Hg(this))}),Xg),Jg("values",qg,Xg||!Zg,{name:"values"}),Jg(Yg,qg,Xg||!Zg,{name:"values"});var Qg=jy.aTypedArray,eb=jy.exportTypedArrayMethod,tb=A([].join);eb("join",(function(e){return tb(Qg(this),e)}));var rb=uc,nb=F,ob=Qr,ib=fn,ab=vf,ub=Math.min,cb=[].lastIndexOf,fb=!!cb&&1/[1].lastIndexOf(1,-0)<0,sb=ab("lastIndexOf"),lb=fb||!sb?function(e){if(fb)return rb(cb,this,arguments)||0;var t=nb(this),r=ib(t),n=r-1;for(arguments.length>1&&(n=ub(n,ob(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:cb,db=uc,pb=lb,hb=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return db(pb,hb(this),t>1?[e,arguments[1]]:[e])}));var yb=Da.map,vb=wg,gb=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("map",(function(e){return yb(gb(this),e,arguments.length>1?arguments[1]:undefined,(function(e,t){return new(vb(e))(t)}))}));var bb=ve,mb=Pe,xb=P,wb=fn,Sb=n.TypeError,Ab=function(e){return function(t,r,n,o){bb(r);var i=mb(t),a=xb(i),u=wb(i),c=e?u-1:0,f=e?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=f;break}if(c+=f,e?c<0:u<=c)throw Sb("Reduce of empty array with no initial value")}for(;e?c>=0:u>c;c+=f)c in a&&(o=r(o,a[c],c,i));return o}},Ob={left:Ab(!1),right:Ab(!0)},_b=Ob.left,Ib=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return _b(Ib(this),e,t,t>1?arguments[1]:undefined)}));var Eb=Ob.right,Tb=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return Eb(Tb(this),e,t,t>1?arguments[1]:undefined)}));var kb=jy.aTypedArray,jb=jy.exportTypedArrayMethod,Rb=Math.floor;jb("reverse",(function(){for(var e,t=this,r=kb(t).length,n=Rb(r/2),o=0;o<n;)e=t[o],t[o++]=t[--r],t[r]=e;return t}));var Mb=n,Pb=s,Cb=jy,Db=fn,Lb=zy,Nb=Pe,Fb=i,Bb=Mb.RangeError,Ub=Mb.Int8Array,Wb=Ub&&Ub.prototype,Yb=Wb&&Wb.set,Gb=Cb.aTypedArray,$b=Cb.exportTypedArrayMethod,zb=!Fb((function(){var e=new Uint8ClampedArray(2);return Pb(Yb,e,{length:1,0:3},1),3!==e[1]})),Vb=zb&&Cb.NATIVE_ARRAY_BUFFER_VIEWS&&Fb((function(){var e=new Ub(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));$b("set",(function(e){Gb(this);var t=Lb(arguments.length>1?arguments[1]:undefined,1),r=Nb(e);if(zb)return Pb(Yb,this,r,t);var n=this.length,o=Db(r),i=0;if(o+t>n)throw Bb("Wrong length");for(;i<o;)this[t+i]=r[i++]}),!zb||Vb);var Hb=wg,Jb=cc,Kb=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("slice",(function(e,t){for(var r=Jb(Kb(this),e,t),n=Hb(this),o=0,i=r.length,a=new n(i);i>o;)a[o]=r[o++];return a}),i((function(){new Int8Array(1).slice()})));var Xb=Da.some,Zb=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("some",(function(e){return Xb(Zb(this),e,arguments.length>1?arguments[1]:undefined)}));var qb=Zi,Qb=Math.floor,em=function(e,t){var r=e.length,n=Qb(r/2);return r<8?tm(e,t):rm(e,em(qb(e,0,n),t),em(qb(e,n),t),t)},tm=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},rm=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,u=0;a<o||u<i;)e[a+u]=a<o&&u<i?n(t[a],r[u])<=0?t[a++]:r[u++]:a<o?t[a++]:r[u++];return e},nm=em,om=H.match(/firefox\/(\d+)/i),im=!!om&&+om[1],am=/MSIE|Trident/.test(H),um=H.match(/AppleWebKit\/(\d+)\./),cm=!!um&&+um[1],fm=A,sm=i,lm=ve,dm=nm,pm=im,hm=am,ym=ee,vm=cm,gm=jy.aTypedArray,bm=jy.exportTypedArrayMethod,mm=n.Uint16Array,xm=mm&&fm(mm.prototype.sort),wm=!(!xm||sm((function(){xm(new mm(2),null)}))&&sm((function(){xm(new mm(2),{})}))),Sm=!!xm&&!sm((function(){if(ym)return ym<74;if(pm)return pm<67;if(hm)return!0;if(vm)return vm<602;var e,t,r=new mm(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(xm(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));bm("sort",(function(e){return e!==undefined&&lm(e),Sm?xm(this,e):dm(gm(this),function(e){return function(t,r){return e!==undefined?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!Sm||wm);var Am=un,Om=nn,_m=wg,Im=jy.aTypedArray;(0,jy.exportTypedArrayMethod)("subarray",(function(e,t){var r=Im(this),n=r.length,o=Om(e,n);return new(_m(r))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,Am((t===undefined?n:Om(t,n))-o))}));var Em=uc,Tm=jy,km=i,jm=cc,Rm=n.Int8Array,Mm=Tm.aTypedArray,Pm=Tm.exportTypedArrayMethod,Cm=[].toLocaleString,Dm=!!Rm&&km((function(){Cm.call(new Rm(1))}));Pm("toLocaleString",(function(){return Em(Cm,Dm?jm(Mm(this)):Mm(this),jm(arguments))}),km((function(){return[1,2].toLocaleString()!=new Rm([1,2]).toLocaleString()}))||!km((function(){Rm.prototype.toLocaleString.call([1,2])})));var Lm=jy.exportTypedArrayMethod,Nm=i,Fm=A,Bm=n.Uint8Array,Um=Bm&&Bm.prototype||{},Wm=[].toString,Ym=Fm([].join);Nm((function(){Wm.call({})}))&&(Wm=function(){return Ym(this)});var Gm=Um.toString!=Wm;Lm("toString",Wm,Gm);var $m=A,zm=Qr,Vm=xi,Hm=D,Jm=$m("".charAt),Km=$m("".charCodeAt),Xm=$m("".slice),Zm=function(e){return function(t,r){var n,o,i=Vm(Hm(t)),a=zm(r),u=i.length;return a<0||a>=u?e?"":undefined:(n=Km(i,a))<55296||n>56319||a+1===u||(o=Km(i,a+1))<56320||o>57343?e?Jm(i,a):n:e?Xm(i,a,a+2):o-56320+(n-55296<<10)+65536}},qm={codeAt:Zm(!1),charAt:Zm(!0)},Qm=qm.charAt,ex=function(e,t,r){return t+(r?Qm(e,t).length:1)},tx=s,rx=Rt,nx=un,ox=xi,ix=D,ax=be,ux=ex,cx=Qs;zs("match",(function(e,t,r){return[function(t){var r=ix(this),n=t==undefined?undefined:ax(t,e);return n?tx(n,t,r):new RegExp(t)[e](ox(r))},function(e){var n=rx(this),o=ox(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return cx(n,o);var a=n.unicode;n.lastIndex=0;for(var u,c=[],f=0;null!==(u=cx(n,o));){var s=ox(u[0]);c[f]=s,""===s&&(n.lastIndex=ux(o,nx(n.lastIndex),a)),f++}return 0===f?null:c}]}));var fx=i,sx=ee,lx=qe("species"),dx=function(e){return sx>=51||!fx((function(){var t=[];return(t.constructor={})[lx]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},px=qn,hx=n,yx=ma,vx=Fo,gx=W,bx=nn,mx=fn,xx=F,wx=Yo,Sx=qe,Ax=cc,Ox=dx("slice"),_x=Sx("species"),Ix=hx.Array,Ex=Math.max;px({target:"Array",proto:!0,forced:!Ox},{slice:function(e,t){var r,n,o,i=xx(this),a=mx(i),u=bx(e,a),c=bx(t===undefined?a:t,a);if(yx(i)&&(r=i.constructor,(vx(r)&&(r===Ix||yx(r.prototype))||gx(r)&&null===(r=r[_x]))&&(r=undefined),r===Ix||r===undefined))return Ax(i,u,c);for(n=new(r===undefined?Ix:r)(Ex(c-u,0)),o=0;u<c;u++,o++)u in i&&wx(n,o,i[u]);return n.length=o,n}});var Tx=qm.charAt,kx=xi,jx=Mr,Rx=Dh,Mx="String Iterator",Px=jx.set,Cx=jx.getterFor(Mx);Rx(String,"String",(function(e){Px(this,{type:Mx,string:kx(e),index:0})}),(function(){var e,t=Cx(this),r=t.string,n=t.index;return n>=r.length?{value:undefined,done:!0}:(e=Tx(r,n),t.index+=e.length,{value:e,done:!1})}));var Dx=n,Lx=lf,Nx=hf,Fx=Vh,Bx=zt,Ux=qe,Wx=Ux("iterator"),Yx=Ux("toStringTag"),Gx=Fx.values,$x=function(e,t){if(e){if(e[Wx]!==Gx)try{Bx(e,Wx,Gx)}catch(HI){e[Wx]=Gx}if(e[Yx]||Bx(e,Yx,t),Lx[t])for(var r in Fx)if(e[r]!==Fx[r])try{Bx(e,r,Fx[r])}catch(HI){e[r]=Fx[r]}}};for(var zx in Lx)$x(Dx[zx]&&Dx[zx].prototype,zx);$x(Nx,"DOMTokenList");var Vx={exports:{}},Hx=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Jx=i,Kx=W,Xx=E,Zx=Hx,qx=Object.isExtensible,Qx=Jx((function(){qx(1)}))||Zx?function(e){return!!Kx(e)&&((!Zx||"ArrayBuffer"!=Xx(e))&&(!qx||qx(e)))}:qx,ew=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),tw=qn,rw=A,nw=hr,ow=W,iw=Le,aw=_t.f,uw=Xr,cw=zi,fw=Qx,sw=ew,lw=!1,dw=We("meta"),pw=0,hw=function(e){aw(e,dw,{value:{objectID:"O"+pw++,weakData:{}}})},yw=Vx.exports={enable:function(){yw.enable=function(){},lw=!0;var e=uw.f,t=rw([].splice),r={};r[dw]=1,e(r).length&&(uw.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===dw){t(n,o,1);break}return n},tw({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:cw.f}))},fastKey:function(e,t){if(!ow(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!iw(e,dw)){if(!fw(e))return"F";if(!t)return"E";hw(e)}return e[dw].objectID},getWeakData:function(e,t){if(!iw(e,dw)){if(!fw(e))return!0;if(!t)return!1;hw(e)}return e[dw].weakData},onFreeze:function(e){return sw&&lw&&fw(e)&&!iw(e,dw)&&hw(e),e}};nw[dw]=!0;var vw=ro,gw=s,bw=Rt,mw=de,xw=ho,ww=fn,Sw=V,Aw=ei,Ow=Ho,_w=ao,Iw=n.TypeError,Ew=function(e,t){this.stopped=e,this.result=t},Tw=Ew.prototype,kw=function(e,t,r){var n,o,i,a,u,c,f,s=r&&r.that,l=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),h=vw(t,s),y=function(e){return n&&_w(n,"normal",e),new Ew(!0,e)},v=function(e){return l?(bw(e),p?h(e[0],e[1],y):h(e[0],e[1])):p?h(e,y):h(e)};if(d)n=e;else{if(!(o=Ow(e)))throw Iw(mw(e)+" is not iterable");if(xw(o)){for(i=0,a=ww(e);a>i;i++)if((u=v(e[i]))&&Sw(Tw,u))return u;return new Ew(!1)}n=Aw(e,o)}for(c=n.next;!(f=gw(c,n)).done;){try{u=v(f.value)}catch(HI){_w(n,"throw",HI)}if("object"==typeof u&&u&&Sw(Tw,u))return u}return new Ew(!1)},jw=qn,Rw=n,Mw=A,Pw=$n,Cw=Kr,Dw=Vx.exports,Lw=kw,Nw=Fl,Fw=B,Bw=W,Uw=i,Ww=vi,Yw=ga,Gw=ov,$w=_t.f,zw=$i,Vw=Dl,Hw=ro,Jw=Fl,Kw=kw,Xw=Dh,Zw=Ap,qw=a,Qw=Vx.exports.fastKey,eS=Mr.set,tS=Mr.getterFor,rS={getConstructor:function(e,t,r,n){var o=e((function(e,o){Jw(e,i),eS(e,{type:t,index:zw(null),first:undefined,last:undefined,size:0}),qw||(e.size=0),o!=undefined&&Kw(o,e[n],{that:e,AS_ENTRIES:r})})),i=o.prototype,a=tS(t),u=function(e,t,r){var n,o,i=a(e),u=c(e,t);return u?u.value=r:(i.last=u={index:o=Qw(t,!0),key:t,value:r,previous:n=i.last,next:undefined,removed:!1},i.first||(i.first=u),n&&(n.next=u),qw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},c=function(e,t){var r,n=a(e),o=Qw(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return Vw(i,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=undefined),delete t[r.index],r=r.next;e.first=e.last=undefined,qw?e.size=0:this.size=0},"delete":function(e){var t=this,r=a(t),n=c(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),qw?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=Hw(e,arguments.length>1?arguments[1]:undefined);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),Vw(i,r?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),qw&&$w(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=tS(t),i=tS(n);Xw(e,t,(function(e,t){eS(this,{type:n,target:e,state:o(e),kind:t,last:undefined})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=undefined,{value:undefined,done:!0})}),r?"entries":"values",!r,!0),Zw(t)}},nS=function(e,t,r){var n=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=n?"set":"add",a=Rw[e],u=a&&a.prototype,c=a,f={},s=function(e){var t=Mw(u[e]);Cw(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Bw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Bw(e)?undefined:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Bw(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(Pw(e,!Fw(a)||!(o||u.forEach&&!Uw((function(){(new a).entries().next()})))))c=r.getConstructor(t,e,n,i),Dw.enable();else if(Pw(e,!0)){var l=new c,d=l[i](o?{}:-0,1)!=l,p=Uw((function(){l.has(1)})),h=Ww((function(e){new a(e)})),y=!o&&Uw((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((c=t((function(e,t){Nw(e,u);var r=Gw(new a,e,c);return t!=undefined&&Lw(t,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=u,u.constructor=c),(p||y)&&(s("delete"),s("has"),n&&s("get")),(y||d)&&s(i),o&&u.clear&&delete u.clear}return f[e]=c,jw({global:!0,forced:c!=a},f),Yw(c,e),o||r.setStrong(c,e,n),c};nS("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),rS);var oS=qn,iS=n,aS=i,uS=ma,cS=W,fS=Pe,sS=fn,lS=Yo,dS=Ea,pS=dx,hS=ee,yS=qe("isConcatSpreadable"),vS=9007199254740991,gS="Maximum allowed index exceeded",bS=iS.TypeError,mS=hS>=51||!aS((function(){var e=[];return e[yS]=!1,e.concat()[0]!==e})),xS=pS("concat"),wS=function(e){if(!cS(e))return!1;var t=e[yS];return t!==undefined?!!t:uS(e)};oS({target:"Array",proto:!0,arity:1,forced:!mS||!xS},{concat:function(e){var t,r,n,o,i,a=fS(this),u=dS(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(wS(i=-1===t?a:arguments[t])){if(c+(o=sS(i))>vS)throw bS(gS);for(r=0;r<o;r++,c++)r in i&&lS(u,c,i[r])}else{if(c>=vS)throw bS(gS);lS(u,c++,i)}return u.length=c,u}});var SS=A,AS=Pe,OS=Math.floor,_S=SS("".charAt),IS=SS("".replace),ES=SS("".slice),TS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,kS=/\$([$&'`]|\d{1,2})/g,jS=uc,RS=s,MS=A,PS=zs,CS=i,DS=Rt,LS=B,NS=Qr,FS=un,BS=xi,US=D,WS=ex,YS=be,GS=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,c=kS;return o!==undefined&&(o=AS(o),c=TS),IS(i,c,(function(i,c){var f;switch(_S(c,0)){case"$":return"$";case"&":return e;case"`":return ES(t,0,r);case"'":return ES(t,a);case"<":f=o[ES(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>u){var l=OS(s/10);return 0===l?i:l<=u?n[l-1]===undefined?_S(c,1):n[l-1]+_S(c,1):i}f=n[s-1]}return f===undefined?"":f}))},$S=Qs,zS=qe("replace"),VS=Math.max,HS=Math.min,JS=MS([].concat),KS=MS([].push),XS=MS("".indexOf),ZS=MS("".slice),qS="$0"==="a".replace(/./,"$0"),QS=!!/./[zS]&&""===/./[zS]("a","$0"),eA=!CS((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));PS("replace",(function(e,t,r){var n=QS?"$":"$0";return[function(e,r){var n=US(this),o=e==undefined?undefined:YS(e,zS);return o?RS(o,e,n,r):RS(t,BS(n),e,r)},function(e,o){var i=DS(this),a=BS(e);if("string"==typeof o&&-1===XS(o,n)&&-1===XS(o,"$<")){var u=r(t,i,a,o);if(u.done)return u.value}var c=LS(o);c||(o=BS(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var d=$S(i,a);if(null===d)break;if(KS(l,d),!f)break;""===BS(d[0])&&(i.lastIndex=WS(a,FS(i.lastIndex),s))}for(var p,h="",y=0,v=0;v<l.length;v++){for(var g=BS((d=l[v])[0]),b=VS(HS(NS(d.index),a.length),0),m=[],x=1;x<d.length;x++)KS(m,(p=d[x])===undefined?p:String(p));var w=d.groups;if(c){var S=JS([g],m,b,a);w!==undefined&&KS(S,w);var A=BS(jS(o,undefined,S))}else A=GS(g,a,b,m,w,o);b>=y&&(h+=ZS(a,y,b)+A,y=b+g.length)}return h+ZS(a,y)}]}),!eA||!qS||QS);var tA=W,rA=E,nA=qe("match"),oA=function(e){var t;return tA(e)&&((t=e[nA])!==undefined?!!t:"RegExp"==rA(e))},iA=_t.f,aA=a,uA=n,cA=A,fA=$n,sA=ov,lA=zt,dA=Xr.f,pA=V,hA=oA,yA=xi,vA=hl,gA=fs,bA=function(e,t,r){r in e||iA(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},mA=Kr,xA=i,wA=Le,SA=Mr.enforce,AA=Ap,OA=ds,_A=ys,IA=qe("match"),EA=uA.RegExp,TA=EA.prototype,kA=uA.SyntaxError,jA=cA(TA.exec),RA=cA("".charAt),MA=cA("".replace),PA=cA("".indexOf),CA=cA("".slice),DA=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,LA=/a/g,NA=/a/g,FA=new EA(LA)!==LA,BA=gA.MISSED_STICKY,UA=gA.UNSUPPORTED_Y,WA=aA&&(!FA||BA||OA||_A||xA((function(){return NA[IA]=!1,EA(LA)!=LA||EA(NA)==NA||"/a/i"!=EA(LA,"i")})));if(fA("RegExp",WA)){for(var YA=function(e,t){var r,n,o,i,a,u,c=pA(TA,this),f=hA(e),s=t===undefined,l=[],d=e;if(!c&&f&&s&&e.constructor===YA)return e;if((f||pA(TA,e))&&(e=e.source,s&&(t=vA(d))),e=e===undefined?"":yA(e),t=t===undefined?"":yA(t),d=e,OA&&"dotAll"in LA&&(n=!!t&&PA(t,"s")>-1)&&(t=MA(t,/s/g,"")),r=t,BA&&"sticky"in LA&&(o=!!t&&PA(t,"y")>-1)&&UA&&(t=MA(t,/y/g,"")),_A&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a={},u=!1,c=!1,f=0,s="";n<=r;n++){if("\\"===(t=RA(e,n)))t+=RA(e,++n);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:jA(DA,CA(e,n+1))&&(n+=2,c=!0),o+=t,f++;continue;case">"===t&&c:if(""===s||wA(a,s))throw new kA("Invalid capture group name");a[s]=!0,i[i.length]=[s,f],c=!1,s="";continue}c?s+=t:o+=t}return[o,i]}(e),e=i[0],l=i[1]),a=sA(EA(e,t),c?this:TA,YA),(n||o||l.length)&&(u=SA(a),n&&(u.dotAll=!0,u.raw=YA(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=RA(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+RA(e,++n);return o}(e),r)),o&&(u.sticky=!0),l.length&&(u.groups=l)),e!==d)try{lA(a,"source",""===d?"(?:)":d)}catch(HI){}return a},GA=dA(EA),$A=0;GA.length>$A;)bA(YA,EA,GA[$A++]);TA.constructor=YA,YA.prototype=TA,mA(uA,"RegExp",YA)}AA("RegExp");var zA,VA=oA,HA=n.TypeError,JA=function(e){if(VA(e))throw HA("The method doesn't accept regular expressions");return e},KA=qe("match"),XA=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[KA]=!1,"/./"[e](t)}catch(n){}}return!1},ZA=qn,qA=A,QA=o.f,eO=un,tO=xi,rO=JA,nO=D,oO=XA,iO=qA("".startsWith),aO=qA("".slice),uO=Math.min,cO=oO("startsWith");ZA({target:"String",proto:!0,forced:!!(cO||(zA=QA(String.prototype,"startsWith"),!zA||zA.writable))&&!cO},{startsWith:function(e){var t=tO(nO(this));rO(e);var r=eO(uO(arguments.length>1?arguments[1]:undefined,t.length)),n=tO(e);return iO?iO(t,n,r):aO(t,r,r+n.length)===n}});var fO=n.TypeError,sO=n,lO=uc,dO=B,pO=cc,hO=function(e,t){if(e<t)throw fO("Not enough arguments");return e},yO=/MSIE .\./.test(H),vO=sO.Function,gO=function(e){return yO?function(t,r){var n=hO(arguments.length,1)>2,o=dO(t)?t:vO(t),i=n?pO(arguments,2):undefined;return e(n?function(){lO(o,this,i)}:o,r)}:e},bO={setTimeout:gO(sO.setTimeout),setInterval:gO(sO.setInterval)},mO=bO.setInterval;qn({global:!0,bind:!0,forced:n.setInterval!==mO},{setInterval:mO});var xO=bO.setTimeout;qn({global:!0,bind:!0,forced:n.setTimeout!==xO},{setTimeout:xO});var wO=uc,SO=s,AO=A,OO=zs,_O=oA,IO=Rt,EO=D,TO=Cp,kO=ex,jO=un,RO=xi,MO=be,PO=Zi,CO=Qs,DO=Ls,LO=i,NO=fs.UNSUPPORTED_Y,FO=4294967295,BO=Math.min,UO=[].push,WO=AO(/./.exec),YO=AO(UO),GO=AO("".slice),$O=!LO((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));OO("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=RO(EO(this)),o=r===undefined?FO:r>>>0;if(0===o)return[];if(e===undefined)return[n];if(!_O(e))return SO(t,n,e,o);for(var i,a,u,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),s=0,l=new RegExp(e.source,f+"g");(i=SO(DO,l,n))&&!((a=l.lastIndex)>s&&(YO(c,GO(n,s,i.index)),i.length>1&&i.index<n.length&&wO(UO,c,PO(i,1)),u=i[0].length,s=a,c.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===n.length?!u&&WO(l,"")||YO(c,""):YO(c,GO(n,s)),c.length>o?PO(c,0,o):c}:"0".split(undefined,0).length?function(e,r){return e===undefined&&0===r?[]:SO(t,this,e,r)}:t,[function(t,r){var o=EO(this),i=t==undefined?undefined:MO(t,e);return i?SO(i,t,o,r):SO(n,RO(o),t,r)},function(e,o){var i=IO(this),a=RO(e),u=r(n,i,a,o,n!==t);if(u.done)return u.value;var c=TO(i,RegExp),f=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(NO?"g":"y"),l=new c(NO?"^(?:"+i.source+")":i,s),d=o===undefined?FO:o>>>0;if(0===d)return[];if(0===a.length)return null===CO(l,a)?[a]:[];for(var p=0,h=0,y=[];h<a.length;){l.lastIndex=NO?0:h;var v,g=CO(l,NO?GO(a,h):a);if(null===g||(v=BO(jO(l.lastIndex+(NO?h:0)),a.length))===p)h=kO(a,h,f);else{if(YO(y,GO(a,p,h)),y.length===d)return y;for(var b=1;b<=g.length-1;b++)if(YO(y,g[b]),y.length===d)return y;h=p=v}}return YO(y,GO(a,p)),y}]}),!$O,NO);var zO="\t\n\x0B\f\r \u2028\u2029\ufeff",VO=D,HO=xi,JO=A("".replace),KO="[\t\n\x0B\f\r \u2028\u2029\ufeff]",XO=RegExp("^"+KO+KO+"*"),ZO=RegExp(KO+KO+"*$"),qO=function(e){return function(t){var r=HO(VO(t));return 1&e&&(r=JO(r,XO,"")),2&e&&(r=JO(r,ZO,"")),r}},QO={start:qO(1),end:qO(2),trim:qO(3)},e_=qt.PROPER,t_=i,r_=zO,n_=QO.trim;qn({target:"String",proto:!0,forced:function(e){return t_((function(){return!!r_[e]()||"
"!=="
"[e]()||e_&&r_[e].name!==e}))}("trim")},{trim:function(){return n_(this)}});var o_=qn,i_=A,a_=o.f,u_=un,c_=xi,f_=JA,s_=D,l_=XA,d_=i_("".endsWith),p_=i_("".slice),h_=Math.min,y_=l_("endsWith"),v_=!y_&&!!function(){var e=a_(String.prototype,"endsWith");return e&&!e.writable}();o_({target:"String",proto:!0,forced:!v_&&!y_},{endsWith:function(e){var t=c_(s_(this));f_(e);var r=arguments.length>1?arguments[1]:undefined,n=t.length,o=r===undefined?n:h_(u_(r),n),i=c_(e);return d_?d_(t,i,o):p_(t,o-i.length,o)===i}});var g_=Da.filter;qn({target:"Array",proto:!0,forced:!dx("filter")},{filter:function(e){return g_(this,e,arguments.length>1?arguments[1]:undefined)}});var b_=hn.includes,m_=th;qn({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return b_(this,e,arguments.length>1?arguments[1]:undefined)}}),m_("includes");var x_=qn,w_=JA,S_=D,A_=xi,O_=XA,__=A("".indexOf);x_({target:"String",proto:!0,forced:!O_("includes")},{includes:function(e){return!!~__(A_(S_(this)),A_(w_(e)),arguments.length>1?arguments[1]:undefined)}});var I_=qn,E_=P,T_=F,k_=vf,j_=A([].join),R_=E_!=Object,M_=k_("join",",");I_({target:"Array",proto:!0,forced:R_||!M_},{join:function(e){return j_(T_(this),e===undefined?",":e)}});var P_=Dynamsoft.Lib.Promise;function C_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C_(Object(r),!0).forEach((function(t){Mf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L_(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return N_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r["return"]||r["return"]()}finally{if(u)throw i}}}}function N_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var F_,B_,U_,W_,Y_,G_="undefined"==typeof self,$_=G_?{}:self;if("undefined"!=typeof navigator&&(B_=(F_=navigator).userAgent,U_=F_.platform,W_=F_.mediaDevices),!G_){var z_={Edge:{search:"Edg",verSearch:"Edg"},OPR:null,Chrome:null,Safari:{str:F_.vendor,search:"Apple",verSearch:["Version","iPhone OS","CPU OS"]},Firefox:null,Explorer:{search:"MSIE",verSearch:"MSIE"}},V_={HarmonyOS:null,Android:null,iPhone:null,iPad:null,Windows:{str:U_,search:"Win"},Mac:{str:U_},Linux:{str:U_}},H_="unknownBrowser",J_=0,K_="unknownOS";for(var X_ in z_){var Z_=z_[X_]||{},q_=Z_.str||B_,Q_=Z_.search||X_,eI=Z_.verStr||B_,tI=Z_.verSearch||X_;if(tI instanceof Array||(tI=[tI]),-1!=q_.indexOf(Q_)){H_=X_;var rI,nI=L_(tI);try{for(nI.s();!(rI=nI.n()).done;){var oI=rI.value,iI=eI.indexOf(oI);if(-1!=iI){J_=parseFloat(eI.substring(iI+oI.length+1));break}}}catch(Mf){nI.e(Mf)}finally{nI.f()}break}}for(var aI in V_){var uI=V_[aI]||{},cI=uI.str||B_,fI=uI.search||aI;if(-1!=cI.indexOf(fI)){K_=aI;break}}"Linux"==K_&&-1!=B_.indexOf("Windows NT")&&(K_="HarmonyOS"),Y_={browser:H_,version:J_,OS:K_}}G_&&(Y_={browser:"ssr",version:0,OS:"ssr"}),"undefined"!=typeof WebAssembly&&B_&&(!/Safari/.test(B_)||/Chrome/.test(B_)||/\(.+\s11_2_([2-6]).*\)/.test(B_)),W_&&W_.getUserMedia;var sI="Chrome"===Y_.browser&&Y_.version>66||"Safari"===Y_.browser&&Y_.version>13||"OPR"===Y_.browser&&Y_.version>43||"Edge"===Y_.browser&&Y_.version>15,lI=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(Mf){return}}();function dI(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(Jf){if("TypeError"!==Jf.name)throw Jf;for(var r=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),n=0;n<e.length;n+=1)r.append(e[n]);return r.getBlob(t.type)}}function pI(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function hI(e,t,r){"function"==typeof t&&e.then(t),"function"==typeof r&&e["catch"](r)}function yI(e){return"string"!=typeof e&&(e=String(e)),e}function vI(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var gI,bI={},mI=Object.prototype.toString;function xI(e){var t=bI[e.name],r={};r.promise=new P_((function(e,t){r.resolve=e,r.reject=t})),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then((function(){return r.promise})):t.dbReady=r.promise}function wI(e){var t=bI[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function SI(e,t){var r=bI[e.name].deferredOperations.pop();if(r)return r.reject(t),r.promise}function AI(e,t){return new P_((function(r,n){if(bI[e.name]=bI[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return r(e.db);xI(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var i=lI.open.apply(lI,o);t&&(i.onupgradeneeded=function(t){var r=i.result;try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore("local-forage-detect-blob-support")}catch(r){if("ConstraintError"!==r.name)throw r}}),i.onerror=function(e){e.preventDefault(),n(i.error)},i.onsuccess=function(){var t=i.result;t.onversionchange=function(e){e.target.close()},r(t),wI(e)}}))}function OI(e){return AI(e,!1)}function _I(e){return AI(e,!0)}function II(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),n=e.version<e.db.version,o=e.version>e.db.version;if(n&&(e.version,e.version=e.db.version),o||r){if(r){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function EI(e){var t=this,r=t._initReady().then((function(){var e=bI[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return hI(r,e,e),r}function TI(e,t,r,n){void 0===n&&(n=1);try{var o=e.db.transaction(e.storeName,t);r(null,o)}catch(o){if(n>0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return P_.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),_I(e)})).then((function(){return function(e){xI(e);for(var t=bI[e.name],r=t.forages,n=0;n<r.length;n++){var o=r[n];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,OI(e).then((function(t){return e.db=t,II(e)?_I(e):t})).then((function(n){e.db=t.db=n;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=n}))["catch"]((function(t){throw SI(e,t),t}))}(e).then((function(){TI(e,t,r,n-1)}))}))["catch"](r);r(o)}}var kI={_driver:"asyncStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var n in e)r[n]=e[n];var o=bI[r.name];o||(o={forages:[],db:null,dbReady:null,deferredOperations:[]},bI[r.name]=o),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=EI);var i=[];function a(){return P_.resolve()}for(var u=0;u<o.forages.length;u++){var c=o.forages[u];c!==t&&i.push(c._initReady()["catch"](a))}var f=o.forages.slice(0);return P_.all(i).then((function(){return r.db=o.db,OI(r)})).then((function(e){return r.db=e,II(r,t._defaultConfig.version)?_I(r):e})).then((function(e){r.db=o.db=e,t._dbInfo=r;for(var n=0;n<f.length;n++){var i=f[n];i!==t&&(i._dbInfo.db=r.db,i._dbInfo.version=r.version)}}))},_support:function(){try{if(!lI||!lI.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),getItem:function(e,t){var r=this;e=yI(e);var n=new P_((function(t,n){r.ready().then((function(){TI(r._dbInfo,"readonly",(function(o,i){if(o)return n(o);try{var a=i.objectStore(r._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),function(e){return e&&e.__local_forage_encoded_blob}(e)&&(e=function(e){var t=function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),o=0;o<t;o++)n[o]=e.charCodeAt(o);return r}(atob(e.data));return dI([t],{type:e.type})}(e)),t(e)},a.onerror=function(){n(a.error)}}catch(e){n(e)}}))}))["catch"](n)}));return pI(n,t),n},setItem:function(e,t,r){var n=this;e=yI(e);var o=new P_((function(r,o){var i;n.ready().then((function(){return i=n._dbInfo,"[object Blob]"===mI.call(t)?function(e){return"boolean"==typeof gI?P_.resolve(gI):function(e){return new P_((function(t){var r=e.transaction("local-forage-detect-blob-support","readwrite"),n=dI([""]);r.objectStore("local-forage-detect-blob-support").put(n,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),r=navigator.userAgent.match(/Edge\//);t(r||!e||parseInt(e[1],10)>=43)}}))["catch"]((function(){return!1}))}(e).then((function(e){return gI=e}))}(i.db).then((function(e){return e?t:(r=t,new P_((function(e,t){var n=new FileReader;n.onerror=t,n.onloadend=function(t){var n=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:n,type:r.type})},n.readAsBinaryString(r)})));var r})):t})).then((function(t){TI(n._dbInfo,"readwrite",(function(i,a){if(i)return o(i);try{var u=a.objectStore(n._dbInfo.storeName);null===t&&(t=void 0);var c=u.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),r(t)},a.onabort=a.onerror=function(){var e=c.error?c.error:c.transaction.error;o(e)}}catch(e){o(e)}}))}))["catch"](o)}));return pI(o,r),o},removeItem:function(e,t){var r=this;e=yI(e);var n=new P_((function(t,n){r.ready().then((function(){TI(r._dbInfo,"readwrite",(function(o,i){if(o)return n(o);try{var a=i.objectStore(r._dbInfo.storeName)["delete"](e);i.oncomplete=function(){t()},i.onerror=function(){n(a.error)},i.onabort=function(){var e=a.error?a.error:a.transaction.error;n(e)}}catch(e){n(e)}}))}))["catch"](n)}));return pI(n,t),n},clear:function(e){var t=this,r=new P_((function(e,r){t.ready().then((function(){TI(t._dbInfo,"readwrite",(function(n,o){if(n)return r(n);try{var i=o.objectStore(t._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=i.error?i.error:i.transaction.error;r(e)}}catch(e){r(e)}}))}))["catch"](r)}));return pI(r,e),r},length:function(e){var t=this,r=new P_((function(e,r){t.ready().then((function(){TI(t._dbInfo,"readonly",(function(n,o){if(n)return r(n);try{var i=o.objectStore(t._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){r(i.error)}}catch(e){r(e)}}))}))["catch"](r)}));return pI(r,e),r},keys:function(e){var t=this,r=new P_((function(e,r){t.ready().then((function(){TI(t._dbInfo,"readonly",(function(n,o){if(n)return r(n);try{var i=o.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];i.onsuccess=function(){var t=i.result;t?(a.push(t.key),t["continue"]()):e(a)},i.onerror=function(){r(i.error)}}catch(e){r(e)}}))}))["catch"](r)}));return pI(r,e),r},dropInstance:function(e,t){t=vI.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var n,o=this;if(e.name){var i=e.name===r.name&&o._dbInfo.db,a=i?P_.resolve(o._dbInfo.db):OI(e).then((function(t){var r=bI[e.name],n=r.forages;r.db=t;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=t;return t}));n=e.storeName?a.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var r=t.version+1;xI(e);var n=bI[e.name],o=n.forages;t.close();for(var i=0;i<o.length;i++){var a=o[i];a._dbInfo.db=null,a._dbInfo.version=r}var u=new P_((function(t,n){var o=lI.open(e.name,r);o.onerror=function(e){o.result.close(),n(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}}));return u.then((function(e){n.db=e;for(var t=0;t<o.length;t++){var r=o[t];r._dbInfo.db=e,wI(r._dbInfo)}}))["catch"]((function(t){throw(SI(e,t)||P_.resolve())["catch"]((function(){})),t}))}})):a.then((function(t){xI(e);var r=bI[e.name],n=r.forages;t.close();for(var o=0;o<n.length;o++)n[o]._dbInfo.db=null;var i=new P_((function(t,r){var n=lI.deleteDatabase(e.name);n.onerror=function(){var e=n.result;e&&e.close(),r(n.error)},n.onblocked=function(){},n.onsuccess=function(){var e=n.result;e&&e.close(),t(e)}}));return i.then((function(e){r.db=e;for(var t=0;t<n.length;t++)wI(n[t]._dbInfo)}))["catch"]((function(t){throw(SI(e,t)||P_.resolve())["catch"]((function(){})),t}))}))}else n=P_.reject("Invalid arguments");return pI(n,t),n}},jI=new Map;function RI(e,t){var r=e.name+"/";return e.storeName!==t.storeName&&(r+=e.storeName+"/"),r}function MI(){return(MI=Xf(ts.mark((function e(t){var r,n,o;return ts.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={},t)for(n in t)r[n]=t[n];o=r.keyPrefix=RI(t,this._defaultConfig),this._dbInfo=r,jI.has(o)||jI.set(o,new Map);case 5:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}var PI={_driver:"tempStorageWrapper",_initStorage:function(e){return MI.apply(this,arguments)},getItem:function(e,t){var r=this;e=yI(e);var n=this.ready().then((function(){return jI.get(r._dbInfo.keyPrefix).get(e)}));return pI(n,t),n},setItem:function(e,t,r){var n=this;e=yI(e);var o=this.ready().then((function(){return void 0===t&&(t=null),jI.get(n._dbInfo.keyPrefix).set(e,t),t}));return pI(o,r),o},removeItem:function(e,t){var r=this;e=yI(e);var n=this.ready().then((function(){jI.get(r._dbInfo.keyPrefix)["delete"](e)}));return pI(n,t),n},clear:function(e){var t=this,r=this.ready().then((function(){var e=t._dbInfo.keyPrefix;jI.has(e)&&jI["delete"](e)}));return pI(r,e),r},length:function(e){var t=this,r=this.ready().then((function(){return jI.get(t._dbInfo.keyPrefix).size}));return pI(r,e),r},keys:function(e){var t=this,r=this.ready().then((function(){return Jf(jI.get(t._dbInfo.keyPrefix).keys())}));return pI(r,e),r},dropInstance:function(e,t){var r,n=this;if(t=vI.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var o=this.config();e.name=e.name||o.name,e.storeName=e.storeName||o.storeName}return pI(r=e.name?new P_((function(t){e.storeName?t(RI(e,n._defaultConfig)):t("".concat(e.name,"/"))})).then((function(e){jI["delete"](e)})):P_.reject("Invalid arguments"),t),r}},CI=function(e,t){for(var r,n,o=e.length,i=0;i<o;){if((r=e[i])===(n=t)||"number"==typeof r&&"number"==typeof n&&isNaN(r)&&isNaN(n))return!0;i++}return!1},DI=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},LI={},NI={},FI={INDEXEDDB:kI,TEMPSTORAGE:PI},BI=[FI.INDEXEDDB._driver,FI.TEMPSTORAGE._driver],UI=["dropInstance"],WI=["clear","getItem","keys","length","removeItem","setItem"].concat(UI),YI={description:"",driver:BI.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function GI(e,t){e[t]=function(){var r=arguments;return e.ready().then((function(){return e[t].apply(e,r)}))}}function $I(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var r in t)t.hasOwnProperty(r)&&(DI(t[r])?arguments[0][r]=t[r].slice():arguments[0][r]=t[r])}return arguments[0]}var zI=new(function(){function e(t){for(var r in Wf(this,e),FI)if(FI.hasOwnProperty(r)){var n=FI[r],o=n._driver;this[r]=o,LI[o]||this.defineDriver(n)}this._defaultConfig=$I({},YI),this._config=$I({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver)["catch"]((function(){}))}return Gf(e,[{key:"config",value:function(e){if("object"===qf(e)){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config}},{key:"defineDriver",value:function(e,t,r){var n=new P_((function(t,r){try{var n=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void r(o);for(var i=WI.concat("_initStorage"),a=0,u=i.length;a<u;a++){var c=i[a];if((!CI(UI,c)||e[c])&&"function"!=typeof e[c])return void r(o)}!function(){for(var t=function(e){return function(){var t=new Error("Method ".concat(e," is not implemented by the current driver")),r=P_.reject(t);return pI(r,arguments[arguments.length-1]),r}},r=0,n=UI.length;r<n;r++){var o=UI[r];e[o]||(e[o]=t(o))}}();var f=function(r){LI[n],LI[n]=e,NI[n]=r,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(f,r):f(!!e._support):f(!0)}catch(e){r(e)}}));return hI(n,t,r),n}},{key:"driver",value:function(){return this._driver||null}},{key:"getDriver",value:function(e,t,r){var n=LI[e]?P_.resolve(LI[e]):P_.reject(new Error("Driver not found."));return hI(n,t,r),n}},{key:"ready",value:function(e){var t=this,r=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return hI(r,e,e),r}},{key:"setDriver",value:function(e,t,r){var n=this;DI(e)||(e=[e]);var o=this._getSupportedDrivers(e);function i(){n._config.driver=n.driver()}function a(e){return n._extend(e),i(),n._ready=n._initStorage(n._config),n._ready}var u=null!==this._driverSet?this._driverSet["catch"]((function(){return P_.resolve()})):P_.resolve();return this._driverSet=u.then((function(){var e=o[0];return n._dbInfo=null,n._ready=null,n.getDriver(e).then((function(e){n._driver=e._driver,i(),n._wrapLibraryMethodsWithReady(),n._initDriver=function(e){return function(){var t=0;return function r(){for(;t<e.length;){var o=e[t];return t++,n._dbInfo=null,n._ready=null,n.getDriver(o).then(a)["catch"](r)}i();var u=new Error("No available storage method found.");return n._driverSet=P_.reject(u),n._driverSet}()}}(o)}))}))["catch"]((function(){i();var e=new Error("No available storage method found.");return n._driverSet=P_.reject(e),n._driverSet})),hI(this._driverSet,t,r),this._driverSet}},{key:"supports",value:function(e){return!!NI[e]}},{key:"_extend",value:function(e){$I(this,e)}},{key:"_getSupportedDrivers",value:function(e){for(var t=[],r=0,n=e.length;r<n;r++){var o=e[r];this.supports(o)&&t.push(o)}return t}},{key:"_wrapLibraryMethodsWithReady",value:function(){for(var e=0,t=WI.length;e<t;e++)GI(this,WI[e])}},{key:"createInstance",value:function(t){return new e(t)}}]),e}());Date.prototype.kUtilFormat=function(e){var t={"M+":this.getUTCMonth()+1,"d+":this.getUTCDate(),"H+":this.getUTCHours(),"h+":this.getUTCHours()%12||12,"m+":this.getUTCMinutes(),"s+":this.getUTCSeconds(),"q+":Math.floor((this.getUTCMonth()+3)/3),"S+":this.getUTCMilliseconds()};for(var r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getUTCFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("000"+t[r]).substr(("000"+t[r]).length-RegExp.$1.length)));return e},String.prototype.startsWith||(String.prototype.startsWith=function(e){return 0==this.indexOf(e)});var VI=globalThis.Dynamsoft;VI.LTS={},VI.LTS._={createLtsInstance:function(e){var t,r,n,o,i,a,u,c,f,s,l,d,p,h,y,v,g,b,m,x,w,S,A,O,_,I=e.fetch||$_.fetch,E=e.btoa||$_.btoa,T=e.atob||$_.atob,k=e.bd,j=e.dm,R=["https://mlts.dynamsoft.com/","https://slts.dynamsoft.com/"],M=R,P=!1,C=P_.resolve(),D=e.lf,L=e.log&&function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e.log.apply(null,r)}catch(e){setTimeout((function(){throw e}),0)}}||function(){},N=k&&L||function(){},F=e.fol,B=e.sutlcb,U=e.feab,W=function(e){return T(T(e.replace(/\n/g,"+").replace(/\s/g,"=")).substring(1))},Y=function(e){return E(String.fromCharCode(97+25*Math.random())+E(e)).replace(/\+/g,"\n").replace(/=/g," ")},G=function(){if(S)return S;if($_.crypto){var e=new Uint8Array(36);$_.crypto.getRandomValues(e);for(var t="",r=0;r<36;++r){var n=e[r]%36;t+=n<10?n:String.fromCharCode(n+87)}return t}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},$=function(){var e=Xf(ts.mark((function p(e){return ts.wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.pd,r=e.v,n=r.split(".")[0],e.dt&&(a=e.dt),o=e.l||"",c="string"!=typeof e.os?JSON.stringify(e.os):e.os,"string"==typeof(f=e.fn)&&(f=f.substring(0,50)),e.ls&&e.ls.length&&1==(M=e.ls).length&&M.push(M[0]),s=R===M&&(!o||"200001"===o||o.startsWith("200001-")),l=e.sp,d=e.rmk,e.lf&&(D=e.lf),e.lsu&&(u=S=e.lsu),e.feab&&(U=e.feab),m=e.updl,x=e.mnet,w=e.mxet,e.sutlcb&&(B=e.sutlcb),p.next=21,V();case 21:return p.next=23,H();case 23:return p.next=25,J();case 25:return p.next=27,K();case 27:return(!h||h.ltsErrorCode>=102&&h.ltsErrorCode<=120)&&re(null,!0),p.abrupt("return",{ar:i,cu:u});case 29:case"end":return p.stop()}}),p)})));return function(t){return e.apply(this,arguments)}}(),z=function(){var e=Xf(ts.mark((function t(){return ts.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:D||(D=zI);case 1:case"end":return e.stop()}}),t)})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=Xf(ts.mark((function t(){return ts.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A=A||Xf(ts.mark((function t(){var e,r,n,o;return ts.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,z();case 2:return t.next=4,D.createInstance({name:"dynamjssdkhello"});case 4:return e=t.sent,t.next=7,e.setItem("dynamjssdkhello","available");case 7:return t.next=9,D.createInstance({name:"dynamltsinfo"});case 9:if(v=t.sent,g=S?null:E(E("v2")+String.fromCharCode(j.charCodeAt(j.length/2)+1)+E(j)),S){t.next=42;break}return t.prev=12,t.next=15,v.getItem(g);case 15:if(!(r=t.sent)){t.next=25;break}return t.t0=JSON,t.next=20,W(r);case 20:t.t1=t.sent,n=t.t0.parse.call(t.t0,t.t1),o=Bf(n,2),u=o[0],p=o[1];case 25:t.next=29;break;case 27:t.prev=27,t.t2=t["catch"](12);case 29:if(t.prev=29,null!=u){t.next=38;break}return u=G(),t.t3=v,t.t4=g,t.next=36,Y(JSON.stringify([u,null]));case 36:t.t5=t.sent,t.t3.setItem.call(t.t3,t.t4,t.t5);case 38:t.next=42;break;case 40:t.prev=40,t.t6=t["catch"](29);case 42:case"end":return t.stop()}}),t,null,[[12,27],[29,40]])})))(),e.abrupt("return",A);case 2:case"end":return e.stop()}}),t)})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=Xf(ts.mark((function r(){return ts.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b=E(String.fromCharCode(o.charCodeAt(0)+10)+E(t)+E(o)+n+E(""+a)),e.next=3,D.createInstance({name:"dynamdlsuns"+E(E("v2"))+E(String.fromCharCode(o.charCodeAt(0)+10)+E(t)+E(o)+n+E(""+a))});case 3:return y=e.sent,e.prev=4,e.next=7,v.getItem(b);case 7:i=e.sent,e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](4);case 12:case"end":return e.stop()}}),r,null,[[4,10]])})));return function(){return e.apply(this,arguments)}}(),J=function(){var e=Xf(ts.mark((function y(e){return ts.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return O||(O=Xf(ts.mark((function m(){var y,x,w,A,_,T;return ts.wrap((function(m){for(;;)switch(m.prev=m.next){case 0:if(m.prev=0,y={pd:t,vm:n,v:r,dt:a||"browser",ed:"javascript",cu:u,ad:j,os:c,fn:f},d&&(y.rmk=d),o&&(y=-1!=o.indexOf("-")?D_(D_({},y),{},{hs:o}):D_(D_({},y),{},{og:o})),x={},!p||S){m.next=19;break}return m.next=8,v.getItem(g);case 8:if(!(w=m.sent)){m.next=18;break}return m.t0=JSON,m.next=13,W(w);case 13:m.t1=m.sent,A=m.t0.parse.call(m.t0,m.t1),_=Bf(A,2),u=_[0],p=_[1];case 18:x["lts-time"]=p;case 19:return l&&(y.sp=l),m.next=22,P_.race([Xf(ts.mark((function k(){var t,r,n,o,a,c,f,l;return ts.wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(t=(new Date).kUtilFormat("yyyy-MM-ddTHH:mm:ss.SSSZ"),!p||S){d.next=9;break}return d.t0=v,d.t1=g,d.next=6,Y(JSON.stringify([u,t]));case 6:d.t2=d.sent,d.t0.setItem.call(d.t0,d.t1,d.t2),p=t;case 9:return n="auth/?ext="+encodeURIComponent(E(JSON.stringify(y))),o=!1,a=!1,f=function(){var e=Xf(ts.mark((function t(e){var r,n;return ts.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:if(!e.ok){t.next=4;break}return t.abrupt("return");case 4:return t.prev=4,t.next=7,e.text();case 7:(r=t.sent)&&(n=JSON.parse(r)).errorCode&&(c=n,n.errorCode>100&&n.errorCode<200&&(i=null,o=!0,a=!0)),t.next=13;break;case 11:t.prev=11,t.t0=t["catch"](4);case 13:case"end":return t.stop()}}),t,null,[[4,11]])})));return function(t){return e.apply(this,arguments)}}(),d.prev=13,d.next=16,I(M[0]+n,{headers:x,cache:e?"reload":"default",mode:"cors",timeout:1e4});case 16:return r=d.sent,d.next=19,f(r);case 19:d.next=23;break;case 21:d.prev=21,d.t3=d["catch"](13);case 23:if(i||r&&r.ok||o){d.next=34;break}return d.prev=24,d.next=27,I(M[1]+n,{headers:x,mode:"cors",timeout:3e4});case 27:return r=d.sent,d.next=30,f(r);case 30:d.next=34;break;case 32:d.prev=32,d.t4=d["catch"](24);case 34:if(i||r&&r.ok||o){d.next=45;break}return d.prev=35,d.next=38,I(M[0]+n,{headers:x,mode:"cors",timeout:3e4});case 38:return r=d.sent,d.next=41,f(r);case 41:d.next=45;break;case 43:d.prev=43,d.t5=d["catch"](35);case 45:if(!c||151!=c.errorCode||S){d.next=57;break}return v.removeItem(g),v.removeItem(b),u=G(),y.cu=u,p=void 0,n="auth/?ext="+encodeURIComponent(E(JSON.stringify(y))),d.next=54,I(M[0]+n,{headers:x,mode:"cors",timeout:3e4});case 54:return r=d.sent,d.next=57,f(r);case 57:return function(){if(!r||!r.ok){var e;a&&v.setItem(b,""),c?111==c.errorCode?e=c.message:((e=c.message.trim()).endsWith(".")||(e+="."),e="An error occurred during authorization: ".concat(e,s?" [Contact Dynamsoft](https://www.dynamsoft.com/company/contact/) for more information.":" Contact the site administrator for more information.")):e=s?"Failed to connect to the Dynamsoft License Server: network connection error. Check your Internet connection or [contact Dynamsoft](https://www.dynamsoft.com/company/contact/) for more information.":"Failed to connect to the Dynamsoft License Server: network connection error. Check your Internet connection or contact the site administrator for more information.";var t=Error(e);throw c&&c.errorCode&&(t.ltsErrorCode=c.errorCode),t}}(),d.next=61,r.text();case 61:if(l=d.sent,d.prev=62,p||S){d.next=71;break}return d.t6=v,d.t7=g,d.next=68,Y(JSON.stringify([u,t]));case 68:d.t8=d.sent,d.t6.setItem.call(d.t6,d.t7,d.t8),p=t;case 71:v.setItem(b,l),d.next=76;break;case 74:d.prev=74,d.t9=d["catch"](62);case 76:return d.abrupt("return",l);case 77:case"end":return d.stop()}}),k,null,[[13,21],[24,32],[35,43],[62,74]])})))(),new P_((function(e,t){var r;r=s?"Failed to connect to the Dynamsoft License Server: network timed out. Check your Internet connection or [contact Dynamsoft](https://www.dynamsoft.com/company/contact/) for more information.":"Failed to connect to the Dynamsoft License Server: network timed out. Check your Internet connection or contact the site administrator for more information.",setTimeout((function(){return t(new Error(r))}),i?3e3:15e3)}))]);case 22:T=m.sent,i=T,m.next=30;break;case 26:m.prev=26,m.t2=m["catch"](0),h=m.t2;case 30:O=null;case 31:case"end":return m.stop()}}),m,null,[[0,26]])})))()),y.next=3,O;case 3:case"end":return y.stop()}}),y)})));return function(t){return e.apply(this,arguments)}}(),K=function(){var e=Xf(ts.mark((function n(){return ts.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _||(_=Xf(ts.mark((function n(){var e;return ts.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(N(u),i){n.next=6;break}if(P){n.next=5;break}throw L(h.message),h;case 5:return n.abrupt("return");case 6:e={dm:j},k&&(e.bd=!0),e.brtk=!0,e.ls=M[0],o&&(-1!=o.indexOf("-")?e.hs=o:e.og=o),e.cu=u,f&&(e.fn=f),t&&(e.pd=t),r&&(e.v=r),a&&(e.dt=a),c&&(e.os=c),d&&(e.rmk=d),N(i);try{e.ar=i,e.bafc=!!h}catch(n){}return N(e),n.prev=21,n.next=24,m(e);case 24:n.next=29;break;case 26:n.prev=26,n.t0=n["catch"](21),N("error updl");case 29:return n.next=31,X();case 31:P||(P=!0),_=null;case 33:case"end":return n.stop()}}),n,null,[[21,26]])})))()),e.next=3,_;case 3:case"end":return e.stop()}}),n)})));return function(){return e.apply(this,arguments)}}(),X=function(){var e=Xf(ts.mark((function t(){var e,r,n;return ts.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new Date,r=e.kUtilFormat("yyyy-MM-ddTHH:mm:ss.SSSZ"),t.next=4,w();case 4:if(n=t.sent,N(n),!(n&&n<r)){t.next=12;break}if(!h){t.next=11;break}throw new Error("Failed to connect to the Dynamsoft License Server. The cached license has expired. Please get connected to the network as soon as possible or contact the site administrator for more information.");case 11:throw new Error("Your system date and time appear to have been changed, causing the license to fail. Please correct the system data and time and try again.");case 12:case"end":return t.stop()}}),t)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=Xf(ts.mark((function t(){var e,r,n,o,i,a;return ts.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new Date,r=e.kUtilFormat("yyyy-MM-ddTHH:mm:ss.SSSZ"),t.next=4,x();case 4:return n=t.sent,t.next=7,w();case 7:if(!((o=t.sent)&&o<r)){t.next=15;break}return t.next=11,J(!0);case 11:return t.next=13,K();case 13:t.next=16;break;case 15:n&&n<r&&(e.setMinutes(e.getMinutes()-6),i=e,e=null,a=i.kUtilFormat("yyyy-MM-ddTHH:mm:ss.SSSZ"),p<a&&J().then((function(){return K()})));case 16:case"end":return t.stop()}}),t)})));return function(){return e.apply(this,arguments)}}(),q=null,Q=new P_((function(e){q=function(){Q.isPending=!1,Q.isFulfilled=!0,e()}})),ee=null,te=function(){var e=Xf(ts.mark((function t(e,r,n,o){var i;return ts.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=4;break}return e.next=3,re(n);case 3:return e.abrupt("return");case 4:if(e.prev=4,!r.startsWith("{")||!r.endsWith("}")){e.next=11;break}return e.next=8,U(r);case 8:i=e.sent,e.next=12;break;case 11:i=r;case 12:if(!i){e.next=17;break}return e.next=15,y.setItem(n,i);case 15:e.next=18;break;case 17:N("ept ecpt");case 18:e.next=22;break;case 20:e.prev=20,e.t0=e["catch"](4);case 22:if(!o){e.next=25;break}return e.next=25,re(n);case 25:ee&&clearTimeout(ee),ee=setTimeout(Xf(ts.mark((function t(){return ts.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,re();case 2:case"end":return e.stop()}}),t)}))),36e4);case 27:case"end":return e.stop()}}),t,null,[[4,20]])})));return function(t,r,n,o){return e.apply(this,arguments)}}(),re=function(){var e=Xf(ts.mark((function t(e,r){return ts.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return C=C.then(Xf(ts.mark((function n(){var t,o,i,a,c,f,s,l,d,h,b;return ts.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,y.keys();case 3:if(t=n.sent,r||(Q.isFulfilled?e&&(t=t.filter((function(t){return t<e}))):e&&t.includes(e)?t=[e]:(t=[],N("Unexpected null key"))),t.length){n.next=7;break}return n.abrupt("return");case 7:o=0;case 8:if(!(o<t.length/1e3)){n.next=69;break}i=t.slice(1e3*o,1e3*(o+1)),a=[],c=0;case 12:if(!(c<i.length)){n.next=21;break}return n.t0=a,n.next=16,y.getItem(i[c]);case 16:n.t1=n.sent,n.t0.push.call(n.t0,n.t1);case 18:++c,n.next=12;break;case 21:if(p=(new Date).kUtilFormat("yyyy-MM-ddTHH:mm:ss.SSSZ"),S){n.next=40;break}return n.next=25,v.getItem(g);case 25:if(!(f=n.sent)){n.next=34;break}return n.t2=JSON,n.next=30,W(f);case 30:n.t3=n.sent,s=n.t2.parse.call(n.t2,n.t3),l=Bf(s,1),u=l[0];case 34:return n.t4=v,n.t5=g,n.next=38,Y(JSON.stringify([u,p]));case 38:n.t6=n.sent,n.t4.setItem.call(n.t4,n.t5,n.t6);case 40:return n.prev=40,d=M[0]+"verify/v2",p&&!S&&(d+="?ltstime="+encodeURIComponent(p)),!Q.isFulfilled&&sI&&q(),n.next=46,I(d,{method:"POST",body:a.join(";"),keepalive:!0});case 46:if(h=n.sent,Q.isFulfilled||q(),!h.ok){n.next=58;break}b=0;case 50:if(!(b<i.length)){n.next=56;break}return n.next=53,y.removeItem(i[b]);case 53:++b,n.next=50;break;case 56:n.next=59;break;case 58:throw new Error("verify failed. Status Code: "+h.status);case 59:n.next=66;break;case 61:throw n.prev=61,n.t7=n["catch"](40),Q.isFulfilled||q(),F&&(F(n.t7),F=null),n.t7;case 66:++o,n.next=8;break;case 69:B&&B(),n.next=74;break;case 72:n.prev=72,n.t8=n["catch"](0);case 74:case"end":return n.stop()}}),n,null,[[0,72],[40,61]])})))),t.next=3,C;case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(t,r){return e.apply(this,arguments)}}(),ne=function(){var e=Xf(ts.mark((function t(){return ts.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,V();case 2:return e.abrupt("return",u);case 3:case"end":return e.stop()}}),t)})));return function(){return e.apply(this,arguments)}}();return{i:$,c:Z,s:te,p:Q,u:ne,caret:X}}}}();
|