You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xxdj1/unpackage/cache/wgt/__UNI__3303922/app-service.js

17 lines
1.2 MiB

1 year ago
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0022":function(e,t,a){"use strict";var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("37f1")),r={name:"u-textarea",mixins:[uni.$u.mpMixin,uni.$u.mixin,n.default],data:function(){return{innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:function(e){return e}}},watch:{value:{immediate:!0,handler:function(e,t){this.innerValue=e,this.firstChange=!1,this.changeFromInner=!1}}},computed:{textareaClass:function(){var e=[],t=this.border,a=this.disabled;this.shape;return"surround"===t&&(e=e.concat(["u-border","u-textarea--radius"])),"bottom"===t&&(e=e.concat(["u-border-bottom","u-textarea--no-radius"])),a&&e.push("u-textarea--disabled"),e.join(" ")},textareaStyle:function(){return uni.$u.deepMerge({},uni.$u.addStyle(this.customStyle))}},methods:{setFormatter:function(e){this.innerFormatter=e},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e),uni.$u.formValidate(this,"blur")},onLinechange:function(e){this.$emit("linechange",e)},onInput:function(e){var t=this,a=e.detail||{},i=a.value,n=void 0===i?"":i,r=this.formatter||this.innerFormatter,s=r(n);this.innerValue=n,this.$nextTick((function(){t.innerValue=s,t.valueChange()}))},valueChange:function(){var e=this,t=this.innerValue;this.$nextTick((function(){e.$emit("input",t),e.changeFromInner=!0,e.$emit("change",t),uni.$u.formValidate(e,"change")}))},onConfirm:function(e){this.$emit("confirm",e)},onKeyboardheightchange:function(e){this.$emit("keyboardheightchange",e)}}};t.default=r},"0026":function(e,t,a){"use strict";var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("577a")),r={name:"u-checkbox",mixins:[uni.$u.mpMixin,uni.$u.mixin,n.default],data:function(){return{isChecked:!1,parentData:{iconSize:12,labelDisabled:null,disabled:null,shape:"square",activeColor:null,inactiveColor:null,size:18,value:null,iconColor:null,placement:"row",borderBottom:!1,iconPlacement:"left"}}},computed:{elDisabled:function(){return""!==this.disabled?this.disabled:null!==this.parentData.disabled&&this.parentData.disabled},elLabelDisabled:function(){return""!==this.labelDisabled?this.labelDisabled:null!==this.parentData.labelDisabled&&this.parentData.labelDisabled},elSize:function(){return this.size?this.size:this.parentData.size?this.parentData.size:21},elIconSize:function(){return this.iconSize?this.iconSize:this.parentData.iconSize?this.parentData.iconSize:12},elActiveColor:function(){return this.activeColor?this.activeColor:this.parentData.activeColor?this.parentData.activeColor:"#2979ff"},elInactiveColor:function(){return this.inactiveColor?this.inactiveColor:this.parentData.inactiveColor?this.parentData.inactiveColor:"#c8c9cc"},elLabelColor:function(){return this.labelColor?this.labelColor:this.parentData.labelColor?this.parentData.labelColor:"#606266"},elShape:function(){return this.shape?this.shape:this.parentData.shape?this.parentData.shape:"circle"},elLabelSize:function(){return uni.$u.addUnit(this.labelSize?this.labelSize:this.parentData.labelSize?this.parentData.labelSize:"15")},elIconColor:function(){var e=this.iconColor?this.iconColor:this.parentData.iconColor?this.parentData.iconColor:"#ffffff";return this.elDisabled?this.isChecked?this.elInactiveColor:"transparent":this.isChecked?e:"transparent"},iconClasses:function(){var e=[];return e.push("u-checkbox__icon-wrap--"+this.elShape),this.elDisabled&&e.push("u-checkbox__icon-wrap--disabled"),this.isChecked&&this.elDisabled&&e.push("u-checkbox__icon-wrap--disabled--checked"),e},iconWrapStyle:function(){var e={};return e.backgroundColor=this.isChecked&&!this.elDisabled?this.elActiveColor:"#ffffff",e.borderColor=this.isChecked&&!this.elDisabled?this.elActiveColor:this.elInactiveColor,e.width=uni.$u.addUnit(this.elSize),e.height=uni.$u.addUnit(this.elSize),"right"===this.parentData.iconPlacement&&(e.marginRight=0),e},checkboxStyle:function(){var e={};return this.parentData.borderBottom&&"row"===this.parentData.placement&&uni.$u.error("\u68c0\u
1 year ago
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
1 year ago
function(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var a=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,a.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(c))}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(e){0},f.prototype.commit=function(e,t,a){var i=this,n=m(e,t,a),r=n.type,s=n.payload,l=(n.options,{type:r,payload:s}),o=this._mutations[r];o&&(this._withCommit((function(){o.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(l,i.state)})))},f.prototype.dispatch=function(e,t){var a=this,i=m(e,t),n=i.type,r=i.payload,s={type:n,payload:r},l=this._actions[n];if(l){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,a.state)}))}catch(u){0}var o=l.length>1?Promise.all(l.map((function(e){return e(r)}))):l[0](r);return new Promise((function(e,t){o.then((function(t){try{a._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,a.state)}))}catch(u){0}e(t)}),(function(e){try{a._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,a.state,e)}))}catch(u){0}t(e)}))}))}},f.prototype.subscribe=function(e,t){return p(e,this._subscribers,t)},f.prototype.subscribeAction=function(e,t){var a="function"===typeof e?{before:e}:e;return p(a,this._actionSubscribers,t)},f.prototype.watch=function(e,t,a){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,a)},f.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},f.prototype.registerModule=function(e,t,a){void 0===a&&(a={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),_(this,this.state,e,this._modules.get(e),a.preserveState),h(this,this.state)},f.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var a=b(t.state,e.slice(0,-1));c.delete(a,e[e.length-1])})),v(this)},f.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},f.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),v(this,!0)},f.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(f.prototype,d);var y=k((function(e,t){var a={};return C(t).forEach((function(t){var i=t.key,n=t.val;a[i]=function(){var t=this.$store.state,a=this.$store.getters;if(e){var i=O(this.$store,"mapState",e);if(!i)return;t=i.context.state,a=i.context.getters}return"function"===typeof n?n.call(this,t,a):t[n]},a[i].vuex=!0})),a})),w=k((function(e,t){var a={};return C(t).forEach((function(t){var i=t.key,n=t.val;a[i]=function(){var t=[],a=arguments.length;while(a--)t[a]=arguments[a];var i=this.$store.commit;if(e){var r=O(this.$store,"mapMutations",e);if(!r)return;i=r.context.commit}return"function"===typeof n?n.apply(this,[i].concat(t)):i.apply(this.$store,[n].concat(t))}})),a})),x=k((function(e,t){var a={};return C(t).forEach((function(t){var i=t.key,n=t.val;n=e+n,a[i]=function(){if(!e||O(this.$store,"mapGetters",e))return this.$store.getters[n]},a[i].vuex=!0})),a})),$=k((function(e,t){var a={};return C(t).forEach((function(t){var i=t.key,n=t.val;a[i]=function(){var t=[],a=arguments.length;while(a--)t[a]=arguments[a];var i=this.$store.dispatch;if(e){var r=O(this.$store,"mapActions",e);if(!r)return;i=r.context.dispatch}return"function"===typeof n?n.apply(this,[i].concat(t)):i.apply(this.$store,[n].concat(t))}})),a}));function C(e){return function(e){return Array.isArray(e)||s(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function k(e){return function(t,a){return"string"!==typeof t?(a=t,t=""):"/"!==t.ch
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=n=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},l="function"==typeof Symbol?Symbol:{},o=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",c=l.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(T){f=function(e,t,a){return e[t]=a}}function d(e,t,a,i){var n=t&&t.prototype instanceof h?t:h,r=Object.create(n.prototype),l=new P(i||[]);return s(r,"_invoke",{value:C(e,a,l)}),r}function p(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(T){return{type:"throw",arg:T}}}t.wrap=d;var v={};function h(){}function _(){}function b(){}var m={};f(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(j([])));y&&y!==a&&r.call(y,o)&&(m=y);var w=b.prototype=h.prototype=Object.create(m);function x(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function $(e,t){var a;s(this,"_invoke",{value:function(n,s){function l(){return new t((function(a,l){(function a(n,s,l,o){var u=p(e[n],e,s);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==i(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){a("next",e,l,o)}),(function(e){a("throw",e,l,o)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return a("throw",e,l,o)}))}o(u.arg)})(n,s,a,l)}))}return a=a?a.then(l,l):l()}})}function C(e,t,a){var i="suspendedStart";return function(n,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===n)throw r;return S()}for(a.method=n,a.arg=r;;){var s=a.delegate;if(s){var l=k(s,a);if(l){if(l===v)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===i)throw i="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i="executing";var o=p(e,t,a);if("normal"===o.type){if(i=a.done?"completed":"suspendedYield",o.arg===v)continue;return{value:o.arg,done:a.done}}"throw"===o.type&&(i="completed",a.method="throw",a.arg=o.arg)}}}function k(e,t){var a=t.method,i=e.iterator[a];if(void 0===i)return t.delegate=null,"throw"===a&&e.iterator["return"]&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==a&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var n=p(i,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,v;var r=n.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,v):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function O(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(O,this),this.reset(!0)}function j(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=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 i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return _.prototype=b,s(w,"constructor",{value:b,configurable:!0}),s(b,"constructor",{value:_,configurable:!0}),_.displayName=f(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,f(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x($.prototype),f($.prototype,u,(f
1 year ago
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
1 year ago
t.read=function(e,t,a,i,n){var r,s,l=8*n-i-1,o=(1<<l)-1,u=o>>1,c=-7,f=a?n-1:0,d=a?-1:1,p=e[t+f];for(f+=d,r=p&(1<<-c)-1,p>>=-c,c+=l;c>0;r=256*r+e[t+f],f+=d,c-=8);for(s=r&(1<<-c)-1,r>>=-c,c+=i;c>0;s=256*s+e[t+f],f+=d,c-=8);if(0===r)r=1-u;else{if(r===o)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),r-=u}return(p?-1:1)*s*Math.pow(2,r-i)},t.write=function(e,t,a,i,n,r){var s,l,o,u=8*r-n-1,c=(1<<u)-1,f=c>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:r-1,v=i?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(o=Math.pow(2,-s))<1&&(s--,o*=2),t+=s+f>=1?d/o:d*Math.pow(2,1-f),t*o>=2&&(s++,o/=2),s+f>=c?(l=0,s=c):s+f>=1?(l=(t*o-1)*Math.pow(2,n),s+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,n),s=0));n>=8;e[a+p]=255&l,p+=v,l/=256,n-=8);for(s=s<<n|l,u+=n;u>0;e[a+p]=255&s,p+=v,s/=256,u-=8);e[a+p-v]|=128*h}},"918c":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("view",{staticClass:e._$s(0,"sc","u-swiper-indicator"),attrs:{_i:0}},[e._$s(1,"i","line"===e.indicatorMode)?a("view",{staticClass:e._$s(1,"sc","u-swiper-indicator__wrapper"),class:e._$s(1,"c",["u-swiper-indicator__wrapper--"+e.indicatorMode]),style:e._$s(1,"s",{width:e.$u.addUnit(e.lineWidth*e.length),backgroundColor:e.indicatorInactiveColor}),attrs:{_i:1}},[a("view",{staticClass:e._$s(2,"sc","u-swiper-indicator__wrapper--line__bar"),style:e._$s(2,"s",[e.lineStyle]),attrs:{_i:2}})]):e._e(),e._$s(3,"i","dot"===e.indicatorMode)?a("view",{staticClass:e._$s(3,"sc","u-swiper-indicator__wrapper"),attrs:{_i:3}},e._l(e._$s(4,"f",{forItems:e.length}),(function(t,i,n,r){return a("view",{key:e._$s(4,"f",{forIndex:n,key:i}),staticClass:e._$s("4-"+r,"sc","u-swiper-indicator__wrapper__dot"),class:e._$s("4-"+r,"c",[i===e.current&&"u-swiper-indicator__wrapper__dot--active"]),style:e._$s("4-"+r,"s",[e.dotStyle(i)]),attrs:{_i:"4-"+r}})})),0):e._e()])},n=[]},"919e":function(e,t,a){"use strict";a.r(t);var i=a("4161"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"919f":function(e,t,a){"use strict";var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("448a")),r=i(a("6b65")),s={data:function(){return{pickVal:[],range:{provinces:[],citys:[],areas:[]},checkObj:{}}},props:{itemHeight:{type:String,default:"44px"},value:{type:[Array,String],default:""},defaultType:{type:String,default:"label"},hideArea:{type:Boolean,default:!1}},watch:{value:function(e){this.initData()}},created:function(){this.initData()},methods:{getData:function(){var e,t,a,i,n=this,s=r.default,l=this.value,o=l[0],u=l[1],c=l[2],f=s.findIndex((function(e){return e[n.defaultType]==o}));f=l&&-1!=f?f:0;var d=s[f].children,p=d.findIndex((function(e){return e[n.defaultType]==u}));p=l&&-1!=p?p:0;var v=d[p].children,h=v.findIndex((function(e){return e[n.defaultType]==c}));h=l&&-1!=h?h:0,e=this.hideArea?[f,p]:[f,p,h],t=s[f],a=d[p],i=v[h];var _=this.hideArea?{province:t,city:a}:{province:t,city:a,area:i};return this.hideArea?{provinces:s,citys:d,dVal:e,obj:_}:{provinces:s,citys:d,areas:v,dVal:e,obj:_}},initData:function(){var e=this,t=this.getData(),a=t.provinces,i=t.citys,n=this.hideArea?[]:t.areas,r=t.obj,s=r.province,l=r.city,o=this.hideArea?{}:r.area,u=this.hideArea?[s.value,l.value]:[s.value,l.value,o.value],c=this.hideArea?"".concat(s.label+l.label):"".concat(s.label+l.label+o.label);this.range=this.hideArea?{provinces:a,citys:i}:{provinces:a,citys:i,areas:n},this.checkObj=r,this.$nextTick((function(){e.pickVal=t.dVal})),this.$emit("change",{result:c,value:u,obj:r})},handlerChange:function(e){var t=this,a=(0,n.default)(e.detail.value),i=a[0],s=a[1],l=this.hideArea?0:a[2],o=r.default,u=o[i]&&o[i].children||o[o.length-1].children||[],c=this.hideArea?[]:u[s]&&u[s].children||u[u.length-1].children||[],f=o[i]||o[o.length-1],d=u[s]||[u.length-1],p=this.hideArea?{}:c[l]||[c.length-1],v=this.hideArea?{province:f,city:d}:{province
1 year ago
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
1 year ago
var i=a("1fb5"),n=a("9152"),r=a("e3db");function s(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):(null===e&&(e=new o(t)),e.length=t),e}function o(e,t,a){if(!o.TYPED_ARRAY_SUPPORT&&!(this instanceof o))return new o(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,i){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,i){if(t.byteLength,a<0||t.byteLength<a)throw new RangeError("'offset' is out of bounds");if(t.byteLength<a+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===a&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,a):new Uint8Array(t,a,i);o.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=o.prototype):e=d(e,t);return e}(e,t,a,i):"string"===typeof t?function(e,t,a){"string"===typeof a&&""!==a||(a="utf8");if(!o.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var i=0|v(t,a);e=l(e,i);var n=e.write(t,a);n!==i&&(e=e.slice(0,n));return e}(e,t,a):function(e,t){if(o.isBuffer(t)){var a=0|p(t.length);return e=l(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)?l(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 c(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(c(t),e=l(e,t<0?0:0|p(t)),!o.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|p(t.length);e=l(e,a);for(var i=0;i<a;i+=1)e[i]=255&t[i];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function v(e,t){if(o.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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return z(e).length;default:if(i)return R(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,a){var i=!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 j(this,t,a);case"utf8":case"utf-8":return O(this,t,a);case"ascii":return I(this,t,a);case"latin1":case"binary":return P(this,t,a);case"base64":return k(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,a);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function _(e,t,a){var i=e[t];e[t]=e[a],e[a]=i}function b(e,t,a,i,n){if(0===e.length)return-1;if("string"===typeof a?(i=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=n?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(n)return-1;a=e.length-1}else if(a<0){if(!n)return-1;a=0}if("string"===typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:m(e,t,a,i,n);if("number"===typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):m(e,[t],a,i,n);throw new TypeError("val must be string, number or Buffer")}function m(e,t,a,i,n){var r,s=1,l=e.length,o=t.length;if