SmartStorage/unpackage/dist/build/app-plus/app-service.js

11 lines
961 KiB
JavaScript
Raw Normal View History

2024-06-19 16:32:19 +08:00
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{0:function(e,t){},"0025":function(e,t,a){"use strict";a.r(t);var n=a("b960"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},"00ce":function(e,t,a){"use strict";var n=SyntaxError,i=Function,r=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(I){o=null}var c=function(){throw new r},u=o?function(){try{return c}catch(e){try{return o(arguments,"callee").get}catch(t){return c}}}():c,l=a("5156")(),f=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"===typeof Uint8Array?void 0:f(Uint8Array),p={"%AggregateError%":"undefined"===typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"===typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"===typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"===typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"===typeof JSON?JSON:void 0,"%Map%":"undefined"===typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&l?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?void 0:Promise,"%Proxy%":"undefined"===typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&l?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":n,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":r,"%Uint8Array%":"undefined"===typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?void 0:WeakSet},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date",
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t={},a=Object.prototype,r=a.hasOwnProperty,s=Object.defineProperty||function(e,t,a){e[t]=a.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function f(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(D){f=function(e,t,a){return e[t]=a}}function d(e,t,a,n){var i=t&&t.prototype instanceof v?t:v,r=Object.create(i.prototype),o=new P(n||[]);return s(r,"_invoke",{value:S(e,a,o)}),r}function h(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(D){return{type:"throw",arg:D}}}t.wrap=d;var p={};function v(){}function m(){}function g(){}var _={};f(_,c,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==a&&r.call(b,c)&&(_=b);var w=g.prototype=v.prototype=Object.create(_);function x(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){var a;s(this,"_invoke",{value:function(i,s){function o(){return new t((function(a,o){(function a(i,s,o,c){var u=h(e[i],e,s);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){a("next",e,o,c)}),(function(e){a("throw",e,o,c)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return a("throw",e,o,c)}))}c(u.arg)})(i,s,a,o)}))}return a=a?a.then(o,o):o()}})}function S(e,t,a){var n="suspendedStart";return function(i,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw r;return O()}for(a.method=i,a.arg=r;;){var s=a.delegate;if(s){var o=C(s,a);if(o){if(o===p)continue;return o}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===n)throw n="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n="executing";var c=h(e,t,a);if("normal"===c.type){if(n=a.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(n="completed",a.method="throw",a.arg=c.arg)}}}function C(e,t){var a=t.method,n=e.iterator[a];if(void 0===n)return t.delegate=null,"throw"===a&&e.iterator["return"]&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==a&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+a+"' method")),p;var i=h(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function $(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function T(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a<e.length;)if(r.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return m.prototype=g,s(w,"constructor",{value:g,configurable:!0}),s(g,"constructor",{value:m,configurable:!0}),m.displayName=f(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,f(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(k.prototype),f(k.prototype,u,(f
2023-12-20 15:15:23 +08:00
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2024-06-19 16:32:19 +08:00
t.read=function(e,t,a,n,i){var r,s,o=8*i-n-1,c=(1<<o)-1,u=c>>1,l=-7,f=a?i-1:0,d=a?-1:1,h=e[t+f];for(f+=d,r=h&(1<<-l)-1,h>>=-l,l+=o;l>0;r=256*r+e[t+f],f+=d,l-=8);for(s=r&(1<<-l)-1,r>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===r)r=1-u;else{if(r===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),r-=u}return(h?-1:1)*s*Math.pow(2,r-n)},t.write=function(e,t,a,n,i,r){var s,o,c,u=8*r-i-1,l=(1<<u)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:r-1,p=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),t+=s+f>=1?d/c:d*Math.pow(2,1-f),t*c>=2&&(s++,c/=2),s+f>=l?(o=0,s=l):s+f>=1?(o=(t*c-1)*Math.pow(2,i),s+=f):(o=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[a+h]=255&o,h+=p,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;e[a+h]=255&s,h+=p,s/=256,u-=8);e[a+h-p]|=128*v}},9205:function(e,t,a){"use strict";a.r(t);var n=a("30e4"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},9250:function(e,t,a){"use strict";a.r(t);var n=a("991a"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},"92be":function(e,t,a){"use strict";a.r(t);var n=a("e1ea"),i=a("5b61");for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);var s=a("f0c5"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=o.exports},"930b":function(e,t,a){"use strict";var n=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("a34a")),r=n(a("c973")),s=n(a("078d")),o=n(a("d157")),c={codeLogin:function(){var e=arguments;return(0,r.default)(i.default.mark((function t(){var a,n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},n=e.length>1&&void 0!==e[1]?e[1]:{},t.next=4,s.default.post(o.default.authPath,o.default.serviceUrl.login.code,a,n);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()},checkCode:function(){var e=arguments;return(0,r.default)(i.default.mark((function t(){var a,n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},n=e.length>1&&void 0!==e[1]?e[1]:{},t.next=4,s.default.post(o.default.authPath,o.default.serviceUrl.login.checkCode,a,n);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()},log:function(){var e=arguments;return(0,r.default)(i.default.mark((function t(){var a,n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},n=e.length>1&&void 0!==e[1]?e[1]:{},t.next=4,s.default.post(o.default.authPath,o.default.serviceUrl.login.log,a,n);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()}},u={logOut:function(){var e=arguments;return(0,r.default)(i.default.mark((function t(){var a,n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},n=e.length>1&&void 0!==e[1]?e[1]:{},t.next=4,s.default.delete(o.default.authPath,o.default.serviceUrl.user.logOut,a,n);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()}},l={noticeCont:function(){var e=arguments;return(0,r.default)(i.default.mark((function t(){var a,n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},n=e.length>1&&void 0!==e[1]?e[1]:{},t.next=4,s.default.get(o.default.basePath,o.default.serviceUrl.index.noticeCont,a,n);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()},singleNotice:function(){var e=arguments;return(0,r.default)(i.default.mark((function t(){var a,n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},n=e.length>1&&void 0!==e[1]?e[1]:{},t.next=4,s.default.get(o.default.basePath,o.default.serviceUrl.index.singleNotice,a,n);case
2023-12-20 15:15:23 +08:00
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
2024-06-25 16:03:37 +08:00
var n=a("1fb5"),i=a("9152"),r=a("e3db");function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,a){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,a);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,a)}function u(e,t,a,n){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,a,n){if(t.byteLength,a<0||t.byteLength<a)throw new RangeError("'offset' is out of bounds");if(t.byteLength<a+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===a&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,a):new Uint8Array(t,a,n);c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=d(e,t);return e}(e,t,a,n):"string"===typeof t?function(e,t,a){"string"===typeof a&&""!==a||(a="utf8");if(!c.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,a);e=o(e,n);var i=e.write(t,a);i!==n&&(e=e.slice(0,i));return e}(e,t,a):function(e,t){if(c.isBuffer(t)){var a=0|h(t.length);return e=o(e,a),0===e.length?e:(t.copy(e,0,0,a),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||function(e){return e!==e}(t.length)?o(e,0):d(e,t);if("Buffer"===t.type&&r(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=o(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var a=0;a<t;++a)e[a]=0;return e}function d(e,t){var a=t.length<0?0:0|h(t.length);e=o(e,a);for(var n=0;n<a;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var a=e.length;if(0===a)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return U(e).length;default:if(n)return B(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,a){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if(a>>>=0,t>>>=0,a<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return T(this,t,a);case"utf8":case"utf-8":return $(this,t,a);case"ascii":return I(this,t,a);case"latin1":case"binary":return P(this,t,a);case"base64":return C(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,a);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,a){var n=e[t];e[t]=e[a],e[a]=n}function g(e,t,a,n,i){if(0===e.length)return-1;if("string"===typeof a?(n=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=i?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(i)return-1;a=e.length-1}else if(a<0){if(!i)return-1;a=0}if("string"===typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:_(e,t,a,n,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):_(e,[t],a,n,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,a,n,i){var r,s=1,o=e.length,c=t.length;if