Files
BlogPosts/.obsidian/plugins/nutstore-sync/main.js

41 lines
1016 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function _array_like_to_array(arr1,len){if(len==null||len>arr1.length)len=arr1.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr1[i];return arr2}function _array_with_holes(arr1){if(Array.isArray(arr1))return arr1}function _array_without_holes(arr1){if(Array.isArray(arr1))return _array_like_to_array(arr1)}function _assert_this_initialized(self1){if(self1===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self1}function _async_generator(gen){var front,back;function send(key,arg){return new Promise(function(resolve,reject){var request={key:key,arg:arg,resolve:resolve,reject:reject,next:null};if(back)back=back.next=request;else{front=back=request;resume(key,arg)}})}function resume(key,arg){try{var result=gen[key](arg);var value=result.value;var overloaded=value instanceof _overload_yield;Promise.resolve(overloaded?value.v:value).then(function(arg){if(overloaded){var nextKey=key==="return"?"return":"next";if(!value.k||arg.done)return resume(nextKey,arg);else arg=gen[nextKey](arg).value}settle(result.done?"return":"normal",arg)},function(err1){resume("throw",err1)})}catch(err1){settle("throw",err1)}}function settle(type,value){switch(type){case"return":front.resolve({value:value,done:true});break;case"throw":front.reject(value);break;default:front.resolve({value:value,done:false});break}front=front.next;if(front)resume(front.key,front.arg);else back=null}this._invoke=send;if(typeof gen.return!=="function")this.return=undefined}_async_generator.prototype[typeof Symbol==="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this};_async_generator.prototype.next=function(arg){return this._invoke("next",arg)};_async_generator.prototype.throw=function(arg){return this._invoke("throw",arg)};_async_generator.prototype.return=function(arg){return this._invoke("return",arg)};function _async_iterator(iterable){var method,async,sync,retry=2;for("undefined"!=typeof Symbol&&(async=Symbol.asyncIterator,sync=Symbol.iterator);retry--;){if(async&&null!=(method=iterable[async]))return method.call(iterable);if(sync&&null!=(method=iterable[sync]))return new AsyncFromSyncIterator(method.call(iterable));async="@@asyncIterator",sync="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(s){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var done=r.done;return Promise.resolve(r.value).then(function(value){return{value:value,done:done}})}return AsyncFromSyncIterator=function(s){this.s=s,this.n=s.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function(value){var ret=this.s.return;return void 0===ret?Promise.resolve({value:value,done:!0}):AsyncFromSyncIteratorContinuation(ret.apply(this.s,arguments))},throw:function(value){var thr=this.s.return;return void 0===thr?Promise.reject(value):AsyncFromSyncIteratorContinuation(thr.apply(this.s,arguments))}},new AsyncFromSyncIterator(s)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value}catch(error){reject(error);return}if(info.done){resolve(value)}else{Promise.resolve(value).then(_next,_throw)}}function _async_to_generator(fn){return function(){var self1=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self1,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err1){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err1)}_next(undefined)})}}function _await_async_generator(value){return new _overload_yield(value,0)}function _call_super(_this,derived,args){derived=_get_prototype_of(derived);return _possible_constructor_return(_this,_is_native_reflect_construct()?Reflect.construct(derived,args||[],_get_prototype_of(_this).constructor):derived.apply(_this,args))}function _class_call_check(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _construct(Parent,args,Class){if(_is_native_reflect_construct()){_construct=Reflect.construct}else{_construct=function construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor;if(Class)_set_prototype_of(instance,Class.prototype);return instance}}return _construct.apply(null,arguments)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _create_class(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function _define_property(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _get(target,property,receiver){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get}else{_get=function get(target,property,receiver){var base=_super_prop_base(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(receiver||target)}return desc.value}}return _get(target,property,receiver||target)}function _get_prototype_of(o){_get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)};return _get_prototype_of(o)}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_set_prototype_of(subClass,superClass)}function _instanceof(left,right){if(right!=null&&typeof Symbol!=="undefined"&&right[Symbol.hasInstance]){return!!right[Symbol.hasInstance](left)}else{return left instanceof right}}function _is_native_function(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1}function _iterable_to_array(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter)}function _iterable_to_array_limit(arr1,i){var _i1=arr1==null?null:typeof Symbol!=="undefined"&&arr1[Symbol.iterator]||arr1["@@iterator"];if(_i1==null)return;var _arr=[];var _n=true;var _d=false;var _s1,_e1;try{for(_i1=_i1.call(arr1);!(_n=(_s1=_i1.next()).done);_n=true){_arr.push(_s1.value);if(i&&_arr.length===i)break}}catch(err1){_d=true;_e1=err1}finally{try{if(!_n&&_i1["return"]!=null)_i1["return"]()}finally{if(_d)throw _e1}}return _arr}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};var ownKeys=Object.keys(source);if(typeof Object.getOwnPropertySymbols==="function"){ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))}ownKeys.forEach(function(key){_define_property(target,key,source[key])})}return target}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly){symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})}keys.push.apply(keys,symbols)}return keys}function _object_spread_props(target,source){source=source!=null?source:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source))}else{ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _overload_yield(value,kind){this.v=value;this.k=kind}function _possible_constructor_return(self1,call){if(call&&(_type_of(call)==="object"||typeof call==="function")){return call}return _assert_this_initialized(self1)}function _set_prototype_of(o,p){_set_prototype_of=Object.setPrototypeOf||function setPrototypeOf(o,p){o.__proto__=p;return o};return _set_prototype_of(o,p)}function _sliced_to_array(arr1,i){return _array_with_holes(arr1)||_iterable_to_array_limit(arr1,i)||_unsupported_iterable_to_array(arr1,i)||_non_iterable_rest()}function _super_prop_base(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_get_prototype_of(object);if(object===null)break}return object}function _to_array(arr1){return _array_with_holes(arr1)||_iterable_to_array(arr1)||_unsupported_iterable_to_array(arr1)||_non_iterable_rest()}function _to_consumable_array(arr1){return _array_without_holes(arr1)||_iterable_to_array(arr1)||_unsupported_iterable_to_array(arr1)||_non_iterable_spread()}function _type_of(obj){"@swc/helpers - typeof";return obj&&typeof Symbol!=="undefined"&&obj.constructor===Symbol?"symbol":typeof obj}function _unsupported_iterable_to_array(o,minLen){if(!o)return;if(typeof o==="string")return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}function _wrap_async_generator(fn){return function(){return new _async_generator(fn.apply(this,arguments))}}function _wrap_native_super(Class){var _cache=typeof Map==="function"?new Map:undefined;_wrap_native_super=function wrapNativeSuper(Class){if(Class===null||!_is_native_function(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_get_prototype_of(this).constructor)}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _set_prototype_of(Wrapper,Class)};return _wrap_native_super(Class)}function _is_native_reflect_construct(){try{var result=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(_2){}return(_is_native_reflect_construct=function(){return!!result})()}function _ts_generator(thisArg,body){var f,y,t,_2={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},g=Object.create((typeof Iterator==="function"?Iterator:Object).prototype),d=Object.defineProperty;return d(g,"next",{value:verb(0)}),d(g,"throw",{value:verb(1)}),d(g,"return",{value:verb(2)}),typeof Symbol==="function"&&d(g,Symbol.iterator,{value:function(){return this}}),g;function verb(n){return function(v){return step([n,v])}}function step(op1){if(f)throw new TypeError("Generator is already executing.");while(g&&(g=0,op1[0]&&(_2=0)),_2)try{if(f=1,y&&(t=op1[0]&2?y["return"]:op1[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op1[1])).done)return t;if(y=0,t)op1=[op1[0]&2,t.value];switch(op1[0]){case 0:case 1:t=op1;break;case 4:_2.label++;return{value:op1[1],done:false};case 5:_2.label++;y=op1[1];op1=[0];continue;case 7:op1=_2.ops.pop();_2.trys.pop();continue;default:if(!(t=_2.trys,t=t.length>0&&t[t.length-1])&&(op1[0]===6||op1[0]===2)){_2=0;continue}if(op1[0]===3&&(!t||op1[1]>t[0]&&op1[1]<t[3])){_2.label=op1[1];break}if(op1[0]===6&&_2.label<t[1]){_2.label=t[1];t=op1;break}if(t&&_2.label<t[2]){_2.label=t[2];_2.ops.push(op1);break}if(t[2])_2.ops.pop();_2.trys.pop();continue}op1=body.call(thisArg,_2)}catch(e){op1=[6,e];y=0}finally{f=t=0}if(op1[0]&5)throw op1[1];return{value:op1[0]?op1[1]:void 0,done:true}}}function _ts_values(o){var s=typeof Symbol==="function"&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&typeof o.length==="number")return{next:function(){if(o&&i>=o.length)o=void 0;return{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}var iie=Object.create;var ru=Object.defineProperty;var nie=Object.getOwnPropertyDescriptor;var aie=Object.getOwnPropertyNames;var oie=Object.getPrototypeOf,sie=Object.prototype.hasOwnProperty;var Aie=function(r,e,t){return e in r?ru(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t};var I=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}},cie=function(r,e){for(var t in e)ru(r,t,{get:e[t],enumerable:!0})},uS=function(r,e,t,i){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(e&&(typeof e==="undefined"?"undefined":_type_of(e))=="object"||typeof e=="function")try{var _loop=function(){var n=_step.value;!sie.call(r,n)&&n!==t&&ru(r,n,{get:function(){return e[n]},enumerable:!(i=nie(e,n))||i.enumerable})};for(var _iterator=aie(e)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return r};var Le=function(r,e,t){return t=r!=null?iie(oie(r)):{},uS(e||!r||!r.__esModule?ru(t,"default",{value:r,enumerable:!0}):t,r)},uie=function(r){return uS(ru({},"__esModule",{value:!0}),r)};var Ze=function(r,e,t){return Aie(r,(typeof e==="undefined"?"undefined":_type_of(e))!="symbol"?e+"":e,t),t},sx=function(r,e,t){if(!e.has(r))throw TypeError("Cannot "+t)};var oe=function(r,e,t){return sx(r,e,"read from private field"),t?t.call(r):e.get(r)},It=function(r,e,t){if(e.has(r))throw TypeError("Cannot add the same private member more than once");_instanceof(e,WeakSet)?e.add(r):e.set(r,t)},Fr=function(r,e,t,i){return sx(r,e,"write to private field"),i?i.call(r,t):e.set(r,t),t};var da=function(r,e,t){return sx(r,e,"access private method"),t};var fS=I(function(tu){var lS=function lS(r){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t=[],i=0;i<r.length;i+=3){var n=r[i],a=i+1<r.length,o=a?r[i+1]:0,s=i+2<r.length,A=s?r[i+2]:0,u=n>>2,c=(n&3)<<4|o>>4,l=(o&15)<<2|A>>6,f=A&63;s||(f=64,a||(l=64)),t.push(e[u],e[c],e[l],e[f])}return t.join("")};(function(r){(function(e){typeof define=="function"&&define.amd?define(["exports"],e):(typeof tu==="undefined"?"undefined":_type_of(tu))=="object"&&typeof tu.nodeName!="string"?e(tu):e(r)})(function(e){"use strict";var t=r.BlobBuilder||r.WebKitBlobBuilder||r.MSBlobBuilder||r.MozBlobBuilder,i=r.URL||r.webkitURL||function(y,q){return q=document.createElement("a"),q.href=y,q},n=r.Blob,a=i.createObjectURL,o=i.revokeObjectURL,s=r.Symbol&&r.Symbol.toStringTag,A=!1,u=!1,c=t&&t.prototype.append&&t.prototype.getBlob;try{A=new Blob(["\xe4"]).size===2,u=new Blob([new Uint8Array([1,2])]).size===2}catch(y){}function l(y){return y.map(function(q){if(_instanceof(q.buffer,ArrayBuffer)){var w=q.buffer;if(q.byteLength!==w.byteLength){var N=new Uint8Array(q.byteLength);N.set(new Uint8Array(w,q.byteOffset,q.byteLength)),w=N.buffer}return w}return q})}function f(y,q){q=q||{};var w=new t;return l(y).forEach(function(N){w.append(N)}),q.type?w.getBlob(q.type):w.getBlob()}function g(y,q){return new n(l(y),q||{})}r.Blob&&(f.prototype=r.Blob.prototype,g.prototype=r.Blob.prototype);function h(y){for(var q=0,w=y.length,N=r.Uint8Array||Array,F=0,M=Math.max(32,w+(w>>1)+7),U=new N(M>>3<<3);q<w;){var G=y.charCodeAt(q++);if(G>=55296&&G<=56319){if(q<w){var K=y.charCodeAt(q);(K&64512)===56320&&(++q,G=((G&1023)<<10)+(K&1023)+65536)}if(G>=55296&&G<=56319)continue}if(F+4>U.length){M+=8,M*=1+q/y.length*2,M=M>>3<<3;var ce=new Uint8Array(M);ce.set(U),U=ce}if(G&0xffffff80)if(!(G&0xfffff800))U[F++]=G>>6&31|192;else if(!(G&0xffff0000))U[F++]=G>>12&15|224,U[F++]=G>>6&63|128;else if(!(G&0xffe00000))U[F++]=G>>18&7|240,U[F++]=G>>12&63|128,U[F++]=G>>6&63|128;else continue;else{U[F++]=G;continue}U[F++]=G&63|128}return U.slice(0,F)}function d(y){for(var q=y.length,w=[],N=0;N<q;){var F=y[N],M=null,U=F>239?4:F>223?3:F>191?2:1;if(N+U<=q){var G,K,ce,J;switch(U){case 1:F<128&&(M=F);break;case 2:G=y[N+1],(G&192)===128&&(J=(F&31)<<6|G&63,J>127&&(M=J));break;case 3:G=y[N+1],K=y[N+2],(G&192)===128&&(K&192)===128&&(J=(F&15)<<12|(G&63)<<6|K&63,J>2047&&(J<55296||J>57343)&&(M=J));break;case 4:G=y[N+1],K=y[N+2],ce=y[N+3],(G&192)===128&&(K&192)===128&&(ce&192)===128&&(J=(F&15)<<18|(G&63)<<12|(K&63)<<6|ce&63,J>65535&&J<1114112&&(M=J))}}M===null?(M=65533,U=1):M>65535&&(M-=65536,w.push(M>>>10&1023|55296),M=56320|M&1023),w.push(M),N+=U}for(var Ce=w.length,L="",Ae=0;Ae<Ce;)L+=String.fromCharCode.apply(String,w.slice(Ae,Ae+=4096));return L}var p=typeof TextEncoder=="function"?TextEncoder.prototype.encode.bind(new TextEncoder):h,m=typeof TextDecoder=="function"?TextDecoder.prototype.decode.bind(new TextDecoder):d;function x(){function y(L){for(var Ae=new Array(L.byteLength),pe=new Uint8Array(L),le=Ae.length;le--;)Ae[le]=pe[le];return Ae}var q=Object.create||function(L){function Ae(){}return Ae.prototype=L,new Ae};function w(L){return Object.prototype.toString.call(L).slice(8,-1)}function N(L,Ae){return(typeof L==="undefined"?"undefined":_type_of(L))=="object"&&Object.prototype.isPrototypeOf.call(L.prototype,Ae)}function F(L){return w(L)==="DataView"||N(r.DataView,L)}var M=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","ArrayBuffer"];function U(L,Ae){return L.indexOf(Ae)!==-1}function G(L){return U(M,w(L))||N(r.ArrayBuffer,L)}function K(L){for(var Ae=0,pe=L.length;pe--;)Ae+=L[pe].length;for(var le=new Uint8Array(Ae),ue=0,Ge=0;Ge<L.length;Ge++){var fe=L[Ge];le.set(fe,ue),ue+=fe.byteLength||fe.length}return le}function ce(L,Ae){L=L?L.slice():[],Ae=Ae==null?{}:Ae;for(var pe=0,le=L.length;pe<le;pe++){var ue=L[pe];_instanceof(ue,ce)?L[pe]=ue._buffer:typeof ue=="string"?L[pe]=p(ue):F(ue)?L[pe]=y(ue.buffer):G(ue)?L[pe]=y(ue):L[pe]=p(String(ue))}this._buffer=r.Uint8Array?K(L):[].concat.apply([],L),this.size=this._buffer.length,this.type=Ae.type||"",/[^\u0020-\u007E]/.test(this.type)?this.type="":this.type=this.type.toLowerCase()}ce.isPolyfill=!0,ce.prototype.arrayBuffer=function(){return Promise.resolve(this._buffer.buffer||this._buffer)},ce.prototype.text=function(){return Promise.resolve(m(this._buffer))},ce.prototype.slice=function(L,Ae,pe){var le=this._buffer.slice(L||0,Ae||this._buffer.length);return new ce([le],{type:pe})},ce.prototype.toString=function(){return"[object Blob]"};function J(L,Ae,pe){pe=pe||{};var le=ce.call(this,L,pe)||this;return le.name=Ae.replace(/\//g,":"),le.lastModifiedDate=pe.lastModified?new Date(pe.lastModified):new Date,le.lastModified=+le.lastModifiedDate,le}if(J.isPolyfill=!0,J.prototype=q(ce.prototype),J.prototype.constructor=J,Object.setPrototypeOf)Object.setPrototypeOf(J,ce);else try{J.__proto__=ce}catch(L){}J.prototype.toString=function(){return"[object File]"},i.createObjectURL=function(L){return _instanceof(L,ce)?"data:"+L.type+";base64,"+lS(L._buffer):a.call(i,L)},i.createObjectURL.isPolyfill=!0,i.revokeObjectURL=function(L){o&&o.call(i,L)},i.revokeObjectURL.isPolyfill=!0;var Ce=r.XMLHttpRequest&&r.XMLHttpRequest.prototype.send;Ce&&(XMLHttpRequest.prototype.send=function(L){_instanceof(L,ce)?(this.setRequestHeader("Content-Type",L.type),Ce.call(this,m(L._buffer))):Ce.call(this,L)}),e.Blob=ce,e.File=J}function v(){var y=!!r.ActiveXObject||typeof document!="undefined"&&"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,q=r.XMLHttpRequest&&r.XMLHttpRequest.prototype.send;y&&q&&(XMLHttpRequest.prototype.send=function(w){_instanceof(w,Blob)?(this.setRequestHeader("Content-Type",w.type),q.call(this,w)):q.call(this,w)});try{new File([],""),e.File=r.File}catch(w){try{e.File=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name.replace(/\\//g, ":");this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date();this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')()}catch(N){e.File=function(M,U,G){var K=new Blob(M,G),ce=G&&G.lastModified!==void 0?new Date(G.lastModified):new Date;return K.name=U.replace(/\//g,":"),K.lastModifiedDate=ce,K.lastModified=+ce,K.toString=function(){return"[object File]"},s&&(K[s]="File"),K}}e.File.isPolyfill=!0}}A?(v(),e.Blob=u?r.Blob:g):c?(v(),e.Blob=f):x();function E(){if(!_instanceof(this,E))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var y=document.createDocumentFragment();this.addEventListener=y.addEventListener,this.dispatchEvent=function(q){var w=this["on"+q.type];typeof w=="function"&&w(q),y.dispatchEvent(q)},this.removeEventListener=y.removeEventListener}function S(y,q,w){if(!_instanceof(q,e.Blob))throw new TypeError("Failed to execute '"+w+"' on 'FileReader': parameter 1 is not of type 'Blob'.");y.result="",setTimeout(function(){this.readyState=E.LOADING,y.dispatchEvent(new Event("load")),y.dispatchEvent(new Event("loadend"))})}E.EMPTY=0,E.LOADING=1,E.DONE=2,E.prototype.error=null,E.prototype.onabort=null,E.prototype.onerror=null,E.prototype.onload=null,E.prototype.onloadend=null,E.prototype.onloadstart=null,E.prototype.onprogress=null,E.prototype.readAsDataURL=function(y){S(this,y,"readAsDataURL"),this.result="data:"+y.type+";base64,"+lS(y._buffer)},E.prototype.readAsText=function(y){S(this,y,"readAsText"),this.result=m(y._buffer)},E.prototype.readAsArrayBuffer=function(y){S(this,y,"readAsText"),this.result=(y._buffer.buffer||y._buffer).slice()},E.prototype.abort=function(){},e.FileReader=r.FileReader||E,e.URL=r.URL||i,s&&(e.File.prototype[s]||(e.File.prototype[s]="File"),e.Blob.prototype[s]||(e.Blob.prototype[s]="Blob"),e.FileReader.prototype[s]||(e.FileReader.prototype[s]="FileReader"));var B=e.Blob.prototype,b;try{new ReadableStream({type:"bytes"}),b=function b(){var q=0,w=this;return new ReadableStream({type:"bytes",autoAllocateChunkSize:524288,pull:function pull(N){var F=N.byobRequest.view,M=w.slice(q,q+F.byteLength);return M.arrayBuffer().then(function(U){var G=new Uint8Array(U),K=G.byteLength;q+=K,F.set(G),N.byobRequest.respond(K),q>=w.size&&N.close()})}})}}catch(y){try{new ReadableStream({}),b=function b(w){var N=0;return new ReadableStream({pull:function pull(F){var M=w.slice(N,N+524288);return M.arrayBuffer().then(function(U){N+=U.byteLength;var G=new Uint8Array(U);F.enqueue(G),N==w.size&&F.close()})}})}}catch(q){try{new Response("").body.getReader().read(),b=function b(){return new Response(this).body}}catch(w){b=function b(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}function C(y){return new Promise(function(q,w){y.onload=y.onerror=function(N){y.onload=y.onerror=null,N.type==="load"?q(y.result||y):w(new Error("Failed to read the blob/file"))}})}B.arrayBuffer||(B.arrayBuffer=function(){var q=new e.FileReader;return q.readAsArrayBuffer(this),C(q)}),B.text||(B.text=function(){var q=new e.FileReader;return q.readAsText(this),C(q)}),B.stream||(B.stream=b)})})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||typeof global!="undefined"&&global||tu)});var te=I(function(Ax,gS){"use strict";var iu=function iu(r){return r&&r.Math===Math&&r};gS.exports=iu((typeof globalThis==="undefined"?"undefined":_type_of(globalThis))=="object"&&globalThis)||iu((typeof window==="undefined"?"undefined":_type_of(window))=="object"&&window)||iu((typeof self==="undefined"?"undefined":_type_of(self))=="object"&&self)||iu((typeof global==="undefined"?"undefined":_type_of(global))=="object"&&global)||iu((typeof Ax==="undefined"?"undefined":_type_of(Ax))=="object"&&Ax)||function(){return this}()||Function("return this")()});var W=I(function(Ttr,dS){"use strict";dS.exports=function(r){try{return!!r()}catch(e){return!0}}});var xe=I(function(Ptr,hS){"use strict";var lie=W();hS.exports=!lie(function(){return Object.defineProperty({},1,{get:function get(){return 7}})[1]!==7})});var Ds=I(function(Mtr,IS){"use strict";var fie=W();IS.exports=!fie(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})});var ge=I(function(Utr,pS){"use strict";var gie=Ds(),vg=Function.prototype.call;pS.exports=gie?vg.bind(vg):function(){return vg.apply(vg,arguments)}});var nu=I(function(vS){"use strict";var xS={}.propertyIsEnumerable,mS=Object.getOwnPropertyDescriptor,die=mS&&!xS.call({1:2},1);vS.f=die?function(e){var t=mS(this,e);return!!t&&t.enumerable}:xS});var Tt=I(function(Ltr,CS){"use strict";CS.exports=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}});var Y=I(function(Htr,yS){"use strict";var BS=Ds(),ES=Function.prototype,cx=ES.call,hie=BS&&ES.bind.bind(cx,cx);yS.exports=BS?hie:function(r){return function(){return cx.apply(r,arguments)}}});var st=I(function(Wtr,bS){"use strict";var QS=Y(),Iie=QS({}.toString),pie=QS("".slice);bS.exports=function(r){return pie(Iie(r),8,-1)}});var bo=I(function(Jtr,wS){"use strict";var xie=Y(),mie=W(),vie=st(),ux=Object,Cie=xie("".split);wS.exports=mie(function(){return!ux("z").propertyIsEnumerable(0)})?function(r){return vie(r)==="String"?Cie(r,""):ux(r)}:ux});var Zi=I(function(Ktr,SS){"use strict";SS.exports=function(r){return r==null}});var hr=I(function(Vtr,_S){"use strict";var Bie=Zi(),Eie=TypeError;_S.exports=function(r){if(Bie(r))throw new Eie("Can't call method on "+r);return r}});var Wr=I(function(Ytr,qS){"use strict";var yie=bo(),Qie=hr();qS.exports=function(r){return yie(Qie(r))}});var ke=I(function(ztr,DS){"use strict";var lx=(typeof document==="undefined"?"undefined":_type_of(document))=="object"&&document.all;DS.exports=typeof lx=="undefined"&&lx!==void 0?function(r){return typeof r=="function"||r===lx}:function(r){return typeof r=="function"}});var me=I(function(jtr,FS){"use strict";var bie=ke();FS.exports=function(r){return(typeof r==="undefined"?"undefined":_type_of(r))=="object"?r!==null:bie(r)}});var we=I(function(Xtr,kS){"use strict";var fx=te(),wie=ke(),Sie=function Sie(r){return wie(r)?r:void 0};kS.exports=function(r,e){return arguments.length<2?Sie(fx[r]):fx[r]&&fx[r][e]}});var pt=I(function(Ztr,RS){"use strict";var _ie=Y();RS.exports=_ie({}.isPrototypeOf)});var Fi=I(function($tr,TS){"use strict";var qie=te(),NS=qie.navigator,OS=NS&&NS.userAgent;TS.exports=OS?String(OS):""});var Ri=I(function(eir,HS){"use strict";var LS=te(),gx=Fi(),PS=LS.process,MS=LS.Deno,US=PS&&PS.versions||MS&&MS.version,GS=US&&US.v8,ki,Cg;GS&&(ki=GS.split("."),Cg=ki[0]>0&&ki[0]<4?1:+(ki[0]+ki[1]));!Cg&&gx&&(ki=gx.match(/Edge\/(\d+)/),(!ki||ki[1]>=74)&&(ki=gx.match(/Chrome\/(\d+)/),ki&&(Cg=+ki[1])));HS.exports=Cg});var ha=I(function(rir,JS){"use strict";var WS=Ri(),Die=W(),Fie=te(),kie=Fie.String;JS.exports=!!Object.getOwnPropertySymbols&&!Die(function(){var r=Symbol("symbol detection");return!kie(r)||!_instanceof(Object(r),Symbol)||!Symbol.sham&&WS&&WS<41})});var dx=I(function(tir,KS){"use strict";var Rie=ha();KS.exports=Rie&&!Symbol.sham&&_type_of(Symbol.iterator)=="symbol"});var Ia=I(function(iir,VS){"use strict";var Nie=we(),Oie=ke(),Tie=pt(),Pie=dx(),Mie=Object;VS.exports=Pie?function(r){return(typeof r==="undefined"?"undefined":_type_of(r))=="symbol"}:function(r){var e=Nie("Symbol");return Oie(e)&&Tie(e.prototype,Mie(r))}});var pa=I(function(nir,YS){"use strict";var Uie=String;YS.exports=function(r){try{return Uie(r)}catch(e){return"Object"}}});var _e=I(function(air,zS){"use strict";var Gie=ke(),Lie=pa(),Hie=TypeError;zS.exports=function(r){if(Gie(r))return r;throw new Hie(Lie(r)+" is not a function")}});var zr=I(function(oir,jS){"use strict";var Wie=_e(),Jie=Zi();jS.exports=function(r,e){var t=r[e];return Jie(t)?void 0:Wie(t)}});var xx=I(function(sir,XS){"use strict";var hx=ge(),Ix=ke(),px=me(),Kie=TypeError;XS.exports=function(r,e){var t,i;if(e==="string"&&Ix(t=r.toString)&&!px(i=hx(t,r))||Ix(t=r.valueOf)&&!px(i=hx(t,r))||e!=="string"&&Ix(t=r.toString)&&!px(i=hx(t,r)))return i;throw new Kie("Can't convert object to primitive value")}});var Je=I(function(Air,ZS){"use strict";ZS.exports=!1});var Bg=I(function(cir,e_){"use strict";var $S=te(),Vie=Object.defineProperty;e_.exports=function(r,e){try{Vie($S,r,{value:e,configurable:!0,writable:!0})}catch(t){$S[r]=e}return e}});var au=I(function(uir,i_){"use strict";var Yie=Je(),zie=te(),jie=Bg(),r_="__core-js_shared__",t_=i_.exports=zie[r_]||jie(r_,{});(t_.versions||(t_.versions=[])).push({version:"3.47.0",mode:Yie?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var wo=I(function(lir,a_){"use strict";var n_=au();a_.exports=function(r,e){return n_[r]||(n_[r]=e||{})}});var He=I(function(fir,o_){"use strict";var Xie=hr(),Zie=Object;o_.exports=function(r){return Zie(Xie(r))}});var Se=I(function(gir,s_){"use strict";var $ie=Y(),ene=He(),rne=$ie({}.hasOwnProperty);s_.exports=Object.hasOwn||function(e,t){return rne(ene(e),t)}});var xa=I(function(dir,A_){"use strict";var tne=Y(),ine=0,nne=Math.random(),ane=tne(1.1.toString);A_.exports=function(r){return"Symbol("+(r===void 0?"":r)+")_"+ane(++ine+nne,36)}});var ve=I(function(hir,u_){"use strict";var one=te(),sne=wo(),c_=Se(),Ane=xa(),cne=ha(),une=dx(),Fs=one.Symbol,mx=sne("wks"),lne=une?Fs.for||Fs:Fs&&Fs.withoutSetter||Ane;u_.exports=function(r){return c_(mx,r)||(mx[r]=cne&&c_(Fs,r)?Fs[r]:lne("Symbol."+r)),mx[r]}});var ou=I(function(Iir,g_){"use strict";var fne=ge(),l_=me(),f_=Ia(),gne=zr(),dne=xx(),hne=ve(),Ine=TypeError,pne=hne("toPrimitive");g_.exports=function(r,e){if(!l_(r)||f_(r))return r;var t=gne(r,pne),i;if(t){if(e===void 0&&(e="default"),i=fne(t,r,e),!l_(i)||f_(i))return i;throw new Ine("Can't convert object to primitive value")}return e===void 0&&(e="number"),dne(r,e)}});var wn=I(function(pir,d_){"use strict";var xne=ou(),mne=Ia();d_.exports=function(r){var e=xne(r,"string");return mne(e)?e:e+""}});var su=I(function(xir,I_){"use strict";var vne=te(),h_=me(),vx=vne.document,Cne=h_(vx)&&h_(vx.createElement);I_.exports=function(r){return Cne?vx.createElement(r):{}}});var Cx=I(function(mir,p_){"use strict";var Bne=xe(),Ene=W(),yne=su();p_.exports=!Bne&&!Ene(function(){return Object.defineProperty(yne("div"),"a",{get:function get(){return 7}}).a!==7})});var jr=I(function(m_){"use strict";var Qne=xe(),bne=ge(),wne=nu(),Sne=Tt(),_ne=Wr(),qne=wn(),Dne=Se(),Fne=Cx(),x_=Object.getOwnPropertyDescriptor;m_.f=Qne?x_:function(e,t){if(e=_ne(e),t=qne(t),Fne)try{return x_(e,t)}catch(i){}if(Dne(e,t))return Sne(!bne(wne.f,e,t),e[t])}});var Bx=I(function(Cir,v_){"use strict";var kne=xe(),Rne=W();v_.exports=kne&&Rne(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var he=I(function(Bir,C_){"use strict";var Nne=me(),One=String,Tne=TypeError;C_.exports=function(r){if(Nne(r))return r;throw new Tne(One(r)+" is not an object")}});var ur=I(function(E_){"use strict";var Pne=xe(),Mne=Cx(),Une=Bx(),Eg=he(),B_=wn(),Gne=TypeError,Ex=Object.defineProperty,Lne=Object.getOwnPropertyDescriptor,yx="enumerable",Qx="configurable",bx="writable";E_.f=Pne?Une?function(e,t,i){if(Eg(e),t=B_(t),Eg(i),typeof e=="function"&&t==="prototype"&&"value"in i&&bx in i&&!i[bx]){var n=Lne(e,t);n&&n[bx]&&(e[t]=i.value,i={configurable:Qx in i?i[Qx]:n[Qx],enumerable:yx in i?i[yx]:n[yx],writable:!1})}return Ex(e,t,i)}:Ex:function(e,t,i){if(Eg(e),t=B_(t),Eg(i),Mne)try{return Ex(e,t,i)}catch(n){}if("get"in i||"set"in i)throw new Gne("Accessors not supported");return"value"in i&&(e[t]=i.value),e}});var Xr=I(function(yir,y_){"use strict";var Hne=xe(),Wne=ur(),Jne=Tt();y_.exports=Hne?function(r,e,t){return Wne.f(r,e,Jne(1,t))}:function(r,e,t){return r[e]=t,r}});var So=I(function(Qir,b_){"use strict";var wx=xe(),Kne=Se(),Q_=Function.prototype,Vne=wx&&Object.getOwnPropertyDescriptor,Sx=Kne(Q_,"name"),Yne=Sx&&(function(){}).name==="something",zne=Sx&&(!wx||wx&&Vne(Q_,"name").configurable);b_.exports={EXISTS:Sx,PROPER:Yne,CONFIGURABLE:zne}});var yg=I(function(bir,w_){"use strict";var jne=Y(),Xne=ke(),_x=au(),Zne=jne(Function.toString);Xne(_x.inspectSource)||(_x.inspectSource=function(r){return Zne(r)});w_.exports=_x.inspectSource});var qx=I(function(wir,__){"use strict";var $ne=te(),eae=ke(),S_=$ne.WeakMap;__.exports=eae(S_)&&/native code/.test(String(S_))});var Au=I(function(Sir,D_){"use strict";var rae=wo(),tae=xa(),q_=rae("keys");D_.exports=function(r){return q_[r]||(q_[r]=tae(r))}});var ks=I(function(_ir,F_){"use strict";F_.exports={}});var lr=I(function(qir,N_){"use strict";var iae=qx(),R_=te(),nae=me(),aae=Xr(),Dx=Se(),Fx=au(),oae=Au(),sae=ks(),k_="Object already initialized",kx=R_.TypeError,Aae=R_.WeakMap,Qg,cu,bg,cae=function cae(r){return bg(r)?cu(r):Qg(r,{})},uae=function uae(r){return function(e){var t;if(!nae(e)||(t=cu(e)).type!==r)throw new kx("Incompatible receiver, "+r+" required");return t}};iae||Fx.state?(Ni=Fx.state||(Fx.state=new Aae),Ni.get=Ni.get,Ni.has=Ni.has,Ni.set=Ni.set,Qg=function Qg(r,e){if(Ni.has(r))throw new kx(k_);return e.facade=r,Ni.set(r,e),e},cu=function cu(r){return Ni.get(r)||{}},bg=function bg(r){return Ni.has(r)}):(_o=oae("state"),sae[_o]=!0,Qg=function Qg(r,e){if(Dx(r,_o))throw new kx(k_);return e.facade=r,aae(r,_o,e),e},cu=function cu(r){return Dx(r,_o)?r[_o]:{}},bg=function bg(r){return Dx(r,_o)});var Ni,_o;N_.exports={set:Qg,get:cu,has:bg,enforce:cae,getterFor:uae}});var _g=I(function(Dir,P_){"use strict";var Nx=Y(),lae=W(),fae=ke(),wg=Se(),Rx=xe(),gae=So().CONFIGURABLE,dae=yg(),T_=lr(),hae=T_.enforce,Iae=T_.get,O_=String,Sg=Object.defineProperty,pae=Nx("".slice),xae=Nx("".replace),mae=Nx([].join),vae=Rx&&!lae(function(){return Sg(function(){},"length",{value:8}).length!==8}),Cae=String(String).split("String"),Bae=P_.exports=function Bae(r,e,t){pae(O_(e),0,7)==="Symbol("&&(e="["+xae(O_(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!wg(r,"name")||gae&&r.name!==e)&&(Rx?Sg(r,"name",{value:e,configurable:!0}):r.name=e),vae&&t&&wg(t,"arity")&&r.length!==t.arity&&Sg(r,"length",{value:t.arity});try{t&&wg(t,"constructor")&&t.constructor?Rx&&Sg(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(n){}var i=hae(r);return wg(i,"source")||(i.source=mae(Cae,typeof e=="string"?e:"")),r};Function.prototype.toString=Bae(function(){return fae(this)&&Iae(this).source||dae(this)},"toString")});var $e=I(function(Fir,M_){"use strict";var Eae=ke(),yae=ur(),Qae=_g(),bae=Bg();M_.exports=function(r,e,t,i){i||(i={});var n=i.enumerable,a=i.name!==void 0?i.name:e;if(Eae(t)&&Qae(t,a,i),i.global)n?r[e]=t:bae(e,t);else{try{i.unsafe?r[e]&&(n=!0):delete r[e]}catch(o){}n?r[e]=t:yae.f(r,e,{value:t,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return r}});var Ox=I(function(kir,U_){"use strict";var wae=Math.ceil,Sae=Math.floor;U_.exports=Math.trunc||function(e){var t=+e;return(t>0?Sae:wae)(t)}});var Br=I(function(Rir,G_){"use strict";var _ae=Ox();G_.exports=function(r){var e=+r;return e!==e||e===0?0:_ae(e)}});var $i=I(function(Nir,L_){"use strict";var qae=Br(),Dae=Math.max,Fae=Math.min;L_.exports=function(r,e){var t=qae(r);return t<0?Dae(t+e,0):Fae(t,e)}});var Pt=I(function(Oir,H_){"use strict";var kae=Br(),Rae=Math.min;H_.exports=function(r){var e=kae(r);return e>0?Rae(e,0x1fffffffffffff):0}});var er=I(function(Tir,W_){"use strict";var Nae=Pt();W_.exports=function(r){return Nae(r.length)}});var Rs=I(function(Pir,K_){"use strict";var Oae=Wr(),Tae=$i(),Pae=er(),J_=function J_(r){return function(e,t,i){var n=Oae(e),a=Pae(n);if(a===0)return!r&&-1;var o=Tae(i,a),s;if(r&&t!==t){for(;a>o;)if(s=n[o++],s!==s)return!0}else for(;a>o;o++)if((r||o in n)&&n[o]===t)return r||o||0;return!r&&-1}};K_.exports={includes:J_(!0),indexOf:J_(!1)}});var Px=I(function(Mir,Y_){"use strict";var Mae=Y(),Tx=Se(),Uae=Wr(),Gae=Rs().indexOf,Lae=ks(),V_=Mae([].push);Y_.exports=function(r,e){var t=Uae(r),i=0,n=[],a;for(a in t)!Tx(Lae,a)&&Tx(t,a)&&V_(n,a);for(;e.length>i;)Tx(t,a=e[i++])&&(~Gae(n,a)||V_(n,a));return n}});var qg=I(function(Uir,z_){"use strict";z_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var ma=I(function(j_){"use strict";var Hae=Px(),Wae=qg(),Jae=Wae.concat("length","prototype");j_.f=Object.getOwnPropertyNames||function(e){return Hae(e,Jae)}});var uu=I(function(X_){"use strict";X_.f=Object.getOwnPropertySymbols});var Dg=I(function(Hir,Z_){"use strict";var Kae=we(),Vae=Y(),Yae=ma(),zae=uu(),jae=he(),Xae=Vae([].concat);Z_.exports=Kae("Reflect","ownKeys")||function(e){var t=Yae.f(jae(e)),i=zae.f;return i?Xae(t,i(e)):t}});var qo=I(function(Wir,e3){"use strict";var $_=Se(),Zae=Dg(),$ae=jr(),eoe=ur();e3.exports=function(r,e,t){for(var i=Zae(e),n=eoe.f,a=$ae.f,o=0;o<i.length;o++){var s=i[o];!$_(r,s)&&!(t&&$_(t,s))&&n(r,s,a(e,s))}}});var Ns=I(function(Jir,r3){"use strict";var roe=W(),toe=ke(),ioe=/#|\.prototype\./,lu=function lu(r,e){var t=aoe[noe(r)];return t===soe?!0:t===ooe?!1:toe(e)?roe(e):!!e},noe=lu.normalize=function noe(r){return String(r).replace(ioe,".").toLowerCase()},aoe=lu.data={},ooe=lu.NATIVE="N",soe=lu.POLYFILL="P";r3.exports=lu});var k=I(function(Kir,t3){"use strict";var Fg=te(),Aoe=jr().f,coe=Xr(),uoe=$e(),loe=Bg(),foe=qo(),goe=Ns();t3.exports=function(r,e){var t=r.target,i=r.global,n=r.stat,a,o,s,A,u,c;if(i?o=Fg:n?o=Fg[t]||loe(t,{}):o=Fg[t]&&Fg[t].prototype,o)for(s in e){if(u=e[s],r.dontCallGetSet?(c=Aoe(o,s),A=c&&c.value):A=o[s],a=goe(i?s:t+(n?".":"#")+s,r.forced),!a&&A!==void 0){if((typeof u==="undefined"?"undefined":_type_of(u))==(typeof A==="undefined"?"undefined":_type_of(A)))continue;foe(u,A)}(r.sham||A&&A.sham)&&coe(u,"sham",!0),uoe(o,s,u,r)}}});var kg=I(function(Vir,n3){"use strict";var doe=ve(),hoe=doe("toStringTag"),i3={};i3[hoe]="z";n3.exports=String(i3)==="[object z]"});var Mt=I(function(Yir,a3){"use strict";var Ioe=kg(),poe=ke(),Rg=st(),xoe=ve(),moe=xoe("toStringTag"),voe=Object,Coe=Rg(function(){return arguments}())==="Arguments",Boe=function Boe(r,e){try{return r[e]}catch(t){}};a3.exports=Ioe?Rg:function(r){var e,t,i;return r===void 0?"Undefined":r===null?"Null":typeof(t=Boe(e=voe(r),moe))=="string"?t:Coe?Rg(e):(i=Rg(e))==="Object"&&poe(e.callee)?"Arguments":i}});var Ee=I(function(zir,o3){"use strict";var Eoe=Mt(),yoe=String;o3.exports=function(r){if(Eoe(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return yoe(r)}});var Os=I(function(jir,s3){"use strict";var Qoe=Px(),boe=qg();s3.exports=Object.keys||function(e){return Qoe(e,boe)}});var Ng=I(function(A3){"use strict";var woe=xe(),Soe=Bx(),_oe=ur(),qoe=he(),Doe=Wr(),Foe=Os();A3.f=woe&&!Soe?Object.defineProperties:function(e,t){qoe(e);for(var i=Doe(t),n=Foe(t),a=n.length,o=0,s;a>o;)_oe.f(e,s=n[o++],i[s]);return e}});var Mx=I(function(Zir,c3){"use strict";var koe=we();c3.exports=koe("document","documentElement")});var Zr=I(function($ir,I3){"use strict";var Roe=he(),Noe=Ng(),u3=qg(),Ooe=ks(),Toe=Mx(),Poe=su(),Moe=Au(),l3=">",f3="<",Gx="prototype",Lx="script",d3=Moe("IE_PROTO"),Ux=function Ux(){},h3=function h3(r){return f3+Lx+l3+r+f3+"/"+Lx+l3},g3=function g3(r){r.write(h3("")),r.close();var e=r.parentWindow.Object;return r=null,e},Uoe=function Uoe(){var r=Poe("iframe"),e="java"+Lx+":",t;return r.style.display="none",Toe.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(h3("document.F=Object")),t.close(),t.F},Og,Tg=function Tg1(){try{Og=new ActiveXObject("htmlfile")}catch(e){}Tg=typeof document!="undefined"?document.domain&&Og?g3(Og):Uoe():g3(Og);for(var r=u3.length;r--;)delete Tg[Gx][u3[r]];return Tg()};Ooe[d3]=!0;I3.exports=Object.create||function(e,t){var i;return e!==null?(Ux[Gx]=Roe(e),i=new Ux,Ux[Gx]=null,i[d3]=e):i=Tg(),t===void 0?i:Noe.f(i,t)}});var ei=I(function(enr,p3){"use strict";var Goe=Y();p3.exports=Goe([].slice)});var Pg=I(function(rnr,v3){"use strict";var Loe=st(),Hoe=Wr(),x3=ma().f,Woe=ei(),m3=(typeof window==="undefined"?"undefined":_type_of(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Joe=function Joe(r){try{return x3(r)}catch(e){return Woe(m3)}};v3.exports.f=function(e){return m3&&Loe(e)==="Window"?Joe(e):x3(Hoe(e))}});var _r=I(function(tnr,B3){"use strict";var C3=_g(),Koe=ur();B3.exports=function(r,e,t){return t.get&&C3(t.get,e,{getter:!0}),t.set&&C3(t.set,e,{setter:!0}),Koe.f(r,e,t)}});var Hx=I(function(E3){"use strict";var Voe=ve();E3.f=Voe});var fu=I(function(nnr,y3){"use strict";var Yoe=te();y3.exports=Yoe});var At=I(function(anr,b3){"use strict";var Q3=fu(),zoe=Se(),joe=Hx(),Xoe=ur().f;b3.exports=function(r){var e=Q3.Symbol||(Q3.Symbol={});zoe(e,r)||Xoe(e,r,{value:joe.f(r)})}});var Wx=I(function(onr,w3){"use strict";var Zoe=ge(),$oe=we(),ese=ve(),rse=$e();w3.exports=function(){var r=$oe("Symbol"),e=r&&r.prototype,t=e&&e.valueOf,i=ese("toPrimitive");e&&!e[i]&&rse(e,i,function(n){return Zoe(t,this)},{arity:1})}});var Qt=I(function(snr,_3){"use strict";var tse=ur().f,ise=Se(),nse=ve(),S3=nse("toStringTag");_3.exports=function(r,e,t){r&&!t&&(r=r.prototype),r&&!ise(r,S3)&&tse(r,S3,{configurable:!0,value:e})}});var va=I(function(Anr,q3){"use strict";var ase=st(),ose=Y();q3.exports=function(r){if(ase(r)==="Function")return ose(r)}});var Ut=I(function(cnr,F3){"use strict";var D3=va(),sse=_e(),Ase=Ds(),cse=D3(D3.bind);F3.exports=function(r,e){return sse(r),e===void 0?r:Ase?cse(r,e):function(){return r.apply(e,arguments)}}});var en=I(function(unr,k3){"use strict";var use=st();k3.exports=Array.isArray||function(e){return use(e)==="Array"}});var Ca=I(function(lnr,P3){"use strict";var lse=Y(),fse=W(),R3=ke(),gse=Mt(),dse=we(),hse=yg(),N3=function N3(){},O3=dse("Reflect","construct"),Jx=/^\s*(?:class|function)\b/,Ise=lse(Jx.exec),pse=!Jx.test(N3),gu=function gu(e){if(!R3(e))return!1;try{return O3(N3,[],e),!0}catch(t){return!1}},T3=function T3(e){if(!R3(e))return!1;switch(gse(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pse||!!Ise(Jx,hse(e))}catch(t){return!0}};T3.sham=!0;P3.exports=!O3||fse(function(){var r;return gu(gu.call)||!gu(Object)||!gu(function(){r=!0})||r})?T3:gu});var L3=I(function(fnr,G3){"use strict";var M3=en(),xse=Ca(),mse=me(),vse=ve(),Cse=vse("species"),U3=Array;G3.exports=function(r){var e;return M3(r)&&(e=r.constructor,xse(e)&&(e===U3||M3(e.prototype))?e=void 0:mse(e)&&(e=e[Cse],e===null&&(e=void 0))),e===void 0?U3:e}});var Ts=I(function(gnr,H3){"use strict";var Bse=L3();H3.exports=function(r,e){return new(Bse(r))(e===0?0:e)}});var $r=I(function(dnr,J3){"use strict";var Ese=Ut(),yse=Y(),Qse=bo(),bse=He(),wse=er(),Sse=Ts(),W3=yse([].push),Ba=function Ba(r){var e=r===1,t=r===2,i=r===3,n=r===4,a=r===6,o=r===7,s=r===5||a;return function(A,u,c,l){for(var f=bse(A),g=Qse(f),h=wse(g),d=Ese(u,c),p=0,m=l||Sse,x=e?m(A,h):t||o?m(A,0):void 0,v,E;h>p;p++)if((s||p in g)&&(v=g[p],E=d(v,p,f),r))if(e)x[p]=E;else if(E)switch(r){case 3:return!0;case 5:return v;case 6:return p;case 2:W3(x,v)}else switch(r){case 4:return!1;case 7:W3(x,v)}return a?-1:i||n?n:x}};J3.exports={forEach:Ba(0),map:Ba(1),filter:Ba(2),some:Ba(3),every:Ba(4),find:Ba(5),findIndex:Ba(6),filterReject:Ba(7)}});var Aq=I(function(){"use strict";var Mg=k(),Iu=te(),em=ge(),_se=Y(),qse=Je(),Ps=xe(),Ms=ha(),Dse=W(),et=Se(),Fse=pt(),zx=he(),Ug=Wr(),rm=wn(),kse=Ee(),jx=Tt(),Us=Zr(),Y3=Os(),Rse=ma(),z3=Pg(),Nse=uu(),j3=jr(),X3=ur(),Ose=Ng(),Z3=nu(),Kx=$e(),Tse=_r(),tm=wo(),Pse=Au(),$3=ks(),K3=xa(),Mse=ve(),Use=Hx(),Gse=At(),Lse=Wx(),Hse=Qt(),eq=lr(),Gg=$r().forEach,Gt=Pse("hidden"),Lg="Symbol",hu="prototype",Wse=eq.set,V3=eq.getterFor(Lg),gi=Object[hu],Do=Iu.Symbol,du=Do&&Do[hu],Jse=Iu.RangeError,Kse=Iu.TypeError,Vx=Iu.QObject,rq=j3.f,Fo=X3.f,tq=z3.f,Vse=Z3.f,iq=_se([].push),Sn=tm("symbols"),pu=tm("op-symbols"),Yse=tm("wks"),Xx=!Vx||!Vx[hu]||!Vx[hu].findChild,nq=function nq(r,e,t){var i=rq(gi,e);i&&delete gi[e],Fo(r,e,t),i&&r!==gi&&Fo(gi,e,i)},Zx=Ps&&Dse(function(){return Us(Fo({},"a",{get:function get(){return Fo(this,"a",{value:7}).a}})).a!==7})?nq:Fo,Yx=function Yx(r,e){var t=Sn[r]=Us(du);return Wse(t,{type:Lg,tag:r,description:e}),Ps||(t.description=e),t},Hg=function Hg1(e,t,i){e===gi&&Hg(pu,t,i),zx(e);var n=rm(t);return zx(i),et(Sn,n)?(i.enumerable?(et(e,Gt)&&e[Gt][n]&&(e[Gt][n]=!1),i=Us(i,{enumerable:jx(0,!1)})):(et(e,Gt)||Fo(e,Gt,jx(1,Us(null))),e[Gt][n]=!0),Zx(e,n,i)):Fo(e,n,i)},im=function im(e,t){zx(e);var i=Ug(t),n=Y3(i).concat(sq(i));return Gg(n,function(a){(!Ps||em($x,i,a))&&Hg(e,a,i[a])}),e},zse=function zse(e,t){return t===void 0?Us(e):im(Us(e),t)},$x=function $x(e){var t=rm(e),i=em(Vse,this,t);return this===gi&&et(Sn,t)&&!et(pu,t)?!1:i||!et(this,t)||!et(Sn,t)||et(this,Gt)&&this[Gt][t]?i:!0},aq=function aq(e,t){var i=Ug(e),n=rm(t);if(!(i===gi&&et(Sn,n)&&!et(pu,n))){var a=rq(i,n);return a&&et(Sn,n)&&!(et(i,Gt)&&i[Gt][n])&&(a.enumerable=!0),a}},oq=function oq(e){var t=tq(Ug(e)),i=[];return Gg(t,function(n){!et(Sn,n)&&!et($3,n)&&iq(i,n)}),i},sq=function sq(r){var e=r===gi,t=tq(e?pu:Ug(r)),i=[];return Gg(t,function(n){et(Sn,n)&&(!e||et(gi,n))&&iq(i,Sn[n])}),i};Ms||(Do=function Do(){if(Fse(du,this))throw new Kse("Symbol is not a constructor");var e=!arguments.length||arguments[0]===void 0?void 0:kse(arguments[0]),t=K3(e),i=function i1(n){var a=this===void 0?Iu:this;a===gi&&em(i,pu,n),et(a,Gt)&&et(a[Gt],t)&&(a[Gt][t]=!1);var o=jx(1,n);try{Zx(a,t,o)}catch(s){if(!_instanceof(s,Jse))throw s;nq(a,t,o)}};return Ps&&Xx&&Zx(gi,t,{configurable:!0,set:i}),Yx(t,e)},du=Do[hu],Kx(du,"toString",function(){return V3(this).tag}),Kx(Do,"withoutSetter",function(r){return Yx(K3(r),r)}),Z3.f=$x,X3.f=Hg,Ose.f=im,j3.f=aq,Rse.f=z3.f=oq,Nse.f=sq,Use.f=function(r){return Yx(Mse(r),r)},Ps&&(Tse(du,"description",{configurable:!0,get:function get(){return V3(this).description}}),qse||Kx(gi,"propertyIsEnumerable",$x,{unsafe:!0})));Mg({global:!0,constructor:!0,wrap:!0,forced:!Ms,sham:!Ms},{Symbol:Do});Gg(Y3(Yse),function(r){Gse(r)});Mg({target:Lg,stat:!0,forced:!Ms},{useSetter:function useSetter(){Xx=!0},useSimple:function useSimple(){Xx=!1}});Mg({target:"Object",stat:!0,forced:!Ms,sham:!Ps},{create:zse,defineProperty:Hg,defineProperties:im,getOwnPropertyDescriptor:aq});Mg({target:"Object",stat:!0,forced:!Ms},{getOwnPropertyNames:oq});Lse();Hse(Do,Lg);$3[Gt]=!0});var nm=I(function(pnr,cq){"use strict";var jse=ha();cq.exports=jse&&!!Symbol.for&&!!Symbol.keyFor});var lq=I(function(){"use strict";var Xse=k(),Zse=we(),$se=Se(),eAe=Ee(),uq=wo(),rAe=nm(),am=uq("string-to-symbol-registry"),tAe=uq("symbol-to-string-registry");Xse({target:"Symbol",stat:!0,forced:!rAe},{for:function _for(r){var e=eAe(r);if($se(am,e))return am[e];var t=Zse("Symbol")(e);return am[e]=t,tAe[t]=e,t}})});var gq=I(function(){"use strict";var iAe=k(),nAe=Se(),aAe=Ia(),oAe=pa(),sAe=wo(),AAe=nm(),fq=sAe("symbol-to-string-registry");iAe({target:"Symbol",stat:!0,forced:!AAe},{keyFor:function keyFor(e){if(!aAe(e))throw new TypeError(oAe(e)+" is not a symbol");if(nAe(fq,e))return fq[e]}})});var Lt=I(function(Bnr,pq){"use strict";var cAe=Ds(),Iq=Function.prototype,dq=Iq.apply,hq=Iq.call;pq.exports=(typeof Reflect==="undefined"?"undefined":_type_of(Reflect))=="object"&&Reflect.apply||(cAe?hq.bind(dq):function(){return hq.apply(dq,arguments)})});var om=I(function(Enr,xq){"use strict";var uAe=me(),lAe=lr().get;xq.exports=function(e){if(!uAe(e))return!1;var t=lAe(e);return!!t&&t.type==="RawJSON"}});var Am=I(function(ynr,Bq){"use strict";var sm=Y(),fAe=Se(),Wg=SyntaxError,gAe=parseInt,dAe=String.fromCharCode,hAe=sm("".charAt),mq=sm("".slice),vq=sm(/./.exec),Cq={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},IAe=/^[\da-f]{4}$/i,pAe=/^[\u0000-\u001F]$/;Bq.exports=function(r,e){for(var t=!0,i="";e<r.length;){var n=hAe(r,e);if(n==="\\"){var a=mq(r,e,e+2);if(fAe(Cq,a))i+=Cq[a],e+=2;else if(a==="\\u"){e+=2;var o=mq(r,e,e+4);if(!vq(IAe,o))throw new Wg("Bad Unicode escape at: "+e);i+=dAe(gAe(o,16)),e+=4}else throw new Wg('Unknown escape sequence: "'+a+'"')}else if(n==='"'){t=!1,e++;break}else{if(vq(pAe,n))throw new Wg("Bad control character in string literal at: "+e);i+=n,e++}}if(t)throw new Wg("Unterminated string at: "+e);return{value:i,end:e}}});var Jg=I(function(Qnr,Eq){"use strict";var xAe=W();Eq.exports=!xAe(function(){var r="9007199254740993",e=JSON.rawJSON(r);return!JSON.isRawJSON(e)||JSON.stringify(e)!==r})});var dm=I(function(){"use strict";var mAe=k(),Dq=we(),vAe=Lt(),Fq=ge(),ko=Y(),kq=W(),yq=en(),Vg=ke(),CAe=om(),Qq=Ia(),bq=st(),BAe=Ee(),EAe=ei(),yAe=Am(),QAe=xa(),bAe=ha(),cm=Jg(),Rq=String,Ea=Dq("JSON","stringify"),Kg=ko(/./.exec),lm=ko("".charAt),wAe=ko("".charCodeAt),SAe=ko("".replace),um=ko("".slice),fm=ko([].push),_Ae=ko(1.1.toString),qAe=/[\uD800-\uDFFF]/g,wq=/^[\uD800-\uDBFF]$/,Sq=/^[\uDC00-\uDFFF]$/,gm=QAe(),_q=gm.length,Nq=!bAe||kq(function(){var r=Dq("Symbol")("stringify detection");return Ea([r])!=="[null]"||Ea({a:r})!=="{}"||Ea(Object(r))!=="{}"}),qq=kq(function(){return Ea("\uDF06\uD834")!=='"\\udf06\\ud834"'||Ea("\uDEAD")!=='"\\udead"'}),DAe=Nq?function DAe(r,e){var t=EAe(arguments),i=Oq(e);if(!(!Vg(i)&&(r===void 0||Qq(r))))return t[1]=function(n,a){if(Vg(i)&&(a=Fq(i,this,Rq(n),a)),!Qq(a))return a},vAe(Ea,null,t)}:Ea,FAe=function FAe(r,e,t){var i=lm(t,e-1),n=lm(t,e+1);return Kg(wq,r)&&!Kg(Sq,n)||Kg(Sq,r)&&!Kg(wq,i)?"\\u"+_Ae(wAe(r,0),16):r},Oq=function Oq(r){if(Vg(r))return r;if(yq(r)){for(var e=r.length,t=[],i=0;i<e;i++){var n=r[i];typeof n=="string"?fm(t,n):(typeof n=="number"||bq(n)==="Number"||bq(n)==="String")&&fm(t,BAe(n))}var a=t.length,o=!0;return function(s,A){if(o)return o=!1,A;if(yq(this))return A;for(var u=0;u<a;u++)if(t[u]===s)return A}}};Ea&&mAe({target:"JSON",stat:!0,arity:3,forced:Nq||qq||!cm},{stringify:function stringify(e,t,i){var n=Oq(t),a=[],o=DAe(e,function(g,h){var d=Vg(n)?Fq(n,this,Rq(g),h):h;return!cm&&CAe(d)?gm+(fm(a,d.rawJSON)-1):d},i);if(typeof o!="string"||(qq&&(o=SAe(o,qAe,FAe)),cm))return o;for(var s="",A=o.length,u=0;u<A;u++){var c=lm(o,u);if(c==='"'){var l=yAe(o,++u).end-1,f=um(o,u,l);s+=um(f,0,_q)===gm?a[um(f,_q)]:'"'+f+'"',u=l}else s+=c}return s}})});var Pq=I(function(){"use strict";var kAe=k(),RAe=ha(),NAe=W(),Tq=uu(),OAe=He(),TAe=!RAe||NAe(function(){Tq.f(1)});kAe({target:"Object",stat:!0,forced:TAe},{getOwnPropertySymbols:function getOwnPropertySymbols(e){var t=Tq.f;return t?t(OAe(e)):[]}})});var Mq=I(function(){"use strict";Aq();lq();gq();dm();Pq()});var Kq=I(function(){"use strict";var PAe=k(),MAe=xe(),UAe=te(),Yg=Y(),GAe=Se(),LAe=ke(),HAe=pt(),WAe=Ee(),JAe=_r(),KAe=qo(),_n=UAe.Symbol,Ro=_n&&_n.prototype;MAe&&LAe(_n)&&(!("description"in Ro)||_n().description!==void 0)&&(hm={},xu=function xu(){var e=arguments.length<1||arguments[0]===void 0?void 0:WAe(arguments[0]),t=HAe(Ro,this)?new _n(e):e===void 0?_n():_n(e);return e===""&&(hm[t]=!0),t},KAe(xu,_n),xu.prototype=Ro,Ro.constructor=xu,Uq=String(_n("description detection"))==="Symbol(description detection)",Gq=Yg(Ro.valueOf),Lq=Yg(Ro.toString),Hq=/^Symbol\((.*)\)[^)]+$/,Wq=Yg("".replace),Jq=Yg("".slice),JAe(Ro,"description",{configurable:!0,get:function get(){var e=Gq(this);if(GAe(hm,e))return"";var t=Lq(e),i=Uq?Jq(t,7,-1):Wq(t,Hq,"$1");return i===""?void 0:i}}),PAe({global:!0,constructor:!0,forced:!0},{Symbol:xu}));var hm,xu,Uq,Gq,Lq,Hq,Wq,Jq});var Vq=I(function(){"use strict";var VAe=te(),YAe=At(),zAe=ur().f,jAe=jr().f,Im=VAe.Symbol;YAe("asyncDispose");Im&&(mu=jAe(Im,"asyncDispose"),mu.enumerable&&mu.configurable&&mu.writable&&zAe(Im,"asyncDispose",{value:mu.value,enumerable:!1,configurable:!1,writable:!1}));var mu});var Yq=I(function(){"use strict";var XAe=At();XAe("asyncIterator")});var zq=I(function(){"use strict";var ZAe=te(),$Ae=At(),ece=ur().f,rce=jr().f,pm=ZAe.Symbol;$Ae("dispose");pm&&(vu=rce(pm,"dispose"),vu.enumerable&&vu.configurable&&vu.writable&&ece(pm,"dispose",{value:vu.value,enumerable:!1,configurable:!1,writable:!1}));var vu});var jq=I(function(){"use strict";var tce=At();tce("hasInstance")});var Xq=I(function(){"use strict";var ice=At();ice("isConcatSpreadable")});var Zq=I(function(){"use strict";var nce=At();nce("iterator")});var $q=I(function(){"use strict";var ace=At();ace("match")});var eD=I(function(){"use strict";var oce=At();oce("matchAll")});var rD=I(function(){"use strict";var sce=At();sce("replace")});var tD=I(function(){"use strict";var Ace=At();Ace("search")});var iD=I(function(){"use strict";var cce=At();cce("species")});var nD=I(function(){"use strict";var uce=At();uce("split")});var aD=I(function(){"use strict";var lce=At(),fce=Wx();lce("toPrimitive");fce()});var oD=I(function(){"use strict";var gce=we(),dce=At(),hce=Qt();dce("toStringTag");hce(gce("Symbol"),"Symbol")});var sD=I(function(){"use strict";var Ice=At();Ice("unscopables")});var Cu=I(function(uar,AD){"use strict";var pce=Y(),xce=_e();AD.exports=function(r,e,t){try{return pce(xce(Object.getOwnPropertyDescriptor(r,e)[t]))}catch(i){}}});var xm=I(function(lar,cD){"use strict";var mce=me();cD.exports=function(r){return mce(r)||r===null}});var mm=I(function(far,uD){"use strict";var vce=xm(),Cce=String,Bce=TypeError;uD.exports=function(r){if(vce(r))return r;throw new Bce("Can't set "+Cce(r)+" as a prototype")}});var di=I(function(gar,lD){"use strict";var Ece=Cu(),yce=me(),Qce=hr(),bce=mm();lD.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=Ece(Object.prototype,"__proto__","set"),t(e,[]),r=_instanceof(e,Array)}catch(i){}return function(n,a){return Qce(n),bce(a),yce(n)&&(r?t(n,a):n.__proto__=a),n}}():void 0)});var vm=I(function(dar,fD){"use strict";var wce=ur().f;fD.exports=function(r,e,t){t in r||wce(r,t,{configurable:!0,get:function get(){return e[t]},set:function set(i){e[t]=i}})}});var ya=I(function(har,dD){"use strict";var Sce=ke(),_ce=me(),gD=di();dD.exports=function(r,e,t){var i,n;return gD&&Sce(i=e.constructor)&&i!==t&&_ce(n=i.prototype)&&n!==t.prototype&&gD(r,n),r}});var No=I(function(Iar,hD){"use strict";var qce=Ee();hD.exports=function(r,e){return r===void 0?arguments.length<2?"":e:qce(r)}});var Cm=I(function(par,ID){"use strict";var Dce=me(),Fce=Xr();ID.exports=function(r,e){Dce(e)&&"cause"in e&&Fce(r,"cause",e.cause)}});var zg=I(function(xar,mD){"use strict";var kce=Y(),pD=Error,Rce=kce("".replace),Nce=function(r){return String(new pD(r).stack)}("zxcasd"),xD=/\n\s*at [^:]*:[^\n]*/,Oce=xD.test(Nce);mD.exports=function(r,e){if(Oce&&typeof r=="string"&&!pD.prepareStackTrace)for(;e--;)r=Rce(r,xD,"");return r}});var Bm=I(function(mar,vD){"use strict";var Tce=W(),Pce=Tt();vD.exports=!Tce(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",Pce(1,7)),r.stack!==7):!0})});var jg=I(function(Car,BD){"use strict";var Mce=Xr(),Uce=zg(),Gce=Bm(),CD=Error.captureStackTrace;BD.exports=function(r,e,t,i){Gce&&(CD?CD(r,e):Mce(r,"stack",Uce(t,i)))}});var Em=I(function(Bar,_D){"use strict";var ED=we(),Lce=Se(),yD=Xr(),Hce=pt(),QD=di(),bD=qo(),wD=vm(),Wce=ya(),Jce=No(),Kce=Cm(),Vce=jg(),Yce=xe(),SD=Je();_D.exports=function(r,e,t,i){var n="stackTraceLimit",a=i?2:1,o=r.split("."),s=o[o.length-1],A=ED.apply(null,o);if(A){var u=A.prototype;if(!SD&&Lce(u,"cause")&&delete u.cause,!t)return A;var c=ED("Error"),l=e(function(f,g){var h=Jce(i?g:f,void 0),d=i?new A(f):new A;return h!==void 0&&yD(d,"message",h),Vce(d,l,d.stack,2),this&&Hce(u,this)&&Wce(d,this,l),arguments.length>a&&Kce(d,arguments[a]),d});if(l.prototype=u,s!=="Error"?QD?QD(l,c):bD(l,c,{name:!0}):Yce&&n in A&&(wD(l,A,n),wD(l,A,"prepareStackTrace")),bD(l,A),!SD)try{u.name!==s&&yD(u,"name",s),u.constructor=l}catch(f){}return l}}});var kD=I(function(){"use strict";var DD=k(),zce=te(),rn=Lt(),FD=Em(),ym="WebAssembly",qD=zce[ym],Xg=new Error("e",{cause:7}).cause!==7,Oo=function Oo(r,e){var t={};t[r]=FD(r,e,Xg),DD({global:!0,constructor:!0,arity:1,forced:Xg},t)},Qm=function Qm(r,e){if(qD&&qD[r]){var t={};t[r]=FD(ym+"."+r,e,Xg),DD({target:ym,stat:!0,constructor:!0,arity:1,forced:Xg},t)}};Oo("Error",function(r){return function(t){return rn(r,this,arguments)}});Oo("EvalError",function(r){return function(t){return rn(r,this,arguments)}});Oo("RangeError",function(r){return function(t){return rn(r,this,arguments)}});Oo("ReferenceError",function(r){return function(t){return rn(r,this,arguments)}});Oo("SyntaxError",function(r){return function(t){return rn(r,this,arguments)}});Oo("TypeError",function(r){return function(t){return rn(r,this,arguments)}});Oo("URIError",function(r){return function(t){return rn(r,this,arguments)}});Qm("CompileError",function(r){return function(t){return rn(r,this,arguments)}});Qm("LinkError",function(r){return function(t){return rn(r,this,arguments)}});Qm("RuntimeError",function(r){return function(t){return rn(r,this,arguments)}})});var TD=I(function(){"use strict";var jce=k(),ND=we(),Xce=me(),Zce=Mt(),$ce=W(),OD="Error",wm="DOMException",eue=Object.setPrototypeOf||({}).__proto__,RD=ND(wm),bm=Error,Zg=bm.isError,rue=!Zg||!eue||$ce(function(){return RD&&!Zg(new RD(wm))||!Zg(new bm(OD,{cause:function cause(){}}))||Zg(ND("Object","create")(bm.prototype))});jce({target:"Error",stat:!0,sham:!0,forced:rue},{isError:function isError(e){if(!Xce(e))return!1;var t=Zce(e);return t===OD||t===wm}})});var Sm=I(function(war,MD){"use strict";var tue=xe(),iue=W(),nue=he(),PD=No(),$g=Error.prototype.toString,aue=iue(function(){if(tue){var r=Object.create(Object.defineProperty({},"name",{get:function get(){return this===r}}));if($g.call(r)!=="true")return!0}return $g.call({message:1,name:2})!=="2: 1"||$g.call({})!=="Error"});MD.exports=aue?function(){var e=nue(this),t=PD(e.name,"Error"),i=PD(e.message);return t?i?t+": "+i:t:i}:$g});var LD=I(function(){"use strict";var oue=$e(),UD=Sm(),GD=Error.prototype;GD.toString!==UD&&oue(GD,"toString",UD)});var ed=I(function(qar,HD){"use strict";var sue=W();HD.exports=!sue(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})});var xt=I(function(Dar,JD){"use strict";var Aue=Se(),cue=ke(),uue=He(),lue=Au(),fue=ed(),WD=lue("IE_PROTO"),_m=Object,gue=_m.prototype;JD.exports=fue?_m.getPrototypeOf:function(r){var e=uue(r);if(Aue(e,WD))return e[WD];var t=e.constructor;return cue(t)&&_instanceof(e,t)?t.prototype:_instanceof(e,_m)?gue:null}});var Gs=I(function(Far,KD){"use strict";KD.exports={}});var rd=I(function(kar,VD){"use strict";var due=ve(),hue=Gs(),Iue=due("iterator"),pue=Array.prototype;VD.exports=function(r){return r!==void 0&&(hue.Array===r||pue[Iue]===r)}});var qn=I(function(Rar,zD){"use strict";var xue=Mt(),YD=zr(),mue=Zi(),vue=Gs(),Cue=ve(),Bue=Cue("iterator");zD.exports=function(r){if(!mue(r))return YD(r,Bue)||YD(r,"@@iterator")||vue[xue(r)]}});var To=I(function(Nar,jD){"use strict";var Eue=ge(),yue=_e(),Que=he(),bue=pa(),wue=qn(),Sue=TypeError;jD.exports=function(r,e){var t=arguments.length<2?wue(r):e;if(yue(t))return Que(Eue(t,r));throw new Sue(bue(r)+" is not iterable")}});var rt=I(function(Oar,ZD){"use strict";var _ue=ge(),XD=he(),que=zr();ZD.exports=function(r,e,t){var i,n;XD(r);try{if(i=que(r,"return"),!i){if(e==="throw")throw t;return t}i=_ue(i,r)}catch(a){n=!0,i=a}if(e==="throw")throw t;if(n)throw i;return XD(i),t}});var Pr=I(function(Tar,tF){"use strict";var Due=Ut(),Fue=ge(),kue=he(),Rue=pa(),Nue=rd(),Oue=er(),$D=pt(),Tue=To(),Pue=qn(),eF=rt(),Mue=TypeError,td=function td(r,e){this.stopped=r,this.result=e},rF=td.prototype;tF.exports=function(r,e,t){var i=t&&t.that,n=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),A=Due(e,i),u,c,l,f,g,h,d,p=function p(x){return u&&eF(u,"normal"),new td(!0,x)},m=function m(x){return n?(kue(x),s?A(x[0],x[1],p):A(x[0],x[1])):s?A(x,p):A(x)};if(a)u=r.iterator;else if(o)u=r;else{if(c=Pue(r),!c)throw new Mue(Rue(r)+" is not iterable");if(Nue(c)){for(l=0,f=Oue(r);f>l;l++)if(g=m(r[l]),g&&$D(rF,g))return g;return new td(!1)}u=Tue(r,c)}for(h=a?r.next:u.next;!(d=Fue(h,u)).done;){try{g=m(d.value)}catch(x){eF(u,"throw",x)}if((typeof g==="undefined"?"undefined":_type_of(g))=="object"&&g&&$D(rF,g))return g}return new td(!1)}});var nF=I(function(){"use strict";var Uue=k(),Gue=pt(),Lue=xt(),id=di(),Hue=qo(),iF=Zr(),qm=Xr(),Dm=Tt(),Wue=Cm(),Jue=jg(),Kue=Pr(),Vue=No(),Yue=ve(),zue=Yue("toStringTag"),nd=Error,jue=[].push,Ls=function Ls1(e,t){var i=Gue(Fm,this),n;id?n=id(new nd,i?Lue(this):Fm):(n=i?this:iF(Fm),qm(n,zue,"Error")),t!==void 0&&qm(n,"message",Vue(t)),Jue(n,Ls,n.stack,1),arguments.length>2&&Wue(n,arguments[2]);var a=[];return Kue(e,jue,{that:a}),qm(n,"errors",a),n};id?id(Ls,nd):Hue(Ls,nd,{name:!0});var Fm=Ls.prototype=iF(nd.prototype,{constructor:Dm(1,Ls),message:Dm(1,""),name:Dm(1,"AggregateError")});Uue({global:!0,constructor:!0,arity:2},{AggregateError:Ls})});var aF=I(function(){"use strict";nF()});var cF=I(function(){"use strict";var Xue=k(),Zue=we(),$ue=Lt(),oF=W(),ele=Em(),km="AggregateError",sF=Zue(km),AF=!oF(function(){return sF([1]).errors[0]!==1})&&oF(function(){return sF([1],km,{cause:7}).cause!==7});Xue({global:!0,constructor:!0,arity:2,forced:AF},{AggregateError:ele(km,function(r){return function(t,i){return $ue(r,this,arguments)}},AF,!0)})});var fF=I(function(){"use strict";var rle=k(),tle=te(),ile=pt(),uF=xt(),od=di(),nle=qo(),lF=Zr(),ad=Xr(),Rm=Tt(),ale=jg(),ole=No(),sle=ve(),Ale=W(),cle=Je(),Hs=tle.SuppressedError,ule=sle("toStringTag"),sd=Error,lle=!!Hs&&Hs.length!==3,fle=!!Hs&&Ale(function(){return new Hs(1,2,3,{cause:4}).cause===4}),Ad=lle||fle,Po=function Po1(e,t,i){var n=ile(Bu,this),a;return od?a=Ad&&(!n||uF(this)===Bu)?new Hs:od(new sd,n?uF(this):Bu):(a=n?this:lF(Bu),ad(a,ule,"Error")),i!==void 0&&ad(a,"message",ole(i)),ale(a,Po,a.stack,1),ad(a,"error",e),ad(a,"suppressed",t),a};od?od(Po,sd):nle(Po,sd,{name:!0});var Bu=Po.prototype=Ad?Hs.prototype:lF(sd.prototype,{constructor:Rm(1,Po),message:Rm(1,""),name:Rm(1,"SuppressedError")});Ad&&!cle&&(Bu.constructor=Po);rle({global:!0,constructor:!0,arity:3,forced:Ad},{SuppressedError:Po})});var bt=I(function(Kar,gF){"use strict";var gle=ve(),dle=Zr(),hle=ur().f,Nm=gle("unscopables"),Om=Array.prototype;Om[Nm]===void 0&&hle(Om,Nm,{configurable:!0,value:dle(null)});gF.exports=function(r){Om[Nm][r]=!0}});var dF=I(function(){"use strict";var Ile=k(),ple=He(),xle=er(),mle=Br(),vle=bt();Ile({target:"Array",proto:!0},{at:function at1(e){var t=ple(this),i=xle(t),n=mle(e),a=n>=0?n:i+n;return a<0||a>=i?void 0:t[a]}});vle("at")});var Qa=I(function(zar,hF){"use strict";var Cle=TypeError,Ble=0x1fffffffffffff;hF.exports=function(r){if(r>Ble)throw Cle("Maximum allowed index exceeded");return r}});var ri=I(function(jar,IF){"use strict";var Ele=xe(),yle=ur(),Qle=Tt();IF.exports=function(r,e,t){Ele?yle.f(r,e,Qle(0,t)):r[e]=t}});var Ws=I(function(Xar,pF){"use strict";var ble=W(),wle=ve(),Sle=Ri(),_le=wle("species");pF.exports=function(r){return Sle>=51||!ble(function(){var e=[],t=e.constructor={};return t[_le]=function(){return{foo:1}},e[r](Boolean).foo!==1})}});var CF=I(function(){"use strict";var qle=k(),Dle=W(),Fle=en(),kle=me(),Rle=He(),Nle=er(),xF=Qa(),mF=ri(),Ole=Ts(),Tle=Ws(),Ple=ve(),Mle=Ri(),vF=Ple("isConcatSpreadable"),Ule=Mle>=51||!Dle(function(){var r=[];return r[vF]=!1,r.concat()[0]!==r}),Gle=function Gle(r){if(!kle(r))return!1;var e=r[vF];return e!==void 0?!!e:Fle(r)},Lle=!Ule||!Tle("concat");qle({target:"Array",proto:!0,arity:1,forced:Lle},{concat:function concat(e){var t=Rle(this),i=Ole(t,0),n=0,a,o,s,A,u;for(a=-1,s=arguments.length;a<s;a++)if(u=a===-1?t:arguments[a],Gle(u))for(A=Nle(u),xF(n+A),o=0;o<A;o++,n++)o in u&&mF(i,n,u[o]);else xF(n+1),mF(i,n++,u);return i.length=n,i}})});var Eu=I(function(eor,EF){"use strict";var BF=pa(),Hle=TypeError;EF.exports=function(r,e){if(!delete r[e])throw new Hle("Cannot delete property "+BF(e)+" of "+BF(r))}});var Pm=I(function(ror,yF){"use strict";var Wle=He(),Tm=$i(),Jle=er(),Kle=Eu(),Vle=Math.min;yF.exports=[].copyWithin||function(e,t){var i=Wle(this),n=Jle(i),a=Tm(e,n),o=Tm(t,n),s=arguments.length>2?arguments[2]:void 0,A=Vle((s===void 0?n:Tm(s,n))-o,n-a),u=1;for(o<a&&a<o+A&&(u=-1,o+=A-1,a+=A-1);A-- >0;)o in i?i[a]=i[o]:Kle(i,a),a+=u,o+=u;return i}});var QF=I(function(){"use strict";var Yle=k(),zle=Pm(),jle=bt();Yle({target:"Array",proto:!0},{copyWithin:zle});jle("copyWithin")});var tn=I(function(nor,bF){"use strict";var Xle=W();bF.exports=function(r,e){var t=[][r];return!!t&&Xle(function(){t.call(null,e||function(){return 1},1)})}});var wF=I(function(){"use strict";var Zle=k(),$le=$r().every,efe=tn(),rfe=efe("every");Zle({target:"Array",proto:!0,forced:!rfe},{every:function every(e){return $le(this,e,arguments.length>1?arguments[1]:void 0)}})});var cd=I(function(sor,_F){"use strict";var tfe=He(),SF=$i(),ife=er();_F.exports=function(e){for(var t=tfe(this),i=ife(t),n=arguments.length,a=SF(n>1?arguments[1]:void 0,i),o=n>2?arguments[2]:void 0,s=o===void 0?i:SF(o,i);s>a;)t[a++]=e;return t}});var qF=I(function(){"use strict";var nfe=k(),afe=cd(),ofe=bt();nfe({target:"Array",proto:!0},{fill:afe});ofe("fill")});var DF=I(function(){"use strict";var sfe=k(),Afe=$r().filter,cfe=Ws(),ufe=cfe("filter");sfe({target:"Array",proto:!0,forced:!ufe},{filter:function filter(e){return Afe(this,e,arguments.length>1?arguments[1]:void 0)}})});var kF=I(function(){"use strict";var lfe=k(),ffe=$r().find,gfe=bt(),Mm="find",FF=!0;Mm in[]&&Array(1)[Mm](function(){FF=!1});lfe({target:"Array",proto:!0,forced:FF},{find:function find(e){return ffe(this,e,arguments.length>1?arguments[1]:void 0)}});gfe(Mm)});var NF=I(function(){"use strict";var dfe=k(),hfe=$r().findIndex,Ife=bt(),Um="findIndex",RF=!0;Um in[]&&Array(1)[Um](function(){RF=!1});dfe({target:"Array",proto:!0,forced:RF},{findIndex:function findIndex(e){return hfe(this,e,arguments.length>1?arguments[1]:void 0)}});Ife(Um)});var yu=I(function(por,TF){"use strict";var pfe=Ut(),xfe=bo(),mfe=He(),vfe=er(),OF=function OF(r){var e=r===1;return function(t,i,n){for(var a=mfe(t),o=xfe(a),s=vfe(o),A=pfe(i,n),u,c;s-- >0;)if(u=o[s],c=A(u,s,a),c)switch(r){case 0:return u;case 1:return s}return e?-1:void 0}};TF.exports={findLast:OF(0),findLastIndex:OF(1)}});var PF=I(function(){"use strict";var Cfe=k(),Bfe=yu().findLast,Efe=bt();Cfe({target:"Array",proto:!0},{findLast:function findLast(e){return Bfe(this,e,arguments.length>1?arguments[1]:void 0)}});Efe("findLast")});var MF=I(function(){"use strict";var yfe=k(),Qfe=yu().findLastIndex,bfe=bt();yfe({target:"Array",proto:!0},{findLastIndex:function findLastIndex(e){return Qfe(this,e,arguments.length>1?arguments[1]:void 0)}});bfe("findLastIndex")});var Gm=I(function(Bor,GF){"use strict";var wfe=en(),Sfe=er(),_fe=Qa(),qfe=Ut(),UF=function UF1(r,e,t,i,n,a,o,s){for(var A=n,u=0,c=o?qfe(o,s):!1,l,f;u<i;)u in t&&(l=c?c(t[u],u,e):t[u],a>0&&wfe(l)?(f=Sfe(l),A=UF(r,e,l,f,A,a-1)-1):(_fe(A+1),r[A]=l),A++),u++;return A};GF.exports=UF});var LF=I(function(){"use strict";var Dfe=k(),Ffe=Gm(),kfe=He(),Rfe=er(),Nfe=Br(),Ofe=Ts();Dfe({target:"Array",proto:!0},{flat:function flat(){var e=arguments.length?arguments[0]:void 0,t=kfe(this),i=Rfe(t),n=Ofe(t,0);return n.length=Ffe(n,t,t,i,0,e===void 0?1:Nfe(e)),n}})});var HF=I(function(){"use strict";var Tfe=k(),Pfe=Gm(),Mfe=_e(),Ufe=He(),Gfe=er(),Lfe=Ts();Tfe({target:"Array",proto:!0},{flatMap:function flatMap(e){var t=Ufe(this),i=Gfe(t),n;return Mfe(e),n=Lfe(t,0),n.length=Pfe(n,t,t,i,0,1,e,arguments.length>1?arguments[1]:void 0),n}})});var Lm=I(function(wor,WF){"use strict";var Hfe=$r().forEach,Wfe=tn(),Jfe=Wfe("forEach");WF.exports=Jfe?[].forEach:function(e){return Hfe(this,e,arguments.length>1?arguments[1]:void 0)}});var KF=I(function(){"use strict";var Kfe=k(),JF=Lm();Kfe({target:"Array",proto:!0,forced:[].forEach!==JF},{forEach:JF})});var ud=I(function(qor,VF){"use strict";var Vfe=he(),Yfe=rt();VF.exports=function(r,e,t,i){try{return i?e(Vfe(t)[0],t[1]):e(t)}catch(n){Yfe(r,"throw",n)}}});var Hm=I(function(Dor,jF){"use strict";var zfe=Ut(),jfe=ge(),Xfe=He(),Zfe=ud(),$fe=rd(),ege=Ca(),rge=er(),YF=ri(),tge=To(),ige=qn(),zF=Array;jF.exports=function(e){var t=Xfe(e),i=ege(this),n=arguments.length,a=n>1?arguments[1]:void 0,o=a!==void 0;o&&(a=zfe(a,n>2?arguments[2]:void 0));var s=ige(t),A=0,u,c,l,f,g,h;if(s&&!(this===zF&&$fe(s)))for(c=i?new this:[],f=tge(t,s),g=f.next;!(l=jfe(g,f)).done;A++)h=o?Zfe(f,a,[l.value,A],!0):l.value,YF(c,A,h);else for(u=rge(t),c=i?new this(u):zF(u);u>A;A++)h=o?a(t[A],A):t[A],YF(c,A,h);return c.length=A,c}});var Qu=I(function(For,e2){"use strict";var nge=ve(),ZF=nge("iterator"),$F=!1;try{XF=0,Wm={next:function next(){return{done:!!XF++}},return:function _return(){$F=!0}},Wm[ZF]=function(){return this},Array.from(Wm,function(){throw 2})}catch(r){}var XF,Wm;e2.exports=function(r,e){try{if(!e&&!$F)return!1}catch(n){return!1}var t=!1;try{var i={};i[ZF]=function(){return{next:function next(){return{done:t=!0}}}},r(i)}catch(n){}return t}});var r2=I(function(){"use strict";var age=k(),oge=Hm(),sge=Qu(),Age=!sge(function(r){Array.from(r)});age({target:"Array",stat:!0,forced:Age},{from:oge})});var t2=I(function(){"use strict";var cge=k(),uge=Rs().includes,lge=W(),fge=bt(),gge=lge(function(){return!Array(1).includes()});cge({target:"Array",proto:!0,forced:gge},{includes:function includes(e){return uge(this,e,arguments.length>1?arguments[1]:void 0)}});fge("includes")});var n2=I(function(){"use strict";var dge=k(),hge=va(),Ige=Rs().indexOf,pge=tn(),Jm=hge([].indexOf),i2=!!Jm&&1/Jm([1],1,-0)<0,xge=i2||!pge("indexOf");dge({target:"Array",proto:!0,forced:xge},{indexOf:function indexOf(e){var t=arguments.length>1?arguments[1]:void 0;return i2?Jm(this,e,t)||0:Ige(this,e,t)}})});var a2=I(function(){"use strict";var mge=k(),vge=en();mge({target:"Array",stat:!0},{isArray:vge})});var Mo=I(function(Gor,A2){"use strict";var Cge=W(),Bge=ke(),Ege=me(),yge=Zr(),o2=xt(),Qge=$e(),bge=ve(),wge=Je(),Ym=bge("iterator"),s2=!1,Dn,Km,Vm;[].keys&&(Vm=[].keys(),"next"in Vm?(Km=o2(o2(Vm)),Km!==Object.prototype&&(Dn=Km)):s2=!0);var Sge=!Ege(Dn)||Cge(function(){var r={};return Dn[Ym].call(r)!==r});Sge?Dn={}:wge&&(Dn=yge(Dn));Bge(Dn[Ym])||Qge(Dn,Ym,function(){return this});A2.exports={IteratorPrototype:Dn,BUGGY_SAFARI_ITERATORS:s2}});var ld=I(function(Lor,c2){"use strict";var _ge=Mo().IteratorPrototype,qge=Zr(),Dge=Tt(),Fge=Qt(),kge=Gs(),Rge=function Rge(){return this};c2.exports=function(r,e,t,i){var n=e+" Iterator";return r.prototype=qge(_ge,{next:Dge(+!i,t)}),Fge(r,n,!1,!0),kge[n]=Rge,r}});var dd=I(function(Hor,m2){"use strict";var Nge=k(),Oge=ge(),fd=Je(),p2=So(),Tge=ke(),Pge=ld(),u2=xt(),l2=di(),Mge=Qt(),Uge=Xr(),zm=$e(),Gge=ve(),f2=Gs(),x2=Mo(),Lge=p2.PROPER,Hge=p2.CONFIGURABLE,g2=x2.IteratorPrototype,gd=x2.BUGGY_SAFARI_ITERATORS,bu=Gge("iterator"),d2="keys",wu="values",h2="entries",I2=function I2(){return this};m2.exports=function(r,e,t,i,n,a,o){Pge(t,e,i);var s=function s(m){if(m===n&&f)return f;if(!gd&&m&&m in c)return c[m];switch(m){case d2:return function(){return new t(this,m)};case wu:return function(){return new t(this,m)};case h2:return function(){return new t(this,m)}}return function(){return new t(this)}},A=e+" Iterator",u=!1,c=r.prototype,l=c[bu]||c["@@iterator"]||n&&c[n],f=!gd&&l||s(n),g=e==="Array"&&c.entries||l,h,d,p;if(g&&(h=u2(g.call(new r)),h!==Object.prototype&&h.next&&(!fd&&u2(h)!==g2&&(l2?l2(h,g2):Tge(h[bu])||zm(h,bu,I2)),Mge(h,A,!0,!0),fd&&(f2[A]=I2))),Lge&&n===wu&&l&&l.name!==wu&&(!fd&&Hge?Uge(c,"name",wu):(u=!0,f=function f(){return Oge(l,this)})),n)if(d={values:s(wu),keys:a?f:s(d2),entries:s(h2)},o)for(p in d)(gd||u||!(p in c))&&zm(c,p,d[p]);else Nge({target:e,proto:!0,forced:gd||u},d);return(!fd||o)&&c[bu]!==f&&zm(c,bu,f,{name:n}),f2[e]=f,d}});var ba=I(function(Wor,v2){"use strict";v2.exports=function(r,e){return{value:r,done:e}}});var Su=I(function(Jor,Q2){"use strict";var Wge=Wr(),jm=bt(),C2=Gs(),E2=lr(),Jge=ur().f,Kge=dd(),hd=ba(),Vge=Je(),Yge=xe(),y2="Array Iterator",zge=E2.set,jge=E2.getterFor(y2);Q2.exports=Kge(Array,"Array",function(r,e){zge(this,{type:y2,target:Wge(r),index:0,kind:e})},function(){var r=jge(this),e=r.target,t=r.index++;if(!e||t>=e.length)return r.target=null,hd(void 0,!0);switch(r.kind){case"keys":return hd(t,!1);case"values":return hd(e[t],!1)}return hd([t,e[t]],!1)},"values");var B2=C2.Arguments=C2.Array;jm("keys");jm("values");jm("entries");if(!Vge&&Yge&&B2.name!=="values")try{Jge(B2,"name",{value:"values"})}catch(r){}});var b2=I(function(){"use strict";var Xge=k(),Zge=Y(),$ge=bo(),ede=Wr(),rde=tn(),tde=Zge([].join),ide=$ge!==Object,nde=ide||!rde("join",",");Xge({target:"Array",proto:!0,forced:nde},{join:function join(e){return tde(ede(this),e===void 0?",":e)}})});var Zm=I(function(Yor,S2){"use strict";var ade=Lt(),ode=Wr(),sde=Br(),Ade=er(),cde=tn(),ude=Math.min,Xm=[].lastIndexOf,w2=!!Xm&&1/[1].lastIndexOf(1,-0)<0,lde=cde("lastIndexOf"),fde=w2||!lde;S2.exports=fde?function(e){if(w2)return ade(Xm,this,arguments)||0;var t=ode(this),i=Ade(t);if(i===0)return-1;var n=i-1;for(arguments.length>1&&(n=ude(n,sde(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:Xm});var q2=I(function(){"use strict";var gde=k(),_2=Zm();gde({target:"Array",proto:!0,forced:_2!==[].lastIndexOf},{lastIndexOf:_2})});var D2=I(function(){"use strict";var dde=k(),hde=$r().map,Ide=Ws(),pde=Ide("map");dde({target:"Array",proto:!0,forced:!pde},{map:function map(e){return hde(this,e,arguments.length>1?arguments[1]:void 0)}})});var k2=I(function(){"use strict";var xde=k(),mde=W(),vde=Ca(),Cde=ri(),F2=Array,Bde=mde(function(){function r(){}return!_instanceof(F2.of.call(r),r)});xde({target:"Array",stat:!0,forced:Bde},{of:function of1(){for(var e=0,t=arguments.length,i=new(vde(this)?this:F2)(t);t>e;)Cde(i,e,arguments[e++]);return i.length=t,i}})});var Id=I(function(rsr,R2){"use strict";var Ede=xe(),yde=en(),Qde=TypeError,bde=Object.getOwnPropertyDescriptor,wde=Ede&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return _instanceof(r,TypeError)}}();R2.exports=wde?function(r,e){if(yde(r)&&!bde(r,"length").writable)throw new Qde("Cannot set read only .length");return r.length=e}:function(r,e){return r.length=e}});var N2=I(function(){"use strict";var Sde=k(),_de=He(),qde=er(),Dde=Id(),Fde=Qa(),kde=W(),Rde=kde(function(){return[].push.call({length:0x100000000},1)!==0x100000001}),Nde=function Nde(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(r){return _instanceof(r,TypeError)}},Ode=Rde||!Nde();Sde({target:"Array",proto:!0,arity:1,forced:Ode},{push:function push(e){var t=_de(this),i=qde(t),n=arguments.length;Fde(i+n);for(var a=0;a<n;a++)t[i]=arguments[a],i++;return Dde(t,i),i}})});var _u=I(function(nsr,M2){"use strict";var Tde=_e(),Pde=He(),Mde=bo(),Ude=er(),O2=TypeError,T2="Reduce of empty array with no initial value",P2=function P2(r){return function(e,t,i,n){var a=Pde(e),o=Mde(a),s=Ude(a);if(Tde(t),s===0&&i<2)throw new O2(T2);var A=r?s-1:0,u=r?-1:1;if(i<2)for(;;){if(A in o){n=o[A],A+=u;break}if(A+=u,r?A<0:s<=A)throw new O2(T2)}for(;r?A>=0:s>A;A+=u)A in o&&(n=t(n,o[A],A,a));return n}};M2.exports={left:P2(!1),right:P2(!0)}});var Du=I(function(asr,U2){"use strict";var qu=te(),Gde=Fi(),Lde=st(),pd=function pd(r){return Gde.slice(0,r.length)===r};U2.exports=function(){return pd("Bun/")?"BUN":pd("Cloudflare-Workers")?"CLOUDFLARE":pd("Deno/")?"DENO":pd("Node.js/")?"NODE":qu.Bun&&typeof Bun.version=="string"?"BUN":qu.Deno&&_type_of(Deno.version)=="object"?"DENO":Lde(qu.process)==="process"?"NODE":qu.window&&qu.document?"BROWSER":"REST"}()});var Uo=I(function(osr,G2){"use strict";var Hde=Du();G2.exports=Hde==="NODE"});var H2=I(function(){"use strict";var Wde=k(),Jde=_u().left,Kde=tn(),L2=Ri(),Vde=Uo(),Yde=!Vde&&L2>79&&L2<83,zde=Yde||!Kde("reduce");Wde({target:"Array",proto:!0,forced:zde},{reduce:function reduce(e){var t=arguments.length;return Jde(this,e,t,t>1?arguments[1]:void 0)}})});var J2=I(function(){"use strict";var jde=k(),Xde=_u().right,Zde=tn(),W2=Ri(),$de=Uo(),ehe=!$de&&W2>79&&W2<83,rhe=ehe||!Zde("reduceRight");jde({target:"Array",proto:!0,forced:rhe},{reduceRight:function reduceRight(e){return Xde(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})});var V2=I(function(){"use strict";var the=k(),ihe=Y(),nhe=en(),ahe=ihe([].reverse),K2=[1,2];the({target:"Array",proto:!0,forced:String(K2)===String(K2.reverse())},{reverse:function reverse(){return nhe(this)&&(this.length=this.length),ahe(this)}})});var j2=I(function(){"use strict";var ohe=k(),Y2=en(),she=Ca(),Ahe=me(),z2=$i(),che=er(),uhe=Wr(),lhe=ri(),fhe=ve(),ghe=Ws(),dhe=ei(),hhe=ghe("slice"),Ihe=fhe("species"),$m=Array,phe=Math.max;ohe({target:"Array",proto:!0,forced:!hhe},{slice:function slice(e,t){var i=uhe(this),n=che(i),a=z2(e,n),o=z2(t===void 0?n:t,n),s,A,u;if(Y2(i)&&(s=i.constructor,she(s)&&(s===$m||Y2(s.prototype))?s=void 0:Ahe(s)&&(s=s[Ihe],s===null&&(s=void 0)),s===$m||s===void 0))return dhe(i,a,o);for(A=new(s===void 0?$m:s)(phe(o-a,0)),u=0;a<o;a++,u++)a in i&&lhe(A,u,i[a]);return A.length=u,A}})});var X2=I(function(){"use strict";var xhe=k(),mhe=$r().some,vhe=tn(),Che=vhe("some");xhe({target:"Array",proto:!0,forced:!Che},{some:function some(e){return mhe(this,e,arguments.length>1?arguments[1]:void 0)}})});var xd=I(function(psr,$2){"use strict";var Z2=ei(),Bhe=Math.floor,ev=function ev1(r,e){var t=r.length;if(t<8)for(var i=1,n,a;i<t;){for(a=i,n=r[i];a&&e(r[a-1],n)>0;)r[a]=r[--a];a!==i++&&(r[a]=n)}else for(var o=Bhe(t/2),s=ev(Z2(r,0,o),e),A=ev(Z2(r,o),e),u=s.length,c=A.length,l=0,f=0;l<u||f<c;)r[l+f]=l<u&&f<c?e(s[l],A[f])<=0?s[l++]:A[f++]:l<u?s[l++]:A[f++];return r};$2.exports=ev});var rv=I(function(xsr,rk){"use strict";var Ehe=Fi(),ek=Ehe.match(/firefox\/(\d+)/i);rk.exports=!!ek&&+ek[1]});var tv=I(function(msr,tk){"use strict";var yhe=Fi();tk.exports=/MSIE|Trident/.test(yhe)});var md=I(function(vsr,nk){"use strict";var Qhe=Fi(),ik=Qhe.match(/AppleWebKit\/(\d+)\./);nk.exports=!!ik&&+ik[1]});var gk=I(function(){"use strict";var bhe=k(),lk=Y(),whe=_e(),She=He(),ak=er(),_he=Eu(),ok=Ee(),iv=W(),qhe=xd(),Dhe=tn(),sk=rv(),Fhe=tv(),Ak=Ri(),ck=md(),wa=[],uk=lk(wa.sort),khe=lk(wa.push),Rhe=iv(function(){wa.sort(void 0)}),Nhe=iv(function(){wa.sort(null)}),Ohe=Dhe("sort"),fk=!iv(function(){if(Ak)return Ak<70;if(!(sk&&sk>3)){if(Fhe)return!0;if(ck)return ck<603;var r="",e,t,i,n;for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)wa.push({k:t+n,v:i})}for(wa.sort(function(a,o){return o.v-a.v}),n=0;n<wa.length;n++)t=wa[n].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return r!=="DGBEFHACIJK"}}),The=Rhe||!Nhe||!Ohe||!fk,Phe=function Phe(r){return function(e,t){return t===void 0?-1:e===void 0?1:r!==void 0?+r(e,t)||0:ok(e)>ok(t)?1:-1}};bhe({target:"Array",proto:!0,forced:The},{sort:function sort(e){e!==void 0&&whe(e);var t=She(this);if(fk)return e===void 0?uk(t):uk(t,e);var i=[],n=ak(t),a,o;for(o=0;o<n;o++)o in t&&khe(i,t[o]);for(qhe(i,Phe(e)),a=ak(i),o=0;o<a;)t[o]=i[o++];for(;o<n;)_he(t,o++);return t}})});var Go=I(function(Esr,hk){"use strict";var Mhe=we(),Uhe=_r(),Ghe=ve(),Lhe=xe(),dk=Ghe("species");hk.exports=function(r){var e=Mhe(r);Lhe&&e&&!e[dk]&&Uhe(e,dk,{configurable:!0,get:function get(){return this}})}});var Ik=I(function(){"use strict";var Hhe=Go();Hhe("Array")});var pk=I(function(){"use strict";var Whe=k(),Jhe=He(),Khe=$i(),Vhe=Br(),Yhe=er(),zhe=Id(),jhe=Qa(),Xhe=Ts(),Zhe=ri(),nv=Eu(),$he=Ws(),eIe=$he("splice"),rIe=Math.max,tIe=Math.min;Whe({target:"Array",proto:!0,forced:!eIe},{splice:function splice(e,t){var i=Jhe(this),n=Yhe(i),a=Khe(e,n),o=arguments.length,s,A,u,c,l,f;for(o===0?s=A=0:o===1?(s=0,A=n-a):(s=o-2,A=tIe(rIe(Vhe(t),0),n-a)),jhe(n+s-A),u=Xhe(i,A),c=0;c<A;c++)l=a+c,l in i&&Zhe(u,c,i[l]);if(u.length=A,s<A){for(c=a;c<n-A;c++)l=c+A,f=c+s,l in i?i[f]=i[l]:nv(i,f);for(c=n;c>n-A+s;c--)nv(i,c-1)}else if(s>A)for(c=n-A;c>a;c--)l=c+A-1,f=c+s-1,l in i?i[f]=i[l]:nv(i,f);for(c=0;c<s;c++)i[c+a]=arguments[c+2];return zhe(i,n-A+s),u}})});var av=I(function(Ssr,xk){"use strict";var iIe=er();xk.exports=function(r,e){for(var t=iIe(r),i=new e(t),n=0;n<t;n++)i[n]=r[t-n-1];return i}});var mk=I(function(){"use strict";var nIe=k(),aIe=av(),oIe=Wr(),sIe=bt(),AIe=Array;nIe({target:"Array",proto:!0},{toReversed:function toReversed(){return aIe(oIe(this),AIe)}});sIe("toReversed")});var Js=I(function(Dsr,vk){"use strict";var cIe=er();vk.exports=function(r,e,t){for(var i=0,n=arguments.length>2?t:cIe(e),a=new r(n);n>i;)a[i]=e[i++];return a}});var ov=I(function(Fsr,Ck){"use strict";var uIe=te();Ck.exports=function(r,e){var t=uIe[r],i=t&&t.prototype;return i&&i[e]}});var Bk=I(function(){"use strict";var lIe=k(),fIe=Y(),gIe=_e(),dIe=Wr(),hIe=Js(),IIe=ov(),pIe=bt(),xIe=Array,mIe=fIe(IIe("Array","sort"));lIe({target:"Array",proto:!0},{toSorted:function toSorted(e){e!==void 0&&gIe(e);var t=dIe(this),i=hIe(xIe,t);return mIe(i,e)}});pIe("toSorted")});var Ek=I(function(){"use strict";var vIe=k(),CIe=bt(),BIe=Qa(),EIe=er(),yIe=$i(),QIe=Wr(),bIe=Br(),wIe=Array,SIe=Math.max,_Ie=Math.min;vIe({target:"Array",proto:!0},{toSpliced:function toSpliced(e,t){var i=QIe(this),n=EIe(i),a=yIe(e,n),o=arguments.length,s=0,A,u,c,l;for(o===0?A=u=0:o===1?(A=0,u=n-a):(A=o-2,u=_Ie(SIe(bIe(t),0),n-a)),c=BIe(n+A-u),l=wIe(c);s<a;s++)l[s]=i[s];for(;s<a+A;s++)l[s]=arguments[s-a+2];for(;s<c;s++)l[s]=i[s+u-A];return l}});CIe("toSpliced")});var yk=I(function(){"use strict";var qIe=bt();qIe("flat")});var Qk=I(function(){"use strict";var DIe=bt();DIe("flatMap")});var bk=I(function(){"use strict";var FIe=k(),kIe=He(),RIe=er(),NIe=Id(),OIe=Eu(),TIe=Qa(),PIe=[].unshift(0)!==1,MIe=function MIe(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(r){return _instanceof(r,TypeError)}},UIe=PIe||!MIe();FIe({target:"Array",proto:!0,arity:1,forced:UIe},{unshift:function unshift(e){var t=kIe(this),i=RIe(t),n=arguments.length;if(n){TIe(i+n);for(var a=i;a--;){var o=a+n;a in t?t[o]=t[a]:OIe(t,o)}for(var s=0;s<n;s++)t[s]=arguments[s]}return NIe(t,i+n)}})});var sv=I(function(Hsr,wk){"use strict";var GIe=er(),LIe=Br(),HIe=RangeError;wk.exports=function(r,e,t,i){var n=GIe(r),a=LIe(t),o=a<0?n+a:a;if(o>=n||o<0)throw new HIe("Incorrect index");for(var s=new e(n),A=0;A<n;A++)s[A]=A===o?i:r[A];return s}});var Sk=I(function(){"use strict";var WIe=k(),JIe=sv(),KIe=Wr(),VIe=Array,YIe=function(){try{[].with({valueOf:function valueOf(){throw 4}},null)}catch(r){return r!==4}}();WIe({target:"Array",proto:!0,forced:YIe},{with:function _with(r,e){return JIe(KIe(this),VIe,r,e)}})});var Fu=I(function(Ksr,_k){"use strict";_k.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"});var nn=I(function(Vsr,qk){"use strict";var zIe=$e();qk.exports=function(r,e,t){for(var i in e)zIe(r,i,e[i],t);return r}});var Ht=I(function(Ysr,Dk){"use strict";var jIe=pt(),XIe=TypeError;Dk.exports=function(r,e){if(jIe(e,r))return r;throw new XIe("Incorrect invocation")}});var ku=I(function(zsr,Fk){"use strict";var ZIe=Br(),$Ie=Pt(),epe=RangeError;Fk.exports=function(r){if(r===void 0)return 0;var e=ZIe(r),t=$Ie(e);if(e!==t)throw new epe("Wrong length or index");return t}});var vd=I(function(jsr,kk){"use strict";kk.exports=Math.sign||function(e){var t=+e;return t===0||t!==t?t:t<0?-1:1}});var Av=I(function(Xsr,Nk){"use strict";var rpe=2220446049250313e-31,Rk=1/rpe;Nk.exports=function(r){return r+Rk-Rk}});var cv=I(function(Zsr,Ok){"use strict";var tpe=vd(),ipe=Av(),npe=Math.abs,ape=2220446049250313e-31;Ok.exports=function(r,e,t,i){var n=+r,a=npe(n),o=tpe(n);if(a<i)return o*ipe(a/i/e)*i*e;var s=(1+e/ape)*a,A=s-(s-a);return A>t||A!==A?o*(1/0):o*A}});var uv=I(function($sr,Tk){"use strict";var ope=cv(),spe=11920928955078125e-23,Ape=34028234663852886e22,cpe=11754943508222875e-54;Tk.exports=Math.fround||function(e){return ope(e,spe,Ape,cpe)}});var Mk=I(function(eAr,Pk){"use strict";var upe=Array,lpe=Math.abs,Fn=Math.pow,fpe=Math.floor,gpe=Math.log,dpe=Math.LN2,hpe=function hpe(r,e,t){var i=upe(t),n=t*8-e-1,a=(1<<n)-1,o=a>>1,s=e===23?Fn(2,-24)-Fn(2,-77):0,A=r<0||r===0&&1/r<0?1:0,u=0,c,l,f;for(r=lpe(r),r!==r||r===1/0?(l=r!==r?1:0,c=a):(c=fpe(gpe(r)/dpe),f=Fn(2,-c),r*f<1&&(c--,f*=2),c+o>=1?r+=s/f:r+=s*Fn(2,1-o),r*f>=2&&(c++,f/=2),c+o>=a?(l=0,c=a):c+o>=1?(l=(r*f-1)*Fn(2,e),c+=o):(l=r*Fn(2,o-1)*Fn(2,e),c=0));e>=8;)i[u++]=l&255,l/=256,e-=8;for(c=c<<e|l,n+=e;n>0;)i[u++]=c&255,c/=256,n-=8;return i[u-1]|=A*128,i},Ipe=function Ipe(r,e){var t=r.length,i=t*8-e-1,n=(1<<i)-1,a=n>>1,o=i-7,s=t-1,A=r[s--],u=A&127,c;for(A>>=7;o>0;)u=u*256+r[s--],o-=8;for(c=u&(1<<-o)-1,u>>=-o,o+=e;o>0;)c=c*256+r[s--],o-=8;if(u===0)u=1-a;else{if(u===n)return c?NaN:A?-1/0:1/0;c+=Fn(2,e),u-=a}return(A?-1:1)*c*Fn(2,u-e)};Pk.exports={pack:hpe,unpack:Ipe}});var Ou=I(function(rAr,tR){"use strict";var Qd=te(),hv=Y(),lv=xe(),ppe=Fu(),Xk=So(),xpe=Xr(),mpe=_r(),Uk=nn(),fv=W(),Cd=Ht(),vpe=Br(),Cpe=Pt(),Ed=ku(),Bpe=uv(),Zk=Mk(),Epe=xt(),Gk=di(),ype=cd(),Qpe=ei(),bpe=ya(),wpe=qo(),$k=Qt(),Iv=lr(),Spe=Xk.PROPER,Lk=Xk.CONFIGURABLE,Vs="ArrayBuffer",bd="DataView",Ys="prototype",_pe="Wrong length",eR="Wrong index",Hk=Iv.getterFor(Vs),Nu=Iv.getterFor(bd),Wk=Iv.set,Oi=Qd[Vs],ti=Oi,Ks=ti&&ti[Ys],an=Qd[bd],Lo=an&&an[Ys],Jk=Object.prototype,qpe=Qd.Array,yd=Qd.RangeError,Dpe=hv(ype),Fpe=hv([].reverse),rR=Zk.pack,Kk=Zk.unpack,Vk=function Vk(r){return[r&255]},Yk=function Yk(r){return[r&255,r>>8&255]},zk=function zk(r){return[r&255,r>>8&255,r>>16&255,r>>24&255]},jk=function jk(r){return r[3]<<24|r[2]<<16|r[1]<<8|r[0]},kpe=function kpe(r){return rR(Bpe(r),23,4)},Rpe=function Rpe(r){return rR(r,52,8)},Bd=function Bd(r,e,t){mpe(r[Ys],e,{configurable:!0,get:function get(){return t(this)[e]}})},Sa=function Sa(r,e,t,i){var n=Nu(r),a=Ed(t),o=!!i;if(a+e>n.byteLength)throw new yd(eR);var s=n.bytes,A=a+n.byteOffset,u=Qpe(s,A,A+e);return o?u:Fpe(u)},_a=function _a(r,e,t,i,n,a){var o=Nu(r),s=Ed(t),A=i(+n),u=!!a;if(s+e>o.byteLength)throw new yd(eR);for(var c=o.bytes,l=s+o.byteOffset,f=0;f<e;f++)c[l+f]=A[u?f:e-f-1]};ppe?(gv=Spe&&Oi.name!==Vs,!fv(function(){Oi(1)})||!fv(function(){new Oi(-1)})||fv(function(){return new Oi,new Oi(1.5),new Oi(NaN),Oi.length!==1||gv&&!Lk})?(ti=function(e){return Cd(this,Ks),bpe(new Oi(Ed(e)),this,ti)},ti[Ys]=Ks,Ks.constructor=ti,wpe(ti,Oi)):gv&&Lk&&xpe(Oi,"name",Vs),Gk&&Epe(Lo)!==Jk&&Gk(Lo,Jk),Ru=new an(new ti(2)),dv=hv(Lo.setInt8),Ru.setInt8(0,0x80000000),Ru.setInt8(1,0x80000001),(Ru.getInt8(0)||!Ru.getInt8(1))&&Uk(Lo,{setInt8:function setInt8(e,t){dv(this,e,t<<24>>24)},setUint8:function setUint8(e,t){dv(this,e,t<<24>>24)}},{unsafe:!0})):(ti=function ti(e){Cd(this,Ks);var t=Ed(e);Wk(this,{type:Vs,bytes:Dpe(qpe(t),0),byteLength:t}),lv||(this.byteLength=t,this.detached=!1)},Ks=ti[Ys],an=function an(e,t,i){Cd(this,Lo),Cd(e,Ks);var n=Hk(e),a=n.byteLength,o=vpe(t);if(o<0||o>a)throw new yd("Wrong offset");if(i=i===void 0?a-o:Cpe(i),o+i>a)throw new yd(_pe);Wk(this,{type:bd,buffer:e,byteLength:i,byteOffset:o,bytes:n.bytes}),lv||(this.buffer=e,this.byteLength=i,this.byteOffset=o)},Lo=an[Ys],lv&&(Bd(ti,"byteLength",Hk),Bd(an,"buffer",Nu),Bd(an,"byteLength",Nu),Bd(an,"byteOffset",Nu)),Uk(Lo,{getInt8:function getInt8(e){return Sa(this,1,e)[0]<<24>>24},getUint8:function getUint8(e){return Sa(this,1,e)[0]},getInt16:function getInt16(e){var t=Sa(this,2,e,arguments.length>1?arguments[1]:!1);return(t[1]<<8|t[0])<<16>>16},getUint16:function getUint16(e){var t=Sa(this,2,e,arguments.length>1?arguments[1]:!1);return t[1]<<8|t[0]},getInt32:function getInt32(e){return jk(Sa(this,4,e,arguments.length>1?arguments[1]:!1))},getUint32:function getUint32(e){return jk(Sa(this,4,e,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function getFloat32(e){return Kk(Sa(this,4,e,arguments.length>1?arguments[1]:!1),23)},getFloat64:function getFloat64(e){return Kk(Sa(this,8,e,arguments.length>1?arguments[1]:!1),52)},setInt8:function setInt8(e,t){_a(this,1,e,Vk,t)},setUint8:function setUint8(e,t){_a(this,1,e,Vk,t)},setInt16:function setInt16(e,t){_a(this,2,e,Yk,t,arguments.length>2?arguments[2]:!1)},setUint16:function setUint16(e,t){_a(this,2,e,Yk,t,arguments.length>2?arguments[2]:!1)},setInt32:function setInt32(e,t){_a(this,4,e,zk,t,arguments.length>2?arguments[2]:!1)},setUint32:function setUint32(e,t){_a(this,4,e,zk,t,arguments.length>2?arguments[2]:!1)},setFloat32:function setFloat32(e,t){_a(this,4,e,kpe,t,arguments.length>2?arguments[2]:!1)},setFloat64:function setFloat64(e,t){_a(this,8,e,Rpe,t,arguments.length>2?arguments[2]:!1)}}));var gv,Ru,dv;$k(ti,Vs);$k(an,bd);tR.exports={ArrayBuffer:ti,DataView:an}});var nR=I(function(){"use strict";var Npe=k(),Ope=te(),Tpe=Ou(),Ppe=Go(),pv="ArrayBuffer",iR=Tpe[pv],Mpe=Ope[pv];Npe({global:!0,constructor:!0,forced:Mpe!==iR},{ArrayBuffer:iR});Ppe(pv)});var Re=I(function(nAr,dR){"use strict";var Upe=Fu(),Cv=xe(),wt=te(),AR=ke(),_d=me(),Da=Se(),Bv=Mt(),Gpe=pa(),Lpe=Xr(),xv=$e(),Hpe=_r(),Wpe=pt(),qd=xt(),js=di(),Jpe=ve(),Kpe=xa(),cR=lr(),uR=cR.enforce,Vpe=cR.get,wd=wt.Int8Array,mv=wd&&wd.prototype,aR=wt.Uint8ClampedArray,oR=aR&&aR.prototype,on=wd&&qd(wd),Ti=mv&&qd(mv),Ype=Object.prototype,Ev=wt.TypeError,sR=Jpe("toStringTag"),vv=Kpe("TYPED_ARRAY_TAG"),Sd="TypedArrayConstructor",kn=Upe&&!!js&&Bv(wt.opera)!=="Opera",lR=!1,Wt,qa,zs,Rn={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},yv={BigInt64Array:8,BigUint64Array:8},zpe=function zpe(e){if(!_d(e))return!1;var t=Bv(e);return t==="DataView"||Da(Rn,t)||Da(yv,t)},fR=function fR1(r){var e=qd(r);if(_d(e)){var t=Vpe(e);return t&&Da(t,Sd)?t[Sd]:fR(e)}},gR=function gR(r){if(!_d(r))return!1;var e=Bv(r);return Da(Rn,e)||Da(yv,e)},jpe=function jpe(r){if(gR(r))return r;throw new Ev("Target is not a typed array")},Xpe=function Xpe(r){if(AR(r)&&(!js||Wpe(on,r)))return r;throw new Ev(Gpe(r)+" is not a typed array constructor")},Zpe=function Zpe(r,e,t,i){if(Cv){if(t)for(var n in Rn){var a=wt[n];if(a&&Da(a.prototype,r))try{delete a.prototype[r]}catch(o){try{a.prototype[r]=e}catch(s){}}}(!Ti[r]||t)&&xv(Ti,r,t?e:kn&&mv[r]||e,i)}},$pe=function $pe(r,e,t){var i,n;if(Cv){if(js){if(t){for(i in Rn)if(n=wt[i],n&&Da(n,r))try{delete n[r]}catch(a){}}if(!on[r]||t)try{return xv(on,r,t?e:kn&&on[r]||e)}catch(a){}else return}for(i in Rn)n=wt[i],n&&(!n[r]||t)&&xv(n,r,e)}};for(Wt in Rn)qa=wt[Wt],zs=qa&&qa.prototype,zs?uR(zs)[Sd]=qa:kn=!1;for(Wt in yv)qa=wt[Wt],zs=qa&&qa.prototype,zs&&(uR(zs)[Sd]=qa);if((!kn||!AR(on)||on===Function.prototype)&&(on=function on(){throw new Ev("Incorrect invocation")},kn))for(Wt in Rn)wt[Wt]&&js(wt[Wt],on);if((!kn||!Ti||Ti===Ype)&&(Ti=on.prototype,kn))for(Wt in Rn)wt[Wt]&&js(wt[Wt].prototype,Ti);kn&&qd(oR)!==Ti&&js(oR,Ti);if(Cv&&!Da(Ti,sR)){lR=!0,Hpe(Ti,sR,{configurable:!0,get:function get(){return _d(this)?this[vv]:void 0}});for(Wt in Rn)wt[Wt]&&Lpe(wt[Wt],vv,Wt)}dR.exports={NATIVE_ARRAY_BUFFER_VIEWS:kn,TYPED_ARRAY_TAG:lR&&vv,aTypedArray:jpe,aTypedArrayConstructor:Xpe,exportTypedArrayMethod:Zpe,exportTypedArrayStaticMethod:$pe,getTypedArrayConstructor:fR,isView:zpe,isTypedArray:gR,TypedArray:on,TypedArrayPrototype:Ti}});var IR=I(function(){"use strict";var e0e=k(),hR=Re(),r0e=hR.NATIVE_ARRAY_BUFFER_VIEWS;e0e({target:"ArrayBuffer",stat:!0,forced:!r0e},{isView:hR.isView})});var BR=I(function(){"use strict";var t0e=k(),bv=va(),i0e=W(),vR=Ou(),pR=he(),xR=$i(),n0e=Pt(),wv=vR.ArrayBuffer,Qv=vR.DataView,CR=Qv.prototype,mR=bv(wv.prototype.slice),a0e=bv(CR.getUint8),o0e=bv(CR.setUint8),s0e=i0e(function(){return!new wv(2).slice(1,void 0).byteLength});t0e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:s0e},{slice:function slice(e,t){if(mR&&t===void 0)return mR(pR(this),e);for(var i=pR(this).byteLength,n=xR(e,i),a=xR(t===void 0?i:t,i),o=new wv(n0e(a-n)),s=new Qv(this),A=new Qv(o),u=0;n<a;)o0e(A,u++,a0e(s,n++));return o}})});var ER=I(function(){"use strict";var A0e=k(),c0e=Ou(),u0e=Fu();A0e({global:!0,constructor:!0,forced:!u0e},{DataView:c0e.DataView})});var yR=I(function(){"use strict";ER()});var _R=I(function(){"use strict";var l0e=k(),f0e=Y(),SR=Math.pow,QR=31,g0e=1023,bR=SR(2,-24),wR=9765625e-10,d0e=function d0e(r){var e=r>>>15,t=r>>>10&QR,i=r&g0e;return t===QR?i===0?e===0?1/0:-1/0:NaN:t===0?i*(e===0?bR:-bR):SR(2,t-15)*(e===0?1+i*wR:-1-i*wR)},h0e=f0e(DataView.prototype.getUint16);l0e({target:"DataView",proto:!0},{getFloat16:function getFloat16(e){return d0e(h0e(this,e,arguments.length>1?arguments[1]:!1))}})});var DR=I(function(hAr,qR){"use strict";var I0e=Mt(),p0e=TypeError;qR.exports=function(r){if(I0e(r)==="DataView")return r;throw new p0e("Argument is not a DataView")}});var Sv=I(function(IAr,FR){"use strict";var x0e=Math.log,m0e=Math.LN2;FR.exports=Math.log2||function(e){return x0e(e)/m0e}});var RR=I(function(){"use strict";var v0e=k(),C0e=Y(),B0e=DR(),E0e=ku(),y0e=Sv(),kR=Av(),Q0e=Math.pow,b0e=65520,w0e=61005353927612305e-21,S0e=0x1000000,_v=1024,_0e=function _0e(r){if(r!==r)return 32256;if(r===0)return(1/r===-1/0)<<15;var e=r<0;if(e&&(r=-r),r>=b0e)return e<<15|31744;if(r<w0e)return e<<15|kR(r*S0e);var t=y0e(r)|0;if(t===-15)return e<<15|_v;var i=kR((r*Q0e(2,-t)-1)*_v);return i===_v?e<<15|t+16<<10:e<<15|t+15<<10|i},q0e=C0e(DataView.prototype.setUint16);v0e({target:"DataView",proto:!0},{setFloat16:function setFloat16(e,t){q0e(B0e(this),E0e(e),_0e(+t),arguments.length>2?arguments[2]:!1)}})});var qv=I(function(mAr,TR){"use strict";var OR=te(),D0e=Cu(),F0e=st(),NR=OR.ArrayBuffer,k0e=OR.TypeError;TR.exports=NR&&D0e(NR.prototype,"byteLength","get")||function(r){if(F0e(r)!=="ArrayBuffer")throw new k0e("ArrayBuffer expected");return r.byteLength}});var Dv=I(function(vAr,PR){"use strict";var R0e=te(),N0e=Fu(),O0e=qv(),T0e=R0e.DataView;PR.exports=function(r){if(!N0e||O0e(r)!==0)return!1;try{return new T0e(r),!1}catch(e){return!0}}});var UR=I(function(){"use strict";var P0e=xe(),M0e=_r(),U0e=Dv(),MR=ArrayBuffer.prototype;P0e&&!("detached"in MR)&&M0e(MR,"detached",{configurable:!0,get:function get(){return U0e(this)}})});var Xs=I(function(EAr,GR){"use strict";var G0e=Dv(),L0e=TypeError;GR.exports=function(r){if(G0e(r))throw new L0e("ArrayBuffer is detached");return r}});var Fv=I(function(yAr,LR){"use strict";var H0e=te(),W0e=Uo();LR.exports=function(r){if(W0e){try{return H0e.process.getBuiltinModule(r)}catch(e){}try{return Function('return require("'+r+'")')()}catch(e){}}}});var Dd=I(function(QAr,WR){"use strict";var J0e=te(),K0e=W(),kv=Ri(),Rv=Du(),HR=J0e.structuredClone;WR.exports=!!HR&&!K0e(function(){if(Rv==="DENO"&&kv>92||Rv==="NODE"&&kv>94||Rv==="BROWSER"&&kv>97)return!1;var r=new ArrayBuffer(8),e=HR(r,{transfer:[r]});return r.byteLength!==0||e.byteLength!==8})});var Mv=I(function(bAr,VR){"use strict";var Pv=te(),V0e=Fv(),Y0e=Dd(),z0e=Pv.structuredClone,JR=Pv.ArrayBuffer,Fd=Pv.MessageChannel,Tv=!1,Nv,KR,kd,Ov;if(Y0e)Tv=function Tv(r){z0e(r,{transfer:[r]})};else if(JR)try{Fd||(Nv=V0e("worker_threads"),Nv&&(Fd=Nv.MessageChannel)),Fd&&(KR=new Fd,kd=new JR(2),Ov=function Ov(r){KR.port1.postMessage(null,[r])},kd.byteLength===2&&(Ov(kd),kd.byteLength===0&&(Tv=Ov)))}catch(r){}VR.exports=Tv});var Jv=I(function(wAr,eN){"use strict";var Lv=te(),Hv=Y(),XR=Cu(),j0e=ku(),X0e=Xs(),Z0e=qv(),YR=Mv(),Uv=Dd(),$0e=Lv.structuredClone,ZR=Lv.ArrayBuffer,Gv=Lv.DataView,exe=Math.min,Wv=ZR.prototype,$R=Gv.prototype,rxe=Hv(Wv.slice),zR=XR(Wv,"resizable","get"),jR=XR(Wv,"maxByteLength","get"),txe=Hv($R.getInt8),ixe=Hv($R.setInt8);eN.exports=(Uv||YR)&&function(r,e,t){var i=Z0e(r),n=e===void 0?i:j0e(e),a=!zR||!zR(r),o;if(X0e(r),Uv&&(r=$0e(r,{transfer:[r]}),i===n&&(t||a)))return r;if(i>=n&&(!t||a))o=rxe(r,0,n);else{var s=t&&!a&&jR?{maxByteLength:jR(r)}:void 0;o=new ZR(n,s);for(var A=new Gv(r),u=new Gv(o),c=exe(n,i),l=0;l<c;l++)ixe(u,l,txe(A,l))}return Uv||YR(r),o}});var tN=I(function(){"use strict";var nxe=k(),rN=Jv();rN&&nxe({target:"ArrayBuffer",proto:!0},{transfer:function transfer(){return rN(this,arguments.length?arguments[0]:void 0,!0)}})});var nN=I(function(){"use strict";var axe=k(),iN=Jv();iN&&axe({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function transferToFixedLength(){return iN(this,arguments.length?arguments[0]:void 0,!1)}})});var aN=I(function(){"use strict";var oxe=k(),sxe=Y(),Axe=W(),cxe=Axe(function(){return new Date(16e11).getYear()!==120}),uxe=sxe(Date.prototype.getFullYear);oxe({target:"Date",proto:!0,forced:cxe},{getYear:function getYear(){return uxe(this)-1900}})});var sN=I(function(){"use strict";var lxe=k(),fxe=Y(),oN=Date,gxe=fxe(oN.prototype.getTime);lxe({target:"Date",stat:!0},{now:function now(){return gxe(new oN)}})});var uN=I(function(){"use strict";var dxe=k(),AN=Y(),hxe=Br(),cN=Date.prototype,Ixe=AN(cN.getTime),pxe=AN(cN.setFullYear);dxe({target:"Date",proto:!0},{setYear:function setYear(e){Ixe(this);var t=hxe(e),i=t>=0&&t<=99?t+1900:t;return pxe(this,i)}})});var lN=I(function(){"use strict";var xxe=k();xxe({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})});var Tu=I(function(UAr,fN){"use strict";var mxe=Br(),vxe=Ee(),Cxe=hr(),Bxe=RangeError;fN.exports=function(e){var t=vxe(Cxe(this)),i="",n=mxe(e);if(n<0||n===1/0)throw new Bxe("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))n&1&&(i+=t);return i}});var Pu=I(function(GAr,IN){"use strict";var hN=Y(),Exe=Pt(),gN=Ee(),yxe=Tu(),Qxe=hr(),bxe=hN(yxe),wxe=hN("".slice),Sxe=Math.ceil,dN=function dN(r){return function(e,t,i){var n=gN(Qxe(e)),a=Exe(t),o=n.length,s=i===void 0?" ":gN(i),A,u;return a<=o||s===""?n:(A=a-o,u=bxe(s,Sxe(A/s.length)),u.length>A&&(u=wxe(u,0,A)),r?n+u:u+n)}};IN.exports={start:dN(!1),end:dN(!0)}});var mN=I(function(LAr,xN){"use strict";var Fa=Y(),pN=W(),Ho=Pu().start,_xe=RangeError,qxe=isFinite,Dxe=Math.abs,Nn=Date.prototype,Kv=Nn.toISOString,Fxe=Fa(Nn.getTime),kxe=Fa(Nn.getUTCDate),Rxe=Fa(Nn.getUTCFullYear),Nxe=Fa(Nn.getUTCHours),Oxe=Fa(Nn.getUTCMilliseconds),Txe=Fa(Nn.getUTCMinutes),Pxe=Fa(Nn.getUTCMonth),Mxe=Fa(Nn.getUTCSeconds);xN.exports=pN(function(){return Kv.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!pN(function(){Kv.call(new Date(NaN))})?function(){if(!qxe(Fxe(this)))throw new _xe("Invalid time value");var e=this,t=Rxe(e),i=Oxe(e),n=t<0?"-":t>9999?"+":"";return n+Ho(Dxe(t),n?6:4,0)+"-"+Ho(Pxe(e)+1,2,0)+"-"+Ho(kxe(e),2,0)+"T"+Ho(Nxe(e),2,0)+":"+Ho(Txe(e),2,0)+":"+Ho(Mxe(e),2,0)+"."+Ho(i,3,0)+"Z"}:Kv});var CN=I(function(){"use strict";var Uxe=k(),vN=mN();Uxe({target:"Date",proto:!0,forced:Date.prototype.toISOString!==vN},{toISOString:vN})});var BN=I(function(){"use strict";var Gxe=k(),Lxe=W(),Hxe=He(),Wxe=ou(),Jxe=Lxe(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function toISOString(){return 1}})!==1});Gxe({target:"Date",proto:!0,arity:1,forced:Jxe},{toJSON:function toJSON(e){var t=Hxe(this),i=Wxe(t,"number");return typeof i=="number"&&!isFinite(i)?null:t.toISOString()}})});var yN=I(function(VAr,EN){"use strict";var Kxe=he(),Vxe=xx(),Yxe=TypeError;EN.exports=function(r){if(Kxe(this),r==="string"||r==="default")r="string";else if(r!=="number")throw new Yxe("Incorrect hint");return Vxe(this,r)}});var wN=I(function(){"use strict";var zxe=Se(),jxe=$e(),Xxe=yN(),Zxe=ve(),QN=Zxe("toPrimitive"),bN=Date.prototype;zxe(bN,QN)||jxe(bN,QN,Xxe)});var DN=I(function(){"use strict";var _N=Y(),$xe=$e(),Vv=Date.prototype,SN="Invalid Date",qN="toString",eme=_N(Vv[qN]),rme=_N(Vv.getTime);String(new Date(NaN))!==SN&&$xe(Vv,qN,function(){var e=rme(this);return e===e?eme(this):SN})});var zv=I(function(ZAr,ON){"use strict";var tme=we(),ime=ge(),nme=Y(),ame=Ut(),ome=he(),sme=_e(),RN=Zi(),Yv=zr(),NN=ve(),Ame=NN("asyncDispose"),FN=NN("dispose"),cme=nme([].push),ume=function ume(r,e){if(e==="async-dispose"){var t=Yv(r,Ame);return t!==void 0||(t=Yv(r,FN),t===void 0)?t:function(){var i=this,n=tme("Promise");return new n(function(a){ime(t,i),a(void 0)})}}return Yv(r,FN)},kN=function kN(r,e,t){return arguments.length<3&&!RN(r)&&(t=sme(ume(ome(r),e))),t===void 0?function(){}:ame(t,r)};ON.exports=function(r,e,t,i){var n;if(arguments.length<4){if(RN(e)&&t==="sync-dispose")return;n=kN(e,t)}else n=kN(void 0,t,i);cme(r.stack,n)}});var GN=I(function(){"use strict";var lme=k(),Nd=xe(),fme=we(),TN=_e(),gme=Ht(),PN=$e(),dme=nn(),hme=_r(),MN=ve(),UN=lr(),jv=zv(),Ime=fme("SuppressedError"),pme=ReferenceError,xme=MN("dispose"),mme=MN("toStringTag"),Td="DisposableStack",vme=UN.set,Od=UN.getterFor(Td),Xv="sync-dispose",Mu="disposed",Cme="pending",Rd=function Rd(r){var e=Od(r);if(e.state===Mu)throw new pme(Td+" already disposed");return e},Zv=function Zv(){vme(gme(this,Zs),{type:Td,state:Cme,stack:[]}),Nd||(this.disposed=!1)},Zs=Zv.prototype;dme(Zs,{dispose:function dispose(){var e=Od(this);if(e.state!==Mu){e.state=Mu,Nd||(this.disposed=!0);for(var t=e.stack,i=t.length,n=!1,a;i;){var o=t[--i];t[i]=null;try{o()}catch(s){n?a=new Ime(s,a):(n=!0,a=s)}}if(e.stack=null,n)throw a}},use:function use(e){return jv(Rd(this),e,Xv),e},adopt:function adopt(e,t){var i=Rd(this);return TN(t),jv(i,void 0,Xv,function(){t(e)}),e},defer:function defer(e){var t=Rd(this);TN(e),jv(t,void 0,Xv,e)},move:function move(){var e=Rd(this),t=new Zv;return Od(t).stack=e.stack,e.stack=[],e.state=Mu,Nd||(this.disposed=!0),t}});Nd&&hme(Zs,"disposed",{configurable:!0,get:function get(){return Od(this).state===Mu}});PN(Zs,xme,Zs.dispose,{name:"dispose"});PN(Zs,mme,Td,{nonWritable:!0});lme({global:!0,constructor:!0},{DisposableStack:Zv})});var HN=I(function(){"use strict";var Bme=k(),Uu=Y(),Eme=Ee(),yme=Uu("".charAt),Qme=Uu("".charCodeAt),bme=Uu(/./.exec),wme=Uu(1.1.toString),Sme=Uu("".toUpperCase),_me=/[\w*+\-./@]/,LN=function LN(r,e){for(var t=wme(r,16);t.length<e;)t="0"+t;return t};Bme({global:!0},{escape:function escape1(e){for(var t=Eme(e),i="",n=t.length,a=0,o,s;a<n;)o=yme(t,a++),bme(_me,o)?i+=o:(s=Qme(o,0),s<256?i+="%"+LN(s,2):i+="%u"+Sme(LN(s,4)));return i}})});var eC=I(function(icr,VN){"use strict";var JN=Y(),qme=_e(),Dme=me(),Fme=Se(),WN=ei(),kme=Ds(),KN=Function,Rme=JN([].concat),Nme=JN([].join),$v={},Ome=function Ome(r,e,t){if(!Fme($v,e)){for(var i=[],n=0;n<e;n++)i[n]="a["+n+"]";$v[e]=KN("C,a","return new C("+Nme(i,",")+")")}return $v[e](r,t)};VN.exports=kme?KN.bind:function(e){var t=qme(this),i=t.prototype,n=WN(arguments,1),a=function a1(){var s=Rme(n,WN(arguments));return _instanceof(this,a)?Ome(t,s.length,s):t.apply(e,s)};return Dme(i)&&(a.prototype=i),a}});var zN=I(function(){"use strict";var Tme=k(),YN=eC();Tme({target:"Function",proto:!0,forced:Function.bind!==YN},{bind:YN})});var ZN=I(function(){"use strict";var Pme=ke(),jN=me(),Mme=ur(),Ume=pt(),Gme=ve(),Lme=_g(),rC=Gme("hasInstance"),XN=Function.prototype;rC in XN||Mme.f(XN,rC,{value:Lme(function(r){if(!Pme(this)||!jN(r))return!1;var e=this.prototype;return jN(e)?Ume(e,r):_instanceof(r,this)},rC)})});var t4=I(function(){"use strict";var Hme=xe(),Wme=So().EXISTS,$N=Y(),Jme=_r(),e4=Function.prototype,Kme=$N(e4.toString),r4=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Vme=$N(r4.exec),Yme="name";Hme&&!Wme&&Jme(e4,Yme,{configurable:!0,get:function get(){try{return Vme(r4,Kme(this))[1]}catch(r){return""}}})});var i4=I(function(){"use strict";var zme=k(),tC=te();zme({global:!0,forced:tC.globalThis!==tC},{globalThis:tC})});var c4=I(function(){"use strict";var jme=k(),Xme=te(),Zme=Ht(),$me=he(),eve=ke(),rve=xt(),tve=_r(),ive=ri(),nve=W(),aC=Se(),ave=ve(),sn=Mo().IteratorPrototype,ove=xe(),sve=Je(),iC="constructor",a4="Iterator",n4=ave("toStringTag"),o4=TypeError,nC=Xme[a4],s4=sve||!eve(nC)||nC.prototype!==sn||!nve(function(){nC({})}),oC=function oC(){if(Zme(this,sn),rve(this)===sn)throw new o4("Abstract class Iterator not directly constructable")},A4=function A4(r,e){ove?tve(sn,r,{configurable:!0,get:function get(){return e},set:function set(t){if($me(this),this===sn)throw new o4("You can't redefine this property");aC(this,r)?this[r]=t:ive(this,r,t)}}):sn[r]=e};aC(sn,n4)||A4(n4,a4);(s4||!aC(sn,iC)||sn[iC]===Object)&&A4(iC,oC);oC.prototype=sn;jme({global:!0,constructor:!0,forced:s4},{Iterator:oC})});var l4=I(function(dcr,u4){"use strict";var Ave=rt();u4.exports=function(r,e,t){for(var i=r.length-1;i>=0;i--)if(r[i]!==void 0)try{t=Ave(r[i].iterator,e,t)}catch(n){e="throw",t=n}if(e==="throw")throw t;return t}});var ka=I(function(hcr,x4){"use strict";var cve=ge(),uve=Zr(),lve=Xr(),fve=nn(),gve=ve(),g4=lr(),dve=zr(),hve=Mo().IteratorPrototype,Pd=ba(),Md=rt(),Ive=l4(),pve=gve("toStringTag"),d4="IteratorHelper",h4="WrapForValidIterator",sC="normal",f4="throw",xve=g4.set,I4=function I4(r){var e=g4.getterFor(r?h4:d4);return fve(uve(hve),{next:function next(){var i=e(this);if(r)return i.nextHandler();if(i.done)return Pd(void 0,!0);try{var n=i.nextHandler();return i.returnHandlerResult?n:Pd(n,i.done)}catch(a){throw i.done=!0,a}},return:function _return(){var t=e(this),i=t.iterator;if(t.done=!0,r){var n=dve(i,"return");return n?cve(n,i):Pd(void 0,!0)}if(t.inner)try{Md(t.inner.iterator,sC)}catch(a){return Md(i,f4,a)}if(t.openIters)try{Ive(t.openIters,sC)}catch(a){return Md(i,f4,a)}return i&&Md(i,sC),Pd(void 0,!0)}})},mve=I4(!0),p4=I4(!1);lve(p4,pve,"Iterator Helper");x4.exports=function(r,e,t){var i=function i(a,o){o?(o.iterator=a.iterator,o.next=a.next):o=a,o.type=e?h4:d4,o.returnHandlerResult=!!t,o.nextHandler=r,o.counter=0,o.done=!1,xve(this,o)};return i.prototype=e?mve:p4,i}});var C4=I(function(){"use strict";var vve=k(),m4=ge(),Cve=_e(),v4=he(),Bve=qn(),Eve=ka(),yve=Array,Qve=Eve(function(){for(;;){var r=this.iterator;if(!r){var e=this.nextIterableIndex++,t=this.iterables;if(e>=t.length){this.done=!0;return}var i=t[e];this.iterables[e]=null,r=this.iterator=m4(i.method,i.iterable),this.next=r.next}var n=v4(m4(this.next,r));if(n.done){this.iterator=null,this.next=null;continue}return n.value}});vve({target:"Iterator",stat:!0},{concat:function concat(){for(var e=arguments.length,t=yve(e),i=0;i<e;i++){var n=v4(arguments[i]);t[i]={iterable:n,method:Cve(Bve(n))}}return new Qve({iterables:t,nextIterableIndex:0,iterator:null,next:null})}})});var y4=I(function(){"use strict";var bve=ge(),wve=$e(),Sve=zr(),_ve=Se(),qve=ve(),B4=Mo().IteratorPrototype,E4=qve("dispose");_ve(B4,E4)||wve(B4,E4,function(){var r=Sve(this,"return");r&&bve(r,this)})});var ct=I(function(vcr,Q4){"use strict";Q4.exports=function(r){return{iterator:r,next:r.next,done:!1}}});var AC=I(function(Ccr,b4){"use strict";var Dve=RangeError;b4.exports=function(r){if(r===r)return r;throw new Dve("NaN is not allowed")}});var Ud=I(function(Bcr,w4){"use strict";var Fve=Br(),kve=RangeError;w4.exports=function(r){var e=Fve(r);if(e<0)throw new kve("The argument can't be less than 0");return e}});var Gu=I(function(Ecr,S4){"use strict";S4.exports=function(r,e){var t=typeof Iterator=="function"&&Iterator.prototype[r];if(t)try{t.call({next:null},e).next()}catch(i){return!0}}});var Pi=I(function(ycr,_4){"use strict";var Rve=te();_4.exports=function(r,e){var t=Rve.Iterator,i=t&&t.prototype,n=i&&i[r],a=!1;if(n)try{n.call({next:function next(){return{done:!0}},return:function _return(){a=!0}},-1)}catch(o){_instanceof(o,e)||(a=!1)}if(!a)return n}});var D4=I(function(){"use strict";var Nve=k(),cC=ge(),uC=he(),Ove=ct(),Tve=AC(),Pve=Ud(),Mve=rt(),Uve=ka(),Gve=Gu(),Lve=Pi(),fC=Je(),q4=!fC&&!Gve("drop",0),lC=!fC&&!q4&&Lve("drop",RangeError),Hve=fC||q4||lC,Wve=Uve(function(){for(var r=this.iterator,e=this.next,t,i;this.remaining;)if(this.remaining--,t=uC(cC(e,r)),i=this.done=!!t.done,i)return;if(t=uC(cC(e,r)),i=this.done=!!t.done,!i)return t.value});Nve({target:"Iterator",proto:!0,real:!0,forced:Hve},{drop:function drop(e){uC(this);var t;try{t=Pve(Tve(+e))}catch(i){Mve(this,"throw",i)}return lC?cC(lC,this,t):new Wve(Ove(this),{remaining:t})}})});var F4=I(function(){"use strict";var Jve=k(),Kve=ge(),Vve=Pr(),Yve=_e(),zve=he(),jve=ct(),Xve=rt(),Zve=Pi(),gC=Zve("every",TypeError);Jve({target:"Iterator",proto:!0,real:!0,forced:gC},{every:function every(e){zve(this);try{Yve(e)}catch(n){Xve(this,"throw",n)}if(gC)return Kve(gC,this,e);var t=jve(this),i=0;return!Vve(t,function(n,a){if(!e(n,i++))return a()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})});var O4=I(function(){"use strict";var $ve=k(),k4=ge(),eCe=_e(),R4=he(),rCe=ct(),tCe=ka(),iCe=ud(),hC=Je(),nCe=rt(),aCe=Gu(),oCe=Pi(),N4=!hC&&!aCe("filter",function(){}),dC=!hC&&!N4&&oCe("filter",TypeError),sCe=hC||N4||dC,ACe=tCe(function(){for(var r=this.iterator,e=this.predicate,t=this.next,i,n,a;;){if(i=R4(k4(t,r)),n=this.done=!!i.done,n)return;if(a=i.value,iCe(r,e,[a,this.counter++],!0))return a}});$ve({target:"Iterator",proto:!0,real:!0,forced:sCe},{filter:function filter(e){R4(this);try{eCe(e)}catch(t){nCe(this,"throw",t)}return dC?k4(dC,this,e):new ACe(rCe(this),{predicate:e})}})});var T4=I(function(){"use strict";var cCe=k(),uCe=ge(),lCe=Pr(),fCe=_e(),gCe=he(),dCe=ct(),hCe=rt(),ICe=Pi(),IC=ICe("find",TypeError);cCe({target:"Iterator",proto:!0,real:!0,forced:IC},{find:function find(e){gCe(this);try{fCe(e)}catch(n){hCe(this,"throw",n)}if(IC)return uCe(IC,this,e);var t=dCe(this),i=0;return lCe(t,function(n,a){if(e(n,i++))return a(n)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})});var pC=I(function(kcr,M4){"use strict";var pCe=ge(),P4=he(),xCe=ct(),mCe=qn();M4.exports=function(r,e){(!e||typeof r!="string")&&P4(r);var t=mCe(r);return xCe(P4(t!==void 0?pCe(t,r):r))}});var G4=I(function(){"use strict";var vCe=k(),xC=ge(),CCe=_e(),mC=he(),BCe=ct(),ECe=pC(),yCe=ka(),vC=rt(),BC=Je(),QCe=Gu(),bCe=Pi(),U4=!BC&&!QCe("flatMap",function(){}),CC=!BC&&!U4&&bCe("flatMap",TypeError),wCe=BC||U4||CC,SCe=yCe(function(){for(var r=this.iterator,e=this.mapper,t,i;;){if(i=this.inner)try{if(t=mC(xC(i.next,i.iterator)),!t.done)return t.value;this.inner=null}catch(n){vC(r,"throw",n)}if(t=mC(xC(this.next,r)),this.done=!!t.done)return;try{this.inner=ECe(e(t.value,this.counter++),!1)}catch(n){vC(r,"throw",n)}}});vCe({target:"Iterator",proto:!0,real:!0,forced:wCe},{flatMap:function flatMap(e){mC(this);try{CCe(e)}catch(t){vC(this,"throw",t)}return CC?xC(CC,this,e):new SCe(BCe(this),{mapper:e,inner:null})}})});var L4=I(function(){"use strict";var _Ce=k(),qCe=ge(),DCe=Pr(),FCe=_e(),kCe=he(),RCe=ct(),NCe=rt(),OCe=Pi(),EC=OCe("forEach",TypeError);_Ce({target:"Iterator",proto:!0,real:!0,forced:EC},{forEach:function forEach(e){kCe(this);try{FCe(e)}catch(n){NCe(this,"throw",n)}if(EC)return qCe(EC,this,e);var t=RCe(this),i=0;DCe(t,function(n){e(n,i++)},{IS_RECORD:!0})}})});var H4=I(function(){"use strict";var TCe=k(),PCe=ge(),MCe=He(),UCe=pt(),GCe=Mo().IteratorPrototype,LCe=ka(),HCe=pC(),WCe=Je(),JCe=WCe||function(){try{Iterator.from({return:null}).return()}catch(r){return!0}}(),KCe=LCe(function(){return PCe(this.next,this.iterator)},!0);TCe({target:"Iterator",stat:!0,forced:JCe},{from:function from(e){var t=HCe(typeof e=="string"?MCe(e):e,!0);return UCe(GCe,t.iterator)?t.iterator:new KCe(t)}})});var V4=I(function(){"use strict";var VCe=k(),W4=ge(),YCe=_e(),J4=he(),zCe=ct(),jCe=ka(),XCe=ud(),ZCe=rt(),$Ce=Gu(),eBe=Pi(),QC=Je(),K4=!QC&&!$Ce("map",function(){}),yC=!QC&&!K4&&eBe("map",TypeError),rBe=QC||K4||yC,tBe=jCe(function(){var r=this.iterator,e=J4(W4(this.next,r)),t=this.done=!!e.done;if(!t)return XCe(r,this.mapper,[e.value,this.counter++],!0)});VCe({target:"Iterator",proto:!0,real:!0,forced:rBe},{map:function map(e){J4(this);try{YCe(e)}catch(t){ZCe(this,"throw",t)}return yC?W4(yC,this,e):new tBe(zCe(this),{mapper:e})}})});var j4=I(function(){"use strict";var iBe=k(),nBe=Pr(),aBe=_e(),oBe=he(),sBe=ct(),ABe=rt(),cBe=Pi(),uBe=Lt(),lBe=W(),Y4=TypeError,z4=lBe(function(){[].keys().reduce(function(){},void 0)}),bC=!z4&&cBe("reduce",Y4);iBe({target:"Iterator",proto:!0,real:!0,forced:z4||bC},{reduce:function reduce(e){oBe(this);try{aBe(e)}catch(o){ABe(this,"throw",o)}var t=arguments.length<2,i=t?void 0:arguments[1];if(bC)return uBe(bC,this,t?[e]:[e,i]);var n=sBe(this),a=0;if(nBe(n,function(o){t?(t=!1,i=o):i=e(i,o,a),a++},{IS_RECORD:!0}),t)throw new Y4("Reduce of empty iterator with no initial value");return i}})});var X4=I(function(){"use strict";var fBe=k(),gBe=ge(),dBe=Pr(),hBe=_e(),IBe=he(),pBe=ct(),xBe=rt(),mBe=Pi(),wC=mBe("some",TypeError);fBe({target:"Iterator",proto:!0,real:!0,forced:wC},{some:function some(e){IBe(this);try{hBe(e)}catch(n){xBe(this,"throw",n)}if(wC)return gBe(wC,this,e);var t=pBe(this),i=0;return dBe(t,function(n,a){if(e(n,i++))return a()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})});var tO=I(function(){"use strict";var vBe=k(),Z4=ge(),$4=he(),CBe=ct(),BBe=AC(),EBe=Ud(),yBe=ka(),eO=rt(),QBe=Pi(),rO=Je(),SC=!rO&&QBe("take",RangeError),bBe=yBe(function(){var r=this.iterator;if(!this.remaining--)return this.done=!0,eO(r,"normal",void 0);var e=$4(Z4(this.next,r)),t=this.done=!!e.done;if(!t)return e.value});vBe({target:"Iterator",proto:!0,real:!0,forced:rO||SC},{take:function take(e){$4(this);var t;try{t=EBe(BBe(+e))}catch(i){eO(this,"throw",i)}return SC?Z4(SC,this,t):new bBe(CBe(this),{remaining:t})}})});var iO=I(function(){"use strict";var wBe=k(),SBe=he(),_Be=Pr(),qBe=ct(),DBe=[].push;wBe({target:"Iterator",proto:!0,real:!0},{toArray:function toArray(){var e=[];return _Be(qBe(SBe(this)),DBe,{that:e,IS_RECORD:!0}),e}})});var nO=I(function(){"use strict";var FBe=k(),kBe=Jg(),RBe=om();FBe({target:"JSON",stat:!0,forced:!kBe},{isRawJSON:RBe})});var fO=I(function(){"use strict";var NBe=k(),OBe=xe(),OC=te(),TBe=we(),Gd=Y(),PBe=ge(),uO=ke(),MBe=me(),UBe=en(),GBe=Se(),LBe=Ee(),aO=er(),kC=ri(),lO=W(),HBe=Am(),WBe=ha(),oO=OC.JSON,JBe=OC.Number,$s=OC.SyntaxError,TC=oO&&oO.parse,KBe=TBe("Object","keys"),VBe=Object.getOwnPropertyDescriptor,ut=Gd("".charAt),_C=Gd("".slice),qC=Gd(/./.exec),sO=Gd([].push),DC=/^\d$/,YBe=/^[1-9]$/,zBe=/^[\d-]$/,Lu=/^[\t\n\r ]$/,FC=0,AO=1,jBe=function jBe(r,e){r=LBe(r);var t=new NC(r,0,""),i=t.parse(),n=i.value,a=t.skip(Lu,i.end);if(a<r.length)throw new $s('Unexpected extra character: "'+ut(r,a)+'" after the parsed data at: '+a);return uO(e)?RC({"":n},"",e,i):n},RC=function RC1(r,e,t,i){var n=r[e],a=i&&n===i.value,o=a&&typeof i.source=="string"?{source:i.source}:{},s,A,u,c,l;if(MBe(n)){var f=UBe(n),g=a?i.nodes:f?[]:{};if(f)for(s=g.length,u=aO(n),c=0;c<u;c++)cO(n,c,RC(n,""+c,t,c<s?g[c]:void 0));else for(A=KBe(n),u=aO(A),c=0;c<u;c++)l=A[c],cO(n,l,RC(n,l,t,GBe(g,l)?g[l]:void 0))}return PBe(t,r,e,n,o)},cO=function cO(r,e,t){if(OBe){var i=VBe(r,e);if(i&&!i.configurable)return}t===void 0?delete r[e]:kC(r,e,t)},XBe=function XBe(r,e,t,i){this.value=r,this.end=e,this.source=t,this.nodes=i},NC=function NC(r,e){this.source=r,this.index=e};NC.prototype={fork:function fork(r){return new NC(this.source,r)},parse:function parse(){var r=this.source,e=this.skip(Lu,this.index),t=this.fork(e),i=ut(r,e);if(qC(zBe,i))return t.number();switch(i){case"{":return t.object();case"[":return t.array();case'"':return t.string();case"t":return t.keyword(!0);case"f":return t.keyword(!1);case"n":return t.keyword(null)}throw new $s('Unexpected character: "'+i+'" at: '+e)},node:function node(r,e,t,i,n){return new XBe(e,i,r?null:_C(this.source,t,i),n)},object:function object(){for(var r=this.source,e=this.index+1,t=!1,i={},n={};e<r.length;){if(e=this.until(['"',"}"],e),ut(r,e)==="}"&&!t){e++;break}var a=this.fork(e).string(),o=a.value;e=a.end,e=this.until([":"],e)+1,e=this.skip(Lu,e),a=this.fork(e).parse(),kC(n,o,a),kC(i,o,a.value),e=this.until([",","}"],a.end);var s=ut(r,e);if(s===",")t=!0,e++;else if(s==="}"){e++;break}}return this.node(AO,i,this.index,e,n)},array:function array(){for(var r=this.source,e=this.index+1,t=!1,i=[],n=[];e<r.length;){if(e=this.skip(Lu,e),ut(r,e)==="]"&&!t){e++;break}var a=this.fork(e).parse();if(sO(n,a),sO(i,a.value),e=this.until([",","]"],a.end),ut(r,e)===",")t=!0,e++;else if(ut(r,e)==="]"){e++;break}}return this.node(AO,i,this.index,e,n)},string:function string(){var r=this.index,e=HBe(this.source,this.index+1);return this.node(FC,e.value,r,e.end)},number:function number(){var r=this.source,e=this.index,t=e;if(ut(r,t)==="-"&&t++,ut(r,t)==="0")t++;else if(qC(YBe,ut(r,t)))t=this.skip(DC,t+1);else throw new $s("Failed to parse number at: "+t);if(ut(r,t)==="."&&(t=this.skip(DC,t+1)),ut(r,t)==="e"||ut(r,t)==="E"){t++,(ut(r,t)==="+"||ut(r,t)==="-")&&t++;var i=t;if(t=this.skip(DC,t),i===t)throw new $s("Failed to parse number's exponent value at: "+t)}return this.node(FC,JBe(_C(r,e,t)),e,t)},keyword:function keyword(r){var e=""+r,t=this.index,i=t+e.length;if(_C(this.source,t,i)!==e)throw new $s("Failed to parse value at: "+t);return this.node(FC,r,t,i)},skip:function skip(r,e){for(var t=this.source;e<t.length&&qC(r,ut(t,e));e++);return e},until:function until(r,e){e=this.skip(Lu,e);for(var t=ut(this.source,e),i=0;i<r.length;i++)if(r[i]===t)return e;throw new $s('Unexpected character: "'+t+'" at: '+e)}};var ZBe=lO(function(){var r="9007199254740993",e;return TC(r,function(t,i,n){e=n.source}),e!==r}),$Be=WBe&&!lO(function(){return 1/TC("-0 ")!==-1/0});NBe({target:"JSON",stat:!0,forced:ZBe},{parse:function parse(e,t){return $Be&&!uO(t)?TC(e):jBe(e,t)}})});var Ra=I(function(eur,gO){"use strict";var eEe=W();gO.exports=!eEe(function(){return Object.isExtensible(Object.preventExtensions({}))})});var xO=I(function(){"use strict";var rEe=k(),tEe=Ra(),iEe=Jg(),PC=we(),nEe=Y(),aEe=Ee(),oEe=ri(),sEe=lr().set,dO=SyntaxError,AEe=PC("JSON","parse"),cEe=PC("Object","create"),uEe=PC("Object","freeze"),hO=nEe("".charAt),IO="Unacceptable as raw JSON",pO=function pO(r){return r===" "||r===" "||r==="\n"||r==="\r"};rEe({target:"JSON",stat:!0,forced:!iEe},{rawJSON:function rawJSON(e){var t=aEe(e);if(t===""||pO(hO(t,0))||pO(hO(t,t.length-1)))throw new dO(IO);var i=AEe(t);if((typeof i==="undefined"?"undefined":_type_of(i))=="object"&&i!==null)throw new dO(IO);var n=cEe(null);return sEe(n,{type:"RawJSON"}),oEe(n,"rawJSON",t),tEe?uEe(n):n}})});var mO=I(function(){"use strict";var lEe=te(),fEe=Qt();fEe(lEe.JSON,"JSON",!0)});var Ld=I(function(aur,vO){"use strict";var gEe=W();vO.exports=gEe(function(){if(typeof ArrayBuffer=="function"){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})});var Wd=I(function(our,BO){"use strict";var dEe=W(),hEe=me(),IEe=st(),CO=Ld(),Hd=Object.isExtensible,pEe=dEe(function(){Hd(1)});BO.exports=pEe||CO?function(e){return!hEe(e)||CO&&IEe(e)==="ArrayBuffer"?!1:Hd?Hd(e):!0}:Hd});var Na=I(function(sur,QO){"use strict";var xEe=k(),mEe=Y(),vEe=ks(),CEe=me(),MC=Se(),BEe=ur().f,EO=ma(),EEe=Pg(),UC=Wd(),yEe=xa(),QEe=Ra(),yO=!1,On=yEe("meta"),bEe=0,GC=function GC(r){BEe(r,On,{value:{objectID:"O"+bEe++,weakData:{}}})},wEe=function wEe(r,e){if(!CEe(r))return(typeof r==="undefined"?"undefined":_type_of(r))=="symbol"?r:(typeof r=="string"?"S":"P")+r;if(!MC(r,On)){if(!UC(r))return"F";if(!e)return"E";GC(r)}return r[On].objectID},SEe=function SEe(r,e){if(!MC(r,On)){if(!UC(r))return!0;if(!e)return!1;GC(r)}return r[On].weakData},_Ee=function _Ee(r){return QEe&&yO&&UC(r)&&!MC(r,On)&&GC(r),r},qEe=function qEe(){DEe.enable=function(){},yO=!0;var r=EO.f,e=mEe([].splice),t={};t[On]=1,r(t).length&&(EO.f=function(i){for(var n=r(i),a=0,o=n.length;a<o;a++)if(n[a]===On){e(n,a,1);break}return n},xEe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:EEe.f}))},DEe=QO.exports={enable:qEe,fastKey:wEe,getWeakData:SEe,onFreeze:_Ee};vEe[On]=!0});var Hu=I(function(Aur,wO){"use strict";var FEe=k(),kEe=te(),REe=Y(),bO=Ns(),NEe=$e(),OEe=Na(),TEe=Pr(),PEe=Ht(),MEe=ke(),UEe=Zi(),LC=me(),HC=W(),GEe=Qu(),LEe=Qt(),HEe=ya();wO.exports=function(r,e,t){var i=r.indexOf("Map")!==-1,n=r.indexOf("Weak")!==-1,a=i?"set":"add",o=kEe[r],s=o&&o.prototype,A=o,u={},c=function c(m){var x=REe(s[m]);NEe(s,m,m==="add"?function(E){return x(this,E===0?0:E),this}:m==="delete"?function(v){return n&&!LC(v)?!1:x(this,v===0?0:v)}:m==="get"?function(E){return n&&!LC(E)?void 0:x(this,E===0?0:E)}:m==="has"?function(E){return n&&!LC(E)?!1:x(this,E===0?0:E)}:function(E,S){return x(this,E===0?0:E,S),this})},l=bO(r,!MEe(o)||!(n||s.forEach&&!HC(function(){new o().entries().next()})));if(l)A=t.getConstructor(e,r,i,a),OEe.enable();else if(bO(r,!0)){var f=new A,g=f[a](n?{}:-0,1)!==f,h=HC(function(){f.has(1)}),d=GEe(function(m){new o(m)}),p=!n&&HC(function(){for(var m=new o,x=5;x--;)m[a](x,x);return!m.has(-0)});d||(A=e(function(m,x){PEe(m,s);var v=HEe(new o,m,A);return UEe(x)||TEe(x,v[a],{that:v,AS_ENTRIES:i}),v}),A.prototype=s,s.constructor=A),(h||p)&&(c("delete"),c("has"),i&&c("get")),(p||g)&&c(a),n&&s.clear&&delete s.clear}return u[r]=A,FEe({global:!0,constructor:!0,forced:A!==o},u),LEe(A,r),n||t.setStrong(A,r,i),A}});var JC=I(function(cur,kO){"use strict";var SO=Zr(),WEe=_r(),_O=nn(),JEe=Ut(),KEe=Ht(),VEe=Zi(),YEe=Pr(),zEe=dd(),Jd=ba(),jEe=Go(),Wu=xe(),qO=Na().fastKey,FO=lr(),DO=FO.set,WC=FO.getterFor;kO.exports={getConstructor:function getConstructor(r,e,t,i){var n=r(function(u,c){KEe(u,a),DO(u,{type:e,index:SO(null),first:null,last:null,size:0}),Wu||(u.size=0),VEe(c)||YEe(c,u[i],{that:u,AS_ENTRIES:t})}),a=n.prototype,o=WC(e),s=function s(u,c,l){var f=o(u),g=A(u,c),h,d;return g?g.value=l:(f.last=g={index:d=qO(c,!0),key:c,value:l,previous:h=f.last,next:null,removed:!1},f.first||(f.first=g),h&&(h.next=g),Wu?f.size++:u.size++,d!=="F"&&(f.index[d]=g)),u},A=function A(u,c){var l=o(u),f=qO(c),g;if(f!=="F")return l.index[f];for(g=l.first;g;g=g.next)if(g.key===c)return g};return _O(a,{clear:function clear(){for(var c=this,l=o(c),f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=null),f=f.next;l.first=l.last=null,l.index=SO(null),Wu?l.size=0:c.size=0},delete:function _delete(u){var c=this,l=o(c),f=A(c,u);if(f){var g=f.next,h=f.previous;delete l.index[f.index],f.removed=!0,h&&(h.next=g),g&&(g.previous=h),l.first===f&&(l.first=g),l.last===f&&(l.last=h),Wu?l.size--:c.size--}return!!f},forEach:function forEach(c){for(var l=o(this),f=JEe(c,arguments.length>1?arguments[1]:void 0),g;g=g?g.next:l.first;)for(f(g.value,g.key,this);g&&g.removed;)g=g.previous},has:function has(c){return!!A(this,c)}}),_O(a,t?{get:function get(c){var l=A(this,c);return l&&l.value},set:function set(c,l){return s(this,c===0?0:c,l)}}:{add:function add(c){return s(this,c=c===0?0:c,c)}}),Wu&&WEe(a,"size",{configurable:!0,get:function get(){return o(this).size}}),n},setStrong:function setStrong(r,e,t){var i=e+" Iterator",n=WC(e),a=WC(i);zEe(r,e,function(o,s){DO(this,{type:i,target:o,state:n(o),kind:s,last:null})},function(){for(var o=a(this),s=o.kind,A=o.last;A&&A.removed;)A=A.previous;return!o.target||!(o.last=A=A?A.next:o.state.first)?(o.target=null,Jd(void 0,!0)):Jd(s==="keys"?A.key:s==="values"?A.value:[A.key,A.value],!1)},t?"entries":"values",!t,!0),jEe(e)}}});var RO=I(function(){"use strict";var XEe=Hu(),ZEe=JC();XEe("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},ZEe)});var NO=I(function(){"use strict";RO()});var KC=I(function(dur,OO){"use strict";var Kd=Y(),Ju=Map.prototype;OO.exports={Map:Map,set:Kd(Ju.set),get:Kd(Ju.get),has:Kd(Ju.has),remove:Kd(Ju.delete),proto:Ju}});var MO=I(function(){"use strict";var $Ee=k(),eye=Y(),rye=_e(),tye=hr(),iye=Pr(),Vd=KC(),TO=Je(),nye=W(),PO=Vd.Map,aye=Vd.has,oye=Vd.get,sye=Vd.set,Aye=eye([].push),cye=TO||nye(function(){return PO.groupBy("ab",function(r){return r}).get("a").length!==1});$Ee({target:"Map",stat:!0,forced:TO||cye},{groupBy:function groupBy(e,t){tye(e),rye(t);var i=new PO,n=0;return iye(e,function(a){var o=t(a,n++);aye(i,o)?Aye(oye(i,o),a):sye(i,o,[a])}),i}})});var VC=I(function(pur,UO){"use strict";var uye=Math.log;UO.exports=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:uye(1+t)}});var LO=I(function(){"use strict";var lye=k(),fye=VC(),YC=Math.acosh,gye=Math.log,GO=Math.sqrt,dye=Math.LN2,hye=!YC||Math.floor(YC(Number.MAX_VALUE))!==710||YC(1/0)!==1/0;lye({target:"Math",stat:!0,forced:hye},{acosh:function acosh(e){var t=+e;return t<1?NaN:t>94906265.62425156?gye(t)+dye:fye(t-1+GO(t-1)*GO(t+1))}})});var JO=I(function(){"use strict";var Iye=k(),HO=Math.asinh,pye=Math.log,xye=Math.sqrt;function WO(r){var e=+r;return!isFinite(e)||e===0?e:e<0?-WO(-e):pye(e+xye(e*e+1))}var mye=!(HO&&1/HO(0)>0);Iye({target:"Math",stat:!0,forced:mye},{asinh:WO})});var VO=I(function(){"use strict";var vye=k(),KO=Math.atanh,Cye=Math.log,Bye=!(KO&&1/KO(-0)<0);vye({target:"Math",stat:!0,forced:Bye},{atanh:function atanh(e){var t=+e;return t===0?t:Cye((1+t)/(1-t))/2}})});var YO=I(function(){"use strict";var Eye=k(),yye=vd(),Qye=Math.abs,bye=Math.pow;Eye({target:"Math",stat:!0},{cbrt:function cbrt(e){var t=+e;return yye(t)*bye(Qye(t),1/3)}})});var zO=I(function(){"use strict";var wye=k(),Sye=Math.floor,_ye=Math.log,qye=Math.LOG2E;wye({target:"Math",stat:!0},{clz32:function clz32(e){var t=e>>>0;return t?31-Sye(_ye(t+.5)*qye):32}})});var Vu=I(function(Sur,jO){"use strict";var Ku=Math.expm1,Dye=Math.exp;jO.exports=!Ku||Ku(10)>22025.465794806718||Ku(10)<22025.465794806718||Ku(-2e-17)!==-2e-17?function(e){var t=+e;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:Dye(t)-1}:Ku});var ZO=I(function(){"use strict";var Fye=k(),kye=Vu(),XO=Math.cosh,Rye=Math.abs,zC=Math.E,Nye=!XO||XO(710)===1/0;Fye({target:"Math",stat:!0,forced:Nye},{cosh:function cosh(e){var t=kye(Rye(e)-1)+1;return(t+1/(t*zC*zC))*(zC/2)}})});var e8=I(function(){"use strict";var Oye=k(),$O=Vu();Oye({target:"Math",stat:!0,forced:$O!==Math.expm1},{expm1:$O})});var r8=I(function(){"use strict";var Tye=k(),Pye=uv();Tye({target:"Math",stat:!0},{fround:Pye})});var t8=I(function(){"use strict";var Mye=k(),Uye=cv(),Gye=9765625e-10,Lye=65504,Hye=6103515625e-14;Mye({target:"Math",stat:!0},{f16round:function f16round(e){return Uye(e,Gye,Lye,Hye)}})});var n8=I(function(){"use strict";var Wye=k(),i8=Math.hypot,Jye=Math.abs,Kye=Math.sqrt,Vye=!!i8&&i8(1/0,NaN)!==1/0;Wye({target:"Math",stat:!0,arity:2,forced:Vye},{hypot:function hypot(e,t){for(var i=0,n=0,a=arguments.length,o=0,s,A;n<a;)s=Jye(arguments[n++]),o<s?(A=o/s,i=i*A*A+1,o=s):s>0?(A=s/o,i+=A*A):i+=s;return o===1/0?1/0:o*Kye(i)}})});var o8=I(function(){"use strict";var Yye=k(),zye=W(),a8=Math.imul,jye=zye(function(){return a8(0xffffffff,5)!==-5||a8.length!==2});Yye({target:"Math",stat:!0,forced:jye},{imul:function imul(e,t){var i=65535,n=+e,a=+t,o=i&n,s=i&a;return 0|o*s+((i&n>>>16)*s+o*(i&a>>>16)<<16>>>0)}})});var jC=I(function(Gur,s8){"use strict";var Xye=Math.log,Zye=Math.LOG10E;s8.exports=Math.log10||function(e){return Xye(e)*Zye}});var A8=I(function(){"use strict";var $ye=k(),eQe=jC();$ye({target:"Math",stat:!0},{log10:eQe})});var c8=I(function(){"use strict";var rQe=k(),tQe=VC();rQe({target:"Math",stat:!0},{log1p:tQe})});var u8=I(function(){"use strict";var iQe=k(),nQe=Sv();iQe({target:"Math",stat:!0},{log2:nQe})});var l8=I(function(){"use strict";var aQe=k(),oQe=vd();aQe({target:"Math",stat:!0},{sign:oQe})});var d8=I(function(){"use strict";var sQe=k(),AQe=W(),f8=Vu(),cQe=Math.abs,g8=Math.exp,uQe=Math.E,lQe=AQe(function(){return Math.sinh(-2e-17)!==-2e-17});sQe({target:"Math",stat:!0,forced:lQe},{sinh:function sinh(e){var t=+e;return cQe(t)<1?(f8(t)-f8(-t))/2:(g8(t-1)-g8(-t-1))*(uQe/2)}})});var m8=I(function(){"use strict";var fQe=k(),gQe=Y(),dQe=Pr(),hQe=RangeError,IQe=TypeError,hi=1/0,pQe=NaN,Wo=Math.abs,eB=Math.pow,h8=gQe([].push),Yu=eB(2,1023),xQe=eB(2,53)-1,I8=Number.MAX_VALUE,p8=eB(2,971),zu={},XC={},ZC={},$C={},x8={},Yd=function Yd(r,e){var t=r+e,i=e-(t-r);return{hi:t,lo:i}};fQe({target:"Math",stat:!0},{sumPrecise:function sumPrecise(e){var t=[],i=0,n=$C;switch(dQe(e,function(v){if(++i>=xQe)throw new hQe("Maximum allowed index exceeded");if(typeof v!="number")throw new IQe("Value is not a number");n!==zu&&(v!==v?n=zu:v===hi?n=n===XC?zu:ZC:v===-hi?n=n===ZC?zu:XC:(v!==0||1/v===hi)&&(n===$C||n===x8)&&(n=x8,h8(t,v)))}),n){case zu:return pQe;case XC:return-hi;case ZC:return hi;case $C:return-0}for(var a=[],o=0,s,A,u,c,l,f,g=0;g<t.length;g++){s=t[g];for(var h=0,d=0;d<a.length;d++){if(A=a[d],Wo(s)<Wo(A)&&(f=s,s=A,A=f),u=Yd(s,A),c=u.hi,l=u.lo,Wo(c)===hi){var p=c===hi?1:-1;o+=p,s=s-p*Yu-p*Yu,Wo(s)<Wo(A)&&(f=s,s=A,A=f),u=Yd(s,A),c=u.hi,l=u.lo}l!==0&&(a[h++]=l),s=c}a.length=h,s!==0&&h8(a,s)}var m=a.length-1;if(c=0,l=0,o!==0){var x=m>=0?a[m]:0;if(m--,Wo(o)>1||o>0&&x>0||o<0&&x<0)return o>0?hi:-hi;if(u=Yd(o*Yu,x/2),c=u.hi,l=u.lo,l*=2,Wo(2*c)===hi)return c>0?c===Yu&&l===-(p8/2)&&m>=0&&a[m]<0?I8:hi:c===-Yu&&l===p8/2&&m>=0&&a[m]>0?-I8:-hi;l!==0&&(a[++m]=l,l=0),c*=2}for(;m>=0&&(u=Yd(c,a[m--]),c=u.hi,l=u.lo,l===0););return m>=0&&(l<0&&a[m]<0||l>0&&a[m]>0)&&(A=l*2,s=c+A,A===s-c&&(c=s)),c}})});var B8=I(function(){"use strict";var mQe=k(),v8=Vu(),C8=Math.exp;mQe({target:"Math",stat:!0},{tanh:function tanh(e){var t=+e,i=v8(t),n=v8(-t);return i===1/0?1:n===1/0?-1:(i-n)/(C8(t)+C8(-t))}})});var E8=I(function(){"use strict";var vQe=Qt();vQe(Math,"Math",!0)});var y8=I(function(){"use strict";var CQe=k(),BQe=Ox();CQe({target:"Math",stat:!0},{trunc:BQe})});var ju=I(function(olr,Q8){"use strict";var EQe=Y();Q8.exports=EQe(1.1.valueOf)});var eA=I(function(slr,b8){"use strict";b8.exports=" \n\v\f\r \xa0  \u2028\u2029\uFEFF"});var Jo=I(function(Alr,S8){"use strict";var yQe=Y(),QQe=hr(),bQe=Ee(),tB=eA(),w8=yQe("".replace),wQe=RegExp("^["+tB+"]+"),SQe=RegExp("(^|[^"+tB+"])["+tB+"]+$"),rB=function rB(r){return function(e){var t=bQe(QQe(e));return r&1&&(t=w8(t,wQe,"")),r&2&&(t=w8(t,SQe,"$1")),t}};S8.exports={start:rB(1),end:rB(2),trim:rB(3)}});var N8=I(function(){"use strict";var _Qe=k(),iB=Je(),qQe=xe(),D8=te(),nB=fu(),F8=Y(),DQe=Ns(),_8=Se(),FQe=ya(),kQe=pt(),RQe=Ia(),k8=ou(),NQe=W(),OQe=ma().f,TQe=jr().f,PQe=ur().f,MQe=ju(),UQe=Jo().trim,Xu="Number",rA=D8[Xu],q8=nB[Xu],aB=rA.prototype,GQe=D8.TypeError,LQe=F8("".slice),zd=F8("".charCodeAt),HQe=function HQe(r){var e=k8(r,"number");return(typeof e==="undefined"?"undefined":_type_of(e))=="bigint"?e:WQe(e)},WQe=function WQe(r){var e=k8(r,"number"),t,i,n,a,o,s,A,u;if(RQe(e))throw new GQe("Cannot convert a Symbol value to a number");if(typeof e=="string"&&e.length>2){if(e=UQe(e),t=zd(e,0),t===43||t===45){if(i=zd(e,2),i===88||i===120)return NaN}else if(t===48){switch(zd(e,1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+e}for(o=LQe(e,2),s=o.length,A=0;A<s;A++)if(u=zd(o,A),u<48||u>a)return NaN;return parseInt(o,n)}}return+e},oB=DQe(Xu,!rA(" 0o1")||!rA("0b1")||rA("+0x1")),JQe=function JQe(r){return kQe(aB,r)&&NQe(function(){MQe(r)})},jd=function jd1(e){var t=arguments.length<1?0:rA(HQe(e));return JQe(this)?FQe(Object(t),this,jd):t};jd.prototype=aB;oB&&!iB&&(aB.constructor=jd);_Qe({global:!0,constructor:!0,wrap:!0,forced:oB},{Number:jd});var R8=function R8(r,e){for(var t=qQe?OQe(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0,n;t.length>i;i++)_8(e,n=t[i])&&!_8(r,n)&&PQe(r,n,TQe(e,n))};iB&&q8&&R8(nB[Xu],q8);(oB||iB)&&R8(nB[Xu],rA)});var O8=I(function(){"use strict";var KQe=k();KQe({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})});var P8=I(function(glr,T8){"use strict";var VQe=te(),YQe=VQe.isFinite;T8.exports=Number.isFinite||function(e){return typeof e=="number"&&YQe(e)}});var M8=I(function(){"use strict";var zQe=k(),jQe=P8();zQe({target:"Number",stat:!0},{isFinite:jQe})});var Xd=I(function(Ilr,U8){"use strict";var XQe=me(),ZQe=Math.floor;U8.exports=Number.isInteger||function(e){return!XQe(e)&&isFinite(e)&&ZQe(e)===e}});var G8=I(function(){"use strict";var $Qe=k(),ebe=Xd();$Qe({target:"Number",stat:!0},{isInteger:ebe})});var L8=I(function(){"use strict";var rbe=k();rbe({target:"Number",stat:!0},{isNaN:function isNaN1(e){return e!==e}})});var H8=I(function(){"use strict";var tbe=k(),ibe=Xd(),nbe=Math.abs;tbe({target:"Number",stat:!0},{isSafeInteger:function isSafeInteger(e){return ibe(e)&&nbe(e)<=0x1fffffffffffff}})});var W8=I(function(){"use strict";var abe=k();abe({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:0x1fffffffffffff})});var J8=I(function(){"use strict";var obe=k();obe({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-0x1fffffffffffff})});var sB=I(function(wlr,z8){"use strict";var Y8=te(),sbe=W(),Abe=Y(),cbe=Ee(),ube=Jo().trim,lbe=eA(),fbe=Abe("".charAt),Zd=Y8.parseFloat,K8=Y8.Symbol,V8=K8&&K8.iterator,gbe=1/Zd(lbe+"-0")!==-1/0||V8&&!sbe(function(){Zd(Object(V8))});z8.exports=gbe?function(e){var t=ube(cbe(e)),i=Zd(t);return i===0&&fbe(t,0)==="-"?-0:i}:Zd});var X8=I(function(){"use strict";var dbe=k(),j8=sB();dbe({target:"Number",stat:!0,forced:Number.parseFloat!==j8},{parseFloat:j8})});var AB=I(function(qlr,iT){"use strict";var rT=te(),hbe=W(),Ibe=Y(),pbe=Ee(),xbe=Jo().trim,Z8=eA(),Zu=rT.parseInt,$8=rT.Symbol,eT=$8&&$8.iterator,tT=/^[+-]?0x/i,mbe=Ibe(tT.exec),vbe=Zu(Z8+"08")!==8||Zu(Z8+"0x16")!==22||eT&&!hbe(function(){Zu(Object(eT))});iT.exports=vbe?function(e,t){var i=xbe(pbe(e));return Zu(i,t>>>0||(mbe(tT,i)?16:10))}:Zu});var aT=I(function(){"use strict";var Cbe=k(),nT=AB();Cbe({target:"Number",stat:!0,forced:Number.parseInt!==nT},{parseInt:nT})});var uT=I(function(){"use strict";var Bbe=k(),uB=Y(),Ebe=Br(),ybe=ju(),Qbe=Tu(),bbe=jC(),cB=W(),wbe=RangeError,oT=String,Sbe=isFinite,_be=Math.abs,qbe=Math.floor,sT=Math.pow,Dbe=Math.round,An=uB(1.1.toExponential),Fbe=uB(Qbe),AT=uB("".slice),cT=An(-69e-12,4)==="-6.9000e-11"&&An(1.255,2)==="1.25e+0"&&An(12345,3)==="1.235e+4"&&An(25,0)==="3e+1",kbe=function kbe(){return cB(function(){An(1,1/0)})&&cB(function(){An(1,-1/0)})},Rbe=function Rbe(){return!cB(function(){An(1/0,1/0),An(NaN,1/0)})},Nbe=!cT||!kbe()||!Rbe();Bbe({target:"Number",proto:!0,forced:Nbe},{toExponential:function toExponential(e){var t=ybe(this);if(e===void 0)return An(t);var i=Ebe(e);if(!Sbe(t))return String(t);if(i<0||i>20)throw new wbe("Incorrect fraction digits");if(cT)return An(t,i);var n="",a,o,s,A;if(t<0&&(n="-",t=-t),t===0)o=0,a=Fbe("0",i+1);else{var u=bbe(t);o=qbe(u);var c=sT(10,o-i),l=Dbe(t/c);2*t>=(2*l+1)*c&&(l+=1),l>=sT(10,i+1)&&(l/=10,o+=1),a=oT(l)}return i!==0&&(a=AT(a,0,1)+"."+AT(a,1)),o===0?(s="+",A="0"):(s=o>0?"+":"-",A=oT(_be(o))),a+="e"+s+A,n+a}})});var IT=I(function(){"use strict";var Obe=k(),gB=Y(),Tbe=Br(),Pbe=ju(),Mbe=Tu(),lT=W(),Ube=RangeError,dT=String,hT=Math.floor,fB=gB(Mbe),fT=gB("".slice),$u=gB(1.1.toFixed),iA=function iA1(r,e,t){return e===0?t:e%2===1?iA(r,e-1,t*r):iA(r*r,e/2,t)},Gbe=function Gbe(r){for(var e=0,t=r;t>=4096;)e+=12,t/=4096;for(;t>=2;)e+=1,t/=2;return e},tA=function tA(r,e,t){for(var i=-1,n=t;++i<6;)n+=e*r[i],r[i]=n%1e7,n=hT(n/1e7)},lB=function lB(r,e){for(var t=6,i=0;--t>=0;)i+=r[t],r[t]=hT(i/e),i=i%e*1e7},gT=function gT(r){for(var e=6,t="";--e>=0;)if(t!==""||e===0||r[e]!==0){var i=dT(r[e]);t=t===""?i:t+fB("0",7-i.length)+i}return t},Lbe=lT(function(){return $u(8e-5,3)!=="0.000"||$u(.9,0)!=="1"||$u(1.255,2)!=="1.25"||$u(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!lT(function(){$u({})});Obe({target:"Number",proto:!0,forced:Lbe},{toFixed:function toFixed(e){var t=Pbe(this),i=Tbe(e),n=[0,0,0,0,0,0],a="",o="0",s,A,u,c;if(i<0||i>20)throw new Ube("Incorrect fraction digits");if(t!==t)return"NaN";if(t<=-1e21||t>=1e21)return dT(t);if(t<0&&(a="-",t=-t),t>1e-21)if(s=Gbe(t*iA(2,69,1))-69,A=s<0?t*iA(2,-s,1):t/iA(2,s,1),A*=0x10000000000000,s=52-s,s>0){for(tA(n,0,A),u=i;u>=7;)tA(n,1e7,0),u-=7;for(tA(n,iA(10,u,1),0),u=s-1;u>=23;)lB(n,1<<23),u-=23;lB(n,1<<u),tA(n,1,1),lB(n,2),o=gT(n)}else tA(n,0,A),tA(n,1<<-s,0),o=gT(n)+fB("0",i);return i>0?(c=o.length,o=a+(c<=i?"0."+fB("0",i-c)+o:fT(o,0,c-i)+"."+fT(o,c-i))):o=a+o,o}})});var mT=I(function(){"use strict";var Hbe=k(),Wbe=Y(),pT=W(),xT=ju(),$d=Wbe(1.1.toPrecision),Jbe=pT(function(){return $d(1,void 0)!=="1"})||!pT(function(){$d({})});Hbe({target:"Number",proto:!0,forced:Jbe},{toPrecision:function toPrecision(e){return e===void 0?$d(xT(this)):$d(xT(this),e)}})});var hB=I(function(Mlr,BT){"use strict";var vT=xe(),Kbe=Y(),Vbe=ge(),Ybe=W(),dB=Os(),zbe=uu(),jbe=nu(),Xbe=He(),Zbe=bo(),nA=Object.assign,CT=Object.defineProperty,$be=Kbe([].concat);BT.exports=!nA||Ybe(function(){if(vT&&nA({b:1},nA(CT({},"a",{enumerable:!0,get:function get(){CT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var r={},e={},t=Symbol("assign detection"),i="abcdefghijklmnopqrst";return r[t]=7,i.split("").forEach(function(n){e[n]=n}),nA({},r)[t]!==7||dB(nA({},e)).join("")!==i})?function(e,t){for(var i=Xbe(e),n=arguments.length,a=1,o=zbe.f,s=jbe.f;n>a;)for(var A=Zbe(arguments[a++]),u=o?$be(dB(A),o(A)):dB(A),c=u.length,l=0,f;c>l;)f=u[l++],(!vT||Vbe(s,A,f))&&(i[f]=A[f]);return i}:nA});var yT=I(function(){"use strict";var ewe=k(),ET=hB();ewe({target:"Object",stat:!0,arity:2,forced:Object.assign!==ET},{assign:ET})});var QT=I(function(){"use strict";var rwe=k(),twe=xe(),iwe=Zr();rwe({target:"Object",stat:!0,sham:!twe},{create:iwe})});var el=I(function(Wlr,wT){"use strict";var nwe=Je(),awe=te(),owe=W(),bT=md();wT.exports=nwe||!owe(function(){if(!(bT&&bT<535)){var r=Math.random();__defineSetter__.call(null,r,function(){}),delete awe[r]}})});var ST=I(function(){"use strict";var swe=k(),Awe=xe(),cwe=el(),uwe=_e(),lwe=He(),fwe=ur();Awe&&swe({target:"Object",proto:!0,forced:cwe},{__defineGetter__:function __defineGetter__(e,t){fwe.f(lwe(this),e,{get:uwe(t),enumerable:!0,configurable:!0})}})});var qT=I(function(){"use strict";var gwe=k(),dwe=xe(),_T=Ng().f;gwe({target:"Object",stat:!0,forced:Object.defineProperties!==_T,sham:!dwe},{defineProperties:_T})});var FT=I(function(){"use strict";var hwe=k(),Iwe=xe(),DT=ur().f;hwe({target:"Object",stat:!0,forced:Object.defineProperty!==DT,sham:!Iwe},{defineProperty:DT})});var kT=I(function(){"use strict";var pwe=k(),xwe=xe(),mwe=el(),vwe=_e(),Cwe=He(),Bwe=ur();xwe&&pwe({target:"Object",proto:!0,forced:mwe},{__defineSetter__:function __defineSetter__1(e,t){Bwe.f(Cwe(this),e,{set:vwe(t),enumerable:!0,configurable:!0})}})});var IB=I(function($lr,PT){"use strict";var NT=xe(),Ewe=W(),OT=Y(),ywe=xt(),Qwe=Os(),bwe=Wr(),wwe=nu().f,TT=OT(wwe),Swe=OT([].push),_we=NT&&Ewe(function(){var r=Object.create(null);return r[2]=2,!TT(r,2)}),RT=function RT(r){return function(e){for(var t=bwe(e),i=Qwe(t),n=_we&&ywe(t)===null,a=i.length,o=0,s=[],A;a>o;)A=i[o++],(!NT||(n?A in t:TT(t,A)))&&Swe(s,r?[A,t[A]]:t[A]);return s}};PT.exports={entries:RT(!0),values:RT(!1)}});var MT=I(function(){"use strict";var qwe=k(),Dwe=IB().entries;qwe({target:"Object",stat:!0},{entries:function entries(e){return Dwe(e)}})});var UT=I(function(){"use strict";var Fwe=k(),kwe=Ra(),Rwe=W(),Nwe=me(),Owe=Na().onFreeze,pB=Object.freeze,Twe=Rwe(function(){pB(1)});Fwe({target:"Object",stat:!0,forced:Twe,sham:!kwe},{freeze:function freeze(e){return pB&&Nwe(e)?pB(Owe(e)):e}})});var GT=I(function(){"use strict";var Pwe=k(),Mwe=Pr(),Uwe=ri();Pwe({target:"Object",stat:!0},{fromEntries:function fromEntries(e){var t={};return Mwe(e,function(i,n){Uwe(t,i,n)},{AS_ENTRIES:!0}),t}})});var WT=I(function(){"use strict";var Gwe=k(),Lwe=W(),Hwe=Wr(),LT=jr().f,HT=xe(),Wwe=!HT||Lwe(function(){LT(1)});Gwe({target:"Object",stat:!0,forced:Wwe,sham:!HT},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){return LT(Hwe(e),t)}})});var JT=I(function(){"use strict";var Jwe=k(),Kwe=xe(),Vwe=Dg(),Ywe=Wr(),zwe=jr(),jwe=ri();Jwe({target:"Object",stat:!0,sham:!Kwe},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(e){for(var t=Ywe(e),i=zwe.f,n=Vwe(t),a={},o=0,s,A;n.length>o;)A=i(t,s=n[o++]),A!==void 0&&jwe(a,s,A);return a}})});var KT=I(function(){"use strict";var Xwe=k(),Zwe=W(),$we=Pg().f,e1e=Zwe(function(){return!Object.getOwnPropertyNames(1)});Xwe({target:"Object",stat:!0,forced:e1e},{getOwnPropertyNames:$we})});var YT=I(function(){"use strict";var r1e=k(),t1e=W(),i1e=He(),VT=xt(),n1e=ed(),a1e=t1e(function(){VT(1)});r1e({target:"Object",stat:!0,forced:a1e,sham:!n1e},{getPrototypeOf:function getPrototypeOf(e){return VT(i1e(e))}})});var jT=I(function(){"use strict";var o1e=k(),s1e=ri(),A1e=we(),c1e=Y(),u1e=_e(),l1e=hr(),f1e=wn(),g1e=Pr(),d1e=W(),zT=Object.groupBy,h1e=A1e("Object","create"),I1e=c1e([].push),p1e=!zT||d1e(function(){return zT("ab",function(r){return r}).a.length!==1});o1e({target:"Object",stat:!0,forced:p1e},{groupBy:function groupBy(e,t){l1e(e),u1e(t);var i=h1e(null),n=0;return g1e(e,function(a){var o=f1e(t(a,n++));o in i?I1e(i[o],a):s1e(i,o,[a])}),i}})});var XT=I(function(){"use strict";var x1e=k(),m1e=Se();x1e({target:"Object",stat:!0},{hasOwn:m1e})});var xB=I(function(xfr,ZT){"use strict";ZT.exports=Object.is||function(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}});var $T=I(function(){"use strict";var v1e=k(),C1e=xB();v1e({target:"Object",stat:!0},{is:C1e})});var r5=I(function(){"use strict";var B1e=k(),e5=Wd();B1e({target:"Object",stat:!0,forced:Object.isExtensible!==e5},{isExtensible:e5})});var i5=I(function(){"use strict";var E1e=k(),y1e=W(),Q1e=me(),b1e=st(),t5=Ld(),mB=Object.isFrozen,w1e=t5||y1e(function(){mB(1)});E1e({target:"Object",stat:!0,forced:w1e},{isFrozen:function isFrozen(e){return!Q1e(e)||t5&&b1e(e)==="ArrayBuffer"?!0:mB?mB(e):!1}})});var a5=I(function(){"use strict";var S1e=k(),_1e=W(),q1e=me(),D1e=st(),n5=Ld(),vB=Object.isSealed,F1e=n5||_1e(function(){vB(1)});S1e({target:"Object",stat:!0,forced:F1e},{isSealed:function isSealed(e){return!q1e(e)||n5&&D1e(e)==="ArrayBuffer"?!0:vB?vB(e):!1}})});var s5=I(function(){"use strict";var k1e=k(),R1e=He(),o5=Os(),N1e=W(),O1e=N1e(function(){o5(1)});k1e({target:"Object",stat:!0,forced:O1e},{keys:function keys(e){return o5(R1e(e))}})});var A5=I(function(){"use strict";var T1e=k(),P1e=xe(),M1e=el(),U1e=He(),G1e=wn(),L1e=xt(),H1e=jr().f;P1e&&T1e({target:"Object",proto:!0,forced:M1e},{__lookupGetter__:function __lookupGetter__(e){var t=U1e(this),i=G1e(e),n;do if(n=H1e(t,i))return n.get;while(t=L1e(t))}})});var c5=I(function(){"use strict";var W1e=k(),J1e=xe(),K1e=el(),V1e=He(),Y1e=wn(),z1e=xt(),j1e=jr().f;J1e&&W1e({target:"Object",proto:!0,forced:K1e},{__lookupSetter__:function __lookupSetter__(e){var t=V1e(this),i=Y1e(e),n;do if(n=j1e(t,i))return n.set;while(t=z1e(t))}})});var u5=I(function(){"use strict";var X1e=k(),Z1e=me(),$1e=Na().onFreeze,eSe=Ra(),rSe=W(),CB=Object.preventExtensions,tSe=rSe(function(){CB(1)});X1e({target:"Object",stat:!0,forced:tSe,sham:!eSe},{preventExtensions:function preventExtensions(e){return CB&&Z1e(e)?CB($1e(e)):e}})});var h5=I(function(){"use strict";var iSe=xe(),nSe=_r(),aSe=me(),oSe=xm(),sSe=He(),ASe=hr(),l5=Object.getPrototypeOf,f5=Object.setPrototypeOf,g5=Object.prototype,d5="__proto__";if(iSe&&l5&&f5&&!(d5 in g5))try{nSe(g5,d5,{configurable:!0,get:function get(){return l5(sSe(this))},set:function set(e){var t=ASe(this);oSe(e)&&aSe(t)&&f5(t,e)}})}catch(r){}});var I5=I(function(){"use strict";var cSe=k(),uSe=me(),lSe=Na().onFreeze,fSe=Ra(),gSe=W(),BB=Object.seal,dSe=gSe(function(){BB(1)});cSe({target:"Object",stat:!0,forced:dSe,sham:!fSe},{seal:function seal(e){return BB&&uSe(e)?BB(lSe(e)):e}})});var p5=I(function(){"use strict";var hSe=k(),ISe=di();hSe({target:"Object",stat:!0},{setPrototypeOf:ISe})});var m5=I(function(Gfr,x5){"use strict";var pSe=kg(),xSe=Mt();x5.exports=pSe?({}).toString:function(){return"[object "+xSe(this)+"]"}});var v5=I(function(){"use strict";var mSe=kg(),vSe=$e(),CSe=m5();mSe||vSe(Object.prototype,"toString",CSe,{unsafe:!0})});var C5=I(function(){"use strict";var BSe=k(),ESe=IB().values;BSe({target:"Object",stat:!0},{values:function values(e){return ESe(e)}})});var E5=I(function(){"use strict";var ySe=k(),B5=sB();ySe({global:!0,forced:parseFloat!==B5},{parseFloat:B5})});var Q5=I(function(){"use strict";var QSe=k(),y5=AB();QSe({global:!0,forced:parseInt!==y5},{parseInt:y5})});var eh=I(function(jfr,b5){"use strict";var bSe=Ca(),wSe=pa(),SSe=TypeError;b5.exports=function(r){if(bSe(r))return r;throw new SSe(wSe(r)+" is not a constructor")}});var rl=I(function(Xfr,S5){"use strict";var w5=he(),_Se=eh(),qSe=Zi(),DSe=ve(),FSe=DSe("species");S5.exports=function(r,e){var t=w5(r).constructor,i;return t===void 0||qSe(i=w5(t)[FSe])?e:_Se(i)}});var ii=I(function(Zfr,_5){"use strict";var kSe=TypeError;_5.exports=function(r,e){if(r<e)throw new kSe("Not enough arguments");return r}});var EB=I(function($fr,q5){"use strict";var RSe=Fi();q5.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(RSe)});var nl=I(function(egr,M5){"use strict";var ni=te(),NSe=Lt(),OSe=Ut(),D5=ke(),TSe=Se(),P5=W(),F5=Mx(),PSe=ei(),k5=su(),MSe=ii(),USe=EB(),GSe=Uo(),_B=ni.setImmediate,qB=ni.clearImmediate,LSe=ni.process,yB=ni.Dispatch,HSe=ni.Function,R5=ni.MessageChannel,WSe=ni.String,QB=0,tl={},N5="onreadystatechange",il,Ko,bB,wB;P5(function(){il=ni.location});var DB=function DB(r){if(TSe(tl,r)){var e=tl[r];delete tl[r],e()}},SB=function SB(r){return function(){DB(r)}},O5=function O5(r){DB(r.data)},T5=function T5(r){ni.postMessage(WSe(r),il.protocol+"//"+il.host)};(!_B||!qB)&&(_B=function _B(e){MSe(arguments.length,1);var t=D5(e)?e:HSe(e),i=PSe(arguments,1);return tl[++QB]=function(){NSe(t,void 0,i)},Ko(QB),QB},qB=function qB(e){delete tl[e]},GSe?Ko=function Ko(r){LSe.nextTick(SB(r))}:yB&&yB.now?Ko=function Ko(r){yB.now(SB(r))}:R5&&!USe?(bB=new R5,wB=bB.port2,bB.port1.onmessage=O5,Ko=OSe(wB.postMessage,wB)):ni.addEventListener&&D5(ni.postMessage)&&!ni.importScripts&&il&&il.protocol!=="file:"&&!P5(T5)?(Ko=T5,ni.addEventListener("message",O5,!1)):N5 in k5("script")?Ko=function Ko(r){F5.appendChild(k5("script"))[N5]=function(){F5.removeChild(this),DB(r)}}:Ko=function Ko(r){setTimeout(SB(r),0)});M5.exports={set:_B,clear:qB}});var FB=I(function(rgr,G5){"use strict";var U5=te(),JSe=xe(),KSe=Object.getOwnPropertyDescriptor;G5.exports=function(r){if(!JSe)return U5[r];var e=KSe(U5,r);return e&&e.value}});var kB=I(function(tgr,H5){"use strict";var L5=function L5(){this.head=null,this.tail=null};L5.prototype={add:function add(r){var e={item:r,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function get(){var r=this.head;if(r){var e=this.head=r.next;return e===null&&(this.tail=null),r.item}}};H5.exports=L5});var J5=I(function(igr,W5){"use strict";var VSe=Fi();W5.exports=/ipad|iphone|ipod/i.test(VSe)&&typeof Pebble!="undefined"});var V5=I(function(ngr,K5){"use strict";var YSe=Fi();K5.exports=/web0s(?!.*chrome)/i.test(YSe)});var MB=I(function(agr,$5){"use strict";var oA=te(),zSe=FB(),Y5=Ut(),RB=nl().set,jSe=kB(),XSe=EB(),ZSe=J5(),$Se=V5(),NB=Uo(),z5=oA.MutationObserver||oA.WebKitMutationObserver,j5=oA.document,X5=oA.process,rh=oA.Promise,PB=zSe("queueMicrotask"),aA,OB,TB,th,Z5;PB||(al=new jSe,ol=function ol(){var r,e;for(NB&&(r=X5.domain)&&r.exit();e=al.get();)try{e()}catch(t){throw al.head&&aA(),t}r&&r.enter()},!XSe&&!NB&&!$Se&&z5&&j5?(OB=!0,TB=j5.createTextNode(""),new z5(ol).observe(TB,{characterData:!0}),aA=function aA(){TB.data=OB=!OB}):!ZSe&&rh&&rh.resolve?(th=rh.resolve(void 0),th.constructor=rh,Z5=Y5(th.then,th),aA=function aA(){Z5(ol)}):NB?aA=function aA(){X5.nextTick(ol)}:(RB=Y5(RB,oA),aA=function aA(){RB(ol)}),PB=function PB(r){al.head||aA(),al.add(r)});var al,ol;$5.exports=PB});var rP=I(function(ogr,eP){"use strict";eP.exports=function(r,e){try{arguments.length===1?console.error(r):console.error(r,e)}catch(t){}}});var Vo=I(function(sgr,tP){"use strict";tP.exports=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}}});var Yo=I(function(Agr,iP){"use strict";var e_e=te();iP.exports=e_e.Promise});var sA=I(function(cgr,sP){"use strict";var r_e=te(),sl=Yo(),t_e=ke(),i_e=Ns(),n_e=yg(),a_e=ve(),nP=Du(),o_e=Je(),UB=Ri(),aP=sl&&sl.prototype,s_e=a_e("species"),GB=!1,oP=t_e(r_e.PromiseRejectionEvent),A_e=i_e("Promise",function(){var r=n_e(sl),e=r!==String(sl);if(!e&&UB===66||o_e&&!(aP.catch&&aP.finally))return!0;if(!UB||UB<51||!/native code/.test(r)){var t=new sl(function(a){a(1)}),i=function i(a){a(function(){},function(){})},n=t.constructor={};if(n[s_e]=i,GB=_instanceof(t.then(function(){}),i),!GB)return!0}return!e&&(nP==="BROWSER"||nP==="DENO")&&!oP});sP.exports={CONSTRUCTOR:A_e,REJECTION_EVENT:oP,SUBCLASSING:GB}});var cn=I(function(ugr,cP){"use strict";var AP=_e(),c_e=TypeError,u_e=function u_e(r){var e,t;this.promise=new r(function(i,n){if(e!==void 0||t!==void 0)throw new c_e("Bad Promise constructor");e=i,t=n}),this.resolve=AP(e),this.reject=AP(t)};cP.exports.f=function(r){return new u_e(r)}});var _P=I(function(){"use strict";var l_e=k(),f_e=Je(),oh=Uo(),Oa=te(),g_e=fu(),lA=ge(),uP=$e(),lP=di(),d_e=Qt(),h_e=Go(),I_e=_e(),ah=ke(),p_e=me(),x_e=Ht(),m_e=rl(),IP=nl().set,KB=MB(),v_e=rP(),C_e=Vo(),B_e=kB(),pP=lr(),sh=Yo(),VB=sA(),xP=cn(),Ah="Promise",mP=VB.CONSTRUCTOR,E_e=VB.REJECTION_EVENT,y_e=VB.SUBCLASSING,LB=pP.getterFor(Ah),Q_e=pP.set,AA=sh&&sh.prototype,zo=sh,ih=AA,vP=Oa.TypeError,HB=Oa.document,YB=Oa.process,WB=xP.f,b_e=WB,w_e=!!(HB&&HB.createEvent&&Oa.dispatchEvent),CP="unhandledrejection",S_e="rejectionhandled",fP=0,BP=1,__e=2,zB=1,EP=2,nh,gP,yP,dP,QP=function QP(r){var e;return p_e(r)&&ah(e=r.then)?e:!1},bP=function bP(r,e){var t=e.value,i=e.state===BP,n=i?r.ok:r.fail,a=r.resolve,o=r.reject,s=r.domain,A,u,c;try{n?(i||(e.rejection===EP&&D_e(e),e.rejection=zB),n===!0?A=t:(s&&s.enter(),A=n(t),s&&(s.exit(),c=!0)),A===r.promise?o(new vP("Promise-chain cycle")):(u=QP(A))?lA(u,A,a,o):a(A)):o(t)}catch(l){s&&!c&&s.exit(),o(l)}},wP=function wP(r,e){r.notified||(r.notified=!0,KB(function(){for(var t=r.reactions,i;i=t.get();)bP(i,r);r.notified=!1,e&&!r.rejection&&q_e(r)}))},SP=function SP(r,e,t){var i,n;w_e?(i=HB.createEvent("Event"),i.promise=e,i.reason=t,i.initEvent(r,!1,!0),Oa.dispatchEvent(i)):i={promise:e,reason:t},!E_e&&(n=Oa["on"+r])?n(i):r===CP&&v_e("Unhandled promise rejection",t)},q_e=function q_e(r){lA(IP,Oa,function(){var e=r.facade,t=r.value,i=hP(r),n;if(i&&(n=C_e(function(){oh?YB.emit("unhandledRejection",t,e):SP(CP,e,t)}),r.rejection=oh||hP(r)?EP:zB,n.error))throw n.value})},hP=function hP(r){return r.rejection!==zB&&!r.parent},D_e=function D_e(r){lA(IP,Oa,function(){var e=r.facade;oh?YB.emit("rejectionHandled",e):SP(S_e,e,r.value)})},cA=function cA(r,e,t){return function(i){r(e,i,t)}},uA=function uA(r,e,t){r.done||(r.done=!0,t&&(r=t),r.value=e,r.state=__e,wP(r,!0))},JB=function JB1(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw new vP("Promise can't be resolved itself");var i=QP(e);i?KB(function(){var _$n={done:!1};try{lA(i,e,cA(JB,_$n,r),cA(uA,_$n,r))}catch(a){uA(_$n,a,r)}}):(r.value=e,r.state=BP,wP(r,!1))}catch(n){uA({done:!1},n,r)}}};if(mP&&(zo=function zo(e){x_e(this,ih),I_e(e),lA(nh,this);var t=LB(this);try{e(cA(JB,t),cA(uA,t))}catch(i){uA(t,i)}},ih=zo.prototype,nh=function nh(e){Q_e(this,{type:Ah,done:!1,notified:!1,parent:!1,reactions:new B_e,rejection:!1,state:fP,value:null})},nh.prototype=uP(ih,"then",function(e,t){var i=LB(this),n=WB(m_e(this,zo));return i.parent=!0,n.ok=ah(e)?e:!0,n.fail=ah(t)&&t,n.domain=oh?YB.domain:void 0,i.state===fP?i.reactions.add(n):KB(function(){bP(n,i)}),n.promise}),gP=function gP(){var r=new nh,e=LB(r);this.promise=r,this.resolve=cA(JB,e),this.reject=cA(uA,e)},xP.f=WB=function WB(r){return r===zo||r===yP?new gP(r):b_e(r)},!f_e&&ah(sh)&&AA!==Object.prototype)){dP=AA.then,y_e||uP(AA,"then",function(e,t){var i=this;return new zo(function(n,a){lA(dP,i,n,a)}).then(e,t)},{unsafe:!0});try{delete AA.constructor}catch(r){}lP&&lP(AA,ih)}l_e({global:!0,constructor:!0,wrap:!0,forced:mP},{Promise:zo});yP=g_e.Promise;d_e(zo,Ah,!1,!0);h_e(Ah)});var Al=I(function(ggr,qP){"use strict";var F_e=Yo(),k_e=Qu(),R_e=sA().CONSTRUCTOR;qP.exports=R_e||!k_e(function(r){F_e.all(r).then(void 0,function(){})})});var DP=I(function(){"use strict";var N_e=k(),O_e=ge(),T_e=_e(),P_e=cn(),M_e=Vo(),U_e=Pr(),G_e=Al();N_e({target:"Promise",stat:!0,forced:G_e},{all:function all(e){var t=this,i=P_e.f(t),n=i.resolve,a=i.reject,o=M_e(function(){var s=T_e(t.resolve),A=[],u=0,c=1;U_e(e,function(l){var f=u++,g=!1;c++,O_e(s,t,l).then(function(h){g||(g=!0,A[f]=h,--c||n(A))},a)}),--c||n(A)});return o.error&&a(o.value),i.promise}})});var kP=I(function(){"use strict";var L_e=k(),H_e=Je(),W_e=sA().CONSTRUCTOR,XB=Yo(),J_e=we(),K_e=ke(),V_e=$e(),FP=XB&&XB.prototype;L_e({target:"Promise",proto:!0,forced:W_e,real:!0},{catch:function _catch(r){return this.then(void 0,r)}});!H_e&&K_e(XB)&&(jB=J_e("Promise").prototype.catch,FP.catch!==jB&&V_e(FP,"catch",jB,{unsafe:!0}));var jB});var RP=I(function(){"use strict";var Y_e=k(),z_e=ge(),j_e=_e(),X_e=cn(),Z_e=Vo(),$_e=Pr(),e3e=Al();Y_e({target:"Promise",stat:!0,forced:e3e},{race:function race(e){var t=this,i=X_e.f(t),n=i.reject,a=Z_e(function(){var o=j_e(t.resolve);$_e(e,function(s){z_e(o,t,s).then(i.resolve,n)})});return a.error&&n(a.value),i.promise}})});var NP=I(function(){"use strict";var r3e=k(),t3e=cn(),i3e=sA().CONSTRUCTOR;r3e({target:"Promise",stat:!0,forced:i3e},{reject:function reject(e){var t=t3e.f(this),i=t.reject;return i(e),t.promise}})});var ZB=I(function(Bgr,OP){"use strict";var n3e=he(),a3e=me(),o3e=cn();OP.exports=function(r,e){if(n3e(r),a3e(e)&&e.constructor===r)return e;var t=o3e.f(r),i=t.resolve;return i(e),t.promise}});var MP=I(function(){"use strict";var s3e=k(),A3e=we(),TP=Je(),c3e=Yo(),PP=sA().CONSTRUCTOR,u3e=ZB(),l3e=A3e("Promise"),f3e=TP&&!PP;s3e({target:"Promise",stat:!0,forced:TP||PP},{resolve:function resolve(e){return u3e(f3e&&this===l3e?c3e:this,e)}})});var UP=I(function(){"use strict";_P();DP();kP();RP();NP();MP()});var GP=I(function(){"use strict";var g3e=k(),d3e=ge(),h3e=_e(),I3e=cn(),p3e=Vo(),x3e=Pr(),m3e=Al();g3e({target:"Promise",stat:!0,forced:m3e},{allSettled:function allSettled(e){var t=this,i=I3e.f(t),n=i.resolve,a=i.reject,o=p3e(function(){var s=h3e(t.resolve),A=[],u=0,c=1;x3e(e,function(l){var f=u++,g=!1;c++,d3e(s,t,l).then(function(h){g||(g=!0,A[f]={status:"fulfilled",value:h},--c||n(A))},function(h){g||(g=!0,A[f]={status:"rejected",reason:h},--c||n(A))})}),--c||n(A)});return o.error&&a(o.value),i.promise}})});var HP=I(function(){"use strict";var v3e=k(),C3e=ge(),B3e=_e(),E3e=we(),y3e=cn(),Q3e=Vo(),b3e=Pr(),w3e=Al(),LP="No one promise resolved";v3e({target:"Promise",stat:!0,forced:w3e},{any:function any(e){var t=this,i=E3e("AggregateError"),n=y3e.f(t),a=n.resolve,o=n.reject,s=Q3e(function(){var A=B3e(t.resolve),u=[],c=0,l=1,f=!1;b3e(e,function(g){var h=c++,d=!1;l++,C3e(A,t,g).then(function(p){d||f||(f=!0,a(p))},function(p){d||f||(d=!0,u[h]=p,--l||o(new i(u,LP)))})}),--l||o(new i(u,LP))});return s.error&&o(s.value),n.promise}})});var VP=I(function(){"use strict";var S3e=k(),_3e=Je(),ch=Yo(),q3e=W(),JP=we(),KP=ke(),D3e=rl(),WP=ZB(),F3e=$e(),eE=ch&&ch.prototype,k3e=!!ch&&q3e(function(){eE.finally.call({then:function then(){}},function(){})});S3e({target:"Promise",proto:!0,real:!0,forced:k3e},{finally:function _finally(r){var e=D3e(this,JP("Promise")),t=KP(r);return this.then(t?function(i){return WP(e,r()).then(function(){return i})}:r,t?function(i){return WP(e,r()).then(function(){throw i})}:r)}});!_3e&&KP(ch)&&($B=JP("Promise").prototype.finally,eE.finally!==$B&&F3e(eE,"finally",$B,{unsafe:!0}));var $B});var jP=I(function(){"use strict";var R3e=k(),N3e=te(),O3e=Lt(),T3e=ei(),P3e=cn(),M3e=_e(),zP=Vo(),rE=N3e.Promise,YP=!1,U3e=!rE||!rE.try||zP(function(){rE.try(function(r){YP=r===8},8)}).error||!YP;R3e({target:"Promise",stat:!0,forced:U3e},{try:function _try(r){var e=arguments.length>1?T3e(arguments,1):[],t=P3e.f(this),i=zP(function(){return O3e(M3e(r),void 0,e)});return(i.error?t.reject:t.resolve)(i.value),t.promise}})});var XP=I(function(){"use strict";var G3e=k(),L3e=cn();G3e({target:"Promise",stat:!0},{withResolvers:function withResolvers(){var e=L3e.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})});var iE=I(function(Tgr,aM){"use strict";var tM=te(),iM=au(),nM=ke(),H3e=Zr(),uh=xt(),W3e=$e(),J3e=ve(),K3e=Je(),ZP="USE_FUNCTION_CONSTRUCTOR",$P=J3e("asyncIterator"),eM=tM.AsyncIterator,rM=iM.AsyncIteratorPrototype,un,tE;if(rM)un=rM;else if(nM(eM))un=eM.prototype;else if(iM[ZP]||tM[ZP])try{tE=uh(uh(uh(Function("return async function*(){}()")()))),uh(tE)===Object.prototype&&(un=tE)}catch(r){}un?K3e&&(un=H3e(un)):un={};nM(un[$P])||W3e(un,$P,function(){return this});aM.exports=un});var aE=I(function(Pgr,dM){"use strict";var oM=ge(),sM=he(),V3e=Zr(),Y3e=zr(),z3e=nn(),uM=lr(),j3e=rt(),X3e=we(),Z3e=iE(),lM=ba(),nE=X3e("Promise"),fM="AsyncFromSyncIterator",$3e=uM.set,AM=uM.getterFor(fM),cM=function cM(r,e,t,i,n){var a=r.done;nE.resolve(r.value).then(function(o){e(lM(o,a))},function(o){if(!a&&n)try{j3e(i,"throw",o)}catch(s){o=s}t(o)})},gM=function gM(e){e.type=fM,$3e(this,e)};gM.prototype=z3e(V3e(Z3e),{next:function next(){var e=AM(this);return new nE(function(t,i){var n=sM(oM(e.next,e.iterator));cM(n,t,i,e.iterator,!0)})},return:function _return(){var r=AM(this).iterator;return new nE(function(e,t){var i=Y3e(r,"return");if(i===void 0)return e(lM(void 0,!0));var n=sM(oM(i,r));cM(n,e,t,r)})}});dM.exports=gM});var IM=I(function(Mgr,hM){"use strict";var eqe=ge(),rqe=aE(),tqe=he(),iqe=To(),nqe=ct(),aqe=zr(),oqe=ve(),sqe=oqe("asyncIterator");hM.exports=function(r,e){var t=arguments.length<2?aqe(r,sqe):e;return t?tqe(eqe(t,r)):new rqe(nqe(iqe(r)))}});var xM=I(function(Ugr,pM){"use strict";var Aqe=ge(),cqe=we(),uqe=zr();pM.exports=function(r,e,t,i){try{var n=uqe(r,"return");if(n)return cqe("Promise").resolve(Aqe(n,r)).then(function(){e(t)},function(a){i(a)})}catch(a){return i(a)}e(t)}});var vM=I(function(Ggr,mM){"use strict";var lqe=ge(),fqe=_e(),oE=he(),gqe=me(),dqe=Qa(),hqe=we(),Iqe=ct(),sE=xM(),cl=function cl(r){var e=r===0,t=r===1,i=r===2,n=r===3;return function(a,o,s){oE(a);var A=o!==void 0;(A||!e)&&fqe(o);var u=Iqe(a),c=hqe("Promise"),l=u.iterator,f=u.next,g=0;return new c(function(h,d){var p=function p(x){sE(l,d,x,d)},m=function m1(){try{if(A)try{dqe(g)}catch(x){p(x)}c.resolve(oE(lqe(f,l))).then(function(x){try{if(oE(x).done)e?(s.length=g,h(s)):h(n?!1:i||void 0);else{var v=x.value;try{if(A){var E=o(v,g),S=function S(B){if(t)m();else if(i)B?m():sE(l,h,!1,d);else if(e)try{s[g++]=B,m()}catch(b){p(b)}else B?sE(l,h,n||v,d):m()};gqe(E)?c.resolve(E).then(S,p):S(E)}else s[g++]=v,m()}catch(B){p(B)}}}catch(B){d(B)}},d)}catch(x){d(x)}};m()})}};mM.exports={toArray:cl(0),forEach:cl(1),every:cl(2),some:cl(3),find:cl(4)}});var QM=I(function(Lgr,yM){"use strict";var pqe=Ut(),CM=Y(),xqe=He(),mqe=Ca(),vqe=IM(),Cqe=To(),Bqe=ct(),Eqe=qn(),yqe=zr(),Qqe=we(),bqe=ov(),wqe=ve(),Sqe=aE(),_qe=vM().toArray,qqe=wqe("asyncIterator"),BM=CM(bqe("Array","values")),Dqe=CM(BM([]).next),Fqe=function Fqe(){return new EM(this)},EM=function EM(r){this.iterator=BM(r)};EM.prototype.next=function(){return Dqe(this.iterator)};yM.exports=function(e){var t=this,i=arguments.length,n=i>1?arguments[1]:void 0,a=i>2?arguments[2]:void 0;return new(Qqe("Promise"))(function(o){var s=xqe(e);n!==void 0&&(n=pqe(n,a));var A=yqe(s,qqe),u=A?void 0:Eqe(s)||Fqe,c=mqe(t)?new t:[],l=A?vqe(s,A):new Sqe(Bqe(Cqe(s,u)));o(_qe(l,n,c))})}});var wM=I(function(){"use strict";var kqe=k(),Rqe=QM(),Nqe=W(),bM=Array.fromAsync,Oqe=!bM||Nqe(function(){var r=0;return bM.call(function(){return r++,[]},{length:0}),r!==1});kqe({target:"Array",stat:!0,forced:Oqe},{fromAsync:Rqe})});var NM=I(function(){"use strict";var Tqe=k(),fh=xe(),DM=we(),SM=_e(),Pqe=Ht(),FM=$e(),Mqe=nn(),Uqe=_r(),kM=ve(),RM=lr(),AE=zv(),_M=Ri(),qM=DM("Promise"),Gqe=DM("SuppressedError"),Lqe=ReferenceError,Hqe=kM("asyncDispose"),Wqe=kM("toStringTag"),dh="AsyncDisposableStack",Jqe=RM.set,gh=RM.getterFor(dh),cE="async-dispose",ul="disposed",Kqe="pending",lh=function lh(r){var e=gh(r);if(e.state===ul)throw new Lqe(dh+" already disposed");return e},uE=function uE(){Jqe(Pqe(this,fA),{type:dh,state:Kqe,stack:[]}),fh||(this.disposed=!1)},fA=uE.prototype;Mqe(fA,{disposeAsync:function disposeAsync(){var e=this;return new qM(function(t,i){var n=gh(e);if(n.state===ul)return t(void 0);n.state=ul,fh||(e.disposed=!0);var a=n.stack,o=a.length,s=!1,A,u=function u(l){s?A=new Gqe(l,A):(s=!0,A=l),c()},c=function c2(){if(o){var l=a[--o];a[o]=null;try{qM.resolve(l()).then(c,u)}catch(f){u(f)}}else n.stack=null,s?i(A):t(void 0)};c()})},use:function use(e){return AE(lh(this),e,cE),e},adopt:function adopt(e,t){var i=lh(this);return SM(t),AE(i,void 0,cE,function(){return t(e)}),e},defer:function defer(e){var t=lh(this);SM(e),AE(t,void 0,cE,e)},move:function move(){var e=lh(this),t=new uE;return gh(t).stack=e.stack,e.stack=[],e.state=ul,fh||(this.disposed=!0),t}});fh&&Uqe(fA,"disposed",{configurable:!0,get:function get(){return gh(this).state===ul}});FM(fA,Hqe,fA.disposeAsync,{name:"disposeAsync"});FM(fA,Wqe,dh,{nonWritable:!0});var Vqe=_M&&_M<136;Tqe({global:!0,constructor:!0,forced:Vqe},{AsyncDisposableStack:uE})});var MM=I(function(){"use strict";var Yqe=ge(),zqe=$e(),jqe=we(),Xqe=zr(),Zqe=Se(),$qe=ve(),OM=iE(),TM=$qe("asyncDispose"),PM=jqe("Promise");Zqe(OM,TM)||zqe(OM,TM,function(){var r=this;return new PM(function(e,t){var i=Xqe(r,"return");i?PM.resolve(Yqe(i,r)).then(function(){e(void 0)},t):e(void 0)})})});var UM=I(function(){"use strict";var eDe=k(),rDe=Lt(),tDe=_e(),iDe=he(),nDe=W(),aDe=!nDe(function(){Reflect.apply(function(){})});eDe({target:"Reflect",stat:!0,forced:aDe},{apply:function apply(e,t,i){return rDe(tDe(e),t,iDe(i))}})});var VM=I(function(){"use strict";var oDe=k(),sDe=we(),lE=Lt(),ADe=eC(),GM=eh(),cDe=he(),LM=me(),uDe=Zr(),WM=W(),fE=sDe("Reflect","construct"),lDe=Object.prototype,fDe=[].push,JM=WM(function(){function r(){}return!_instanceof(fE(function(){},[],r),r)}),KM=!WM(function(){fE(function(){})}),HM=JM||KM;oDe({target:"Reflect",stat:!0,forced:HM,sham:HM},{construct:function construct(e,t){GM(e),cDe(t);var i=arguments.length<3?e:GM(arguments[2]);if(KM&&!JM)return fE(e,t,i);if(e===i){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return lE(fDe,n,t),new(lE(ADe,e,n))}var a=i.prototype,o=uDe(LM(a)?a:lDe),s=lE(e,o,t);return LM(s)?s:o}})});var jM=I(function(){"use strict";var gDe=k(),dDe=xe(),YM=he(),hDe=wn(),zM=ur(),IDe=W(),pDe=IDe(function(){Reflect.defineProperty(zM.f({},1,{value:1}),1,{value:2})});gDe({target:"Reflect",stat:!0,forced:pDe,sham:!dDe},{defineProperty:function defineProperty(e,t,i){YM(e);var n=hDe(t);YM(i);try{return zM.f(e,n,i),!0}catch(a){return!1}}})});var XM=I(function(){"use strict";var xDe=k(),mDe=he(),vDe=jr().f;xDe({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(e,t){var i=vDe(mDe(e),t);return i&&!i.configurable?!1:delete e[t]}})});var gE=I(function(idr,$M){"use strict";var ZM=Se();$M.exports=function(r){return r!==void 0&&(ZM(r,"value")||ZM(r,"writable"))}});var rU=I(function(){"use strict";var CDe=k(),BDe=ge(),EDe=me(),yDe=he(),QDe=gE(),bDe=jr(),wDe=xt();function eU(r,e){var t=arguments.length<3?r:arguments[2],i,n;if(yDe(r)===t)return r[e];if(i=bDe.f(r,e),i)return QDe(i)?i.value:i.get===void 0?void 0:BDe(i.get,t);if(EDe(n=wDe(r)))return eU(n,e,t)}CDe({target:"Reflect",stat:!0},{get:eU})});var tU=I(function(){"use strict";var SDe=k(),_De=xe(),qDe=he(),DDe=jr();SDe({target:"Reflect",stat:!0,sham:!_De},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){return DDe.f(qDe(e),t)}})});var iU=I(function(){"use strict";var FDe=k(),kDe=he(),RDe=xt(),NDe=ed();FDe({target:"Reflect",stat:!0,sham:!NDe},{getPrototypeOf:function getPrototypeOf(e){return RDe(kDe(e))}})});var nU=I(function(){"use strict";var ODe=k();ODe({target:"Reflect",stat:!0},{has:function has(e,t){return t in e}})});var aU=I(function(){"use strict";var TDe=k(),PDe=he(),MDe=Wd();TDe({target:"Reflect",stat:!0},{isExtensible:function isExtensible(e){return PDe(e),MDe(e)}})});var oU=I(function(){"use strict";var UDe=k(),GDe=Dg();UDe({target:"Reflect",stat:!0},{ownKeys:GDe})});var sU=I(function(){"use strict";var LDe=k(),HDe=we(),WDe=he(),JDe=Ra();LDe({target:"Reflect",stat:!0,sham:!JDe},{preventExtensions:function preventExtensions(e){WDe(e);try{var t=HDe("Object","preventExtensions");return t&&t(e),!0}catch(i){return!1}}})});var fU=I(function(){"use strict";var KDe=k(),VDe=ge(),YDe=he(),AU=me(),zDe=gE(),jDe=W(),dE=ur(),cU=jr(),XDe=xt(),uU=Tt();function lU(r,e,t){var i=arguments.length<4?r:arguments[3],n=cU.f(YDe(r),e),a,o,s;if(!n){if(AU(o=XDe(r)))return lU(o,e,t,i);n=uU(0)}if(zDe(n)){if(n.writable===!1||!AU(i))return!1;if(a=cU.f(i,e)){if(a.get||a.set||a.writable===!1)return!1;a.value=t,dE.f(i,e,a)}else dE.f(i,e,uU(0,t))}else{if(s=n.set,s===void 0)return!1;VDe(s,i,t)}return!0}var ZDe=jDe(function(){var r=function r(){},e=dE.f(new r,"a",{configurable:!0});return Reflect.set(r.prototype,"a",1,e)!==!1});KDe({target:"Reflect",stat:!0,forced:ZDe},{set:lU})});var dU=I(function(){"use strict";var $De=k(),eFe=he(),rFe=mm(),gU=di();gU&&$De({target:"Reflect",stat:!0},{setPrototypeOf:function setPrototypeOf(e,t){eFe(e),rFe(t);try{return gU(e,t),!0}catch(i){return!1}}})});var hU=I(function(){"use strict";var tFe=k(),iFe=te(),nFe=Qt();tFe({global:!0},{Reflect:{}});nFe(iFe.Reflect,"Reflect",!0)});var ll=I(function(ydr,IU){"use strict";var aFe=me(),oFe=st(),sFe=ve(),AFe=sFe("match");IU.exports=function(r){var e;return aFe(r)&&((e=r[AFe])!==void 0?!!e:oFe(r)==="RegExp")}});var hE=I(function(Qdr,xU){"use strict";var cFe=te(),uFe=W(),pU=cFe.RegExp,lFe=!uFe(function(){var r=!0;try{pU(".","d")}catch(A){r=!1}var e={},t="",i=r?"dgimsy":"gimsy",n=function n(A,u){Object.defineProperty(e,A,{get:function get(){return t+=u,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};r&&(a.hasIndices="d");for(var o in a)n(o,a[o]);var s=Object.getOwnPropertyDescriptor(pU.prototype,"flags").get.call(e);return s!==i||t!==i});xU.exports={correct:lFe}});var hh=I(function(bdr,mU){"use strict";var fFe=he();mU.exports=function(){var r=fFe(this),e="";return r.hasIndices&&(e+="d"),r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.unicodeSets&&(e+="v"),r.sticky&&(e+="y"),e}});var Ta=I(function(wdr,CU){"use strict";var gFe=ge(),dFe=Se(),hFe=pt(),vU=hE(),IFe=hh(),pFe=RegExp.prototype;CU.exports=vU.correct?function(r){return r.flags}:function(r){return!vU.correct&&hFe(pFe,r)&&!dFe(r,"flags")?gFe(IFe,r):r.flags}});var fl=I(function(Sdr,BU){"use strict";var IE=W(),xFe=te(),pE=xFe.RegExp,xE=IE(function(){var r=pE("a","y");return r.lastIndex=2,r.exec("abcd")!==null}),mFe=xE||IE(function(){return!pE("a","y").sticky}),vFe=xE||IE(function(){var r=pE("^r","gy");return r.lastIndex=2,r.exec("str")!==null});BU.exports={BROKEN_CARET:vFe,MISSED_STICKY:mFe,UNSUPPORTED_Y:xE}});var Ih=I(function(_dr,EU){"use strict";var CFe=W(),BFe=te(),EFe=BFe.RegExp;EU.exports=CFe(function(){var r=EFe(".","s");return!(r.dotAll&&r.test("\n")&&r.flags==="s")})});var mE=I(function(qdr,yU){"use strict";var yFe=W(),QFe=te(),bFe=QFe.RegExp;yU.exports=yFe(function(){var r=bFe("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"})});var RU=I(function(){"use strict";var wFe=xe(),EE=te(),gl=Y(),SFe=Ns(),_Fe=ya(),qFe=Xr(),DFe=Zr(),FFe=ma().f,QU=pt(),kFe=ll(),bU=Ee(),RFe=Ta(),qU=fl(),NFe=vm(),OFe=$e(),TFe=W(),PFe=Se(),MFe=lr().enforce,UFe=Go(),GFe=ve(),DU=Ih(),FU=mE(),LFe=GFe("match"),Ma=EE.RegExp,gA=Ma.prototype,HFe=EE.SyntaxError,WFe=gl(gA.exec),ph=gl("".charAt),wU=gl("".replace),SU=gl("".indexOf),_U=gl("".slice),JFe=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,jo=/a/g,vE=/a/g,KFe=new Ma(jo)!==jo,kU=qU.MISSED_STICKY,VFe=qU.UNSUPPORTED_Y,YFe=wFe&&(!KFe||kU||DU||FU||TFe(function(){return vE[LFe]=!1,Ma(jo)!==jo||Ma(vE)===vE||String(Ma(jo,"i"))!=="/a/i"})),zFe=function zFe(r){for(var e=r.length,t=0,i="",n=!1,a;t<=e;t++){if(a=ph(r,t),a==="\\"){i+=a+ph(r,++t);continue}!n&&a==="."?i+="[\\s\\S]":(a==="["?n=!0:a==="]"&&(n=!1),i+=a)}return i},jFe=function jFe(r){for(var e=r.length,t=0,i="",n=[],a=DFe(null),o=!1,s=!1,A=0,u="",c;t<=e;t++){if(c=ph(r,t),c==="\\")c+=ph(r,++t);else if(c==="]")o=!1;else if(!o)switch(!0){case c==="[":o=!0;break;case c==="(":if(i+=c,_U(r,t+1,t+3)==="?:")continue;WFe(JFe,_U(r,t+1))&&(t+=2,s=!0),A++;continue;case c===">"&&s:if(u===""||PFe(a,u))throw new HFe("Invalid capture group name");a[u]=!0,n[n.length]=[u,A],s=!1,u="";continue}s?u+=c:i+=c}return[i,n]};if(SFe("RegExp",YFe)){for(Pa=function(e,t){var i=QU(gA,this),n=kFe(e),a=t===void 0,o=[],s=e,A,u,c,l,f,g;if(!i&&n&&a&&e.constructor===Pa)return e;if((n||QU(gA,e))&&(e=e.source,a&&(t=RFe(s))),e=e===void 0?"":bU(e),t=t===void 0?"":bU(t),s=e,DU&&"dotAll"in jo&&(u=!!t&&SU(t,"s")>-1,u&&(t=wU(t,/s/g,""))),A=t,kU&&"sticky"in jo&&(c=!!t&&SU(t,"y")>-1,c&&VFe&&(t=wU(t,/y/g,""))),FU&&(l=jFe(e),e=l[0],o=l[1]),f=_Fe(Ma(e,t),i?this:gA,Pa),(u||c||o.length)&&(g=MFe(f),u&&(g.dotAll=!0,g.raw=Pa(zFe(e),A)),c&&(g.sticky=!0),o.length&&(g.groups=o)),e!==s)try{qFe(f,"source",s===""?"(?:)":s)}catch(h){}return f},CE=FFe(Ma),BE=0;CE.length>BE;)NFe(Pa,Ma,CE[BE++]);gA.constructor=Pa,Pa.prototype=gA,OFe(EE,"RegExp",Pa,{constructor:!0})}var Pa,CE,BE;UFe("RegExp")});var dl=I(function(kdr,NU){"use strict";var XFe=TypeError;NU.exports=function(r){if(typeof r=="string")return r;throw new XFe("Argument is not a string")}});var GU=I(function(){"use strict";var ZFe=k(),hl=Y(),$Fe=dl(),e2e=Se(),OU=Pu().start,r2e=eA(),t2e=Array,TU=RegExp.escape,PU=hl("".charAt),bE=hl("".charCodeAt),i2e=hl(1.1.toString),n2e=hl([].join),UU=/^[0-9a-z]/i,a2e=/^[$()*+./?[\\\]^{|}]/,o2e=RegExp("^[!\"#%&',\\-:;<=>@`~"+r2e+"]"),yE=hl(UU.exec),MU={" ":"t","\n":"n","\v":"v","\f":"f","\r":"r"},QE=function QE(r){var e=i2e(bE(r,0),16);return e.length<3?"\\x"+OU(e,2,"0"):"\\u"+OU(e,4,"0")},s2e=!TU||TU("ab")!=="\\x61b";ZFe({target:"RegExp",stat:!0,forced:s2e},{escape:function escape1(e){$Fe(e);for(var t=e.length,i=t2e(t),n=0;n<t;n++){var a=PU(e,n);if(n===0&&yE(UU,a))i[n]=QE(a);else if(e2e(MU,a))i[n]="\\"+MU[a];else if(yE(a2e,a))i[n]="\\"+a;else if(yE(o2e,a))i[n]=QE(a);else{var o=bE(a,0);(o&63488)!==55296?i[n]=a:o>=56320||n+1>=t||(bE(e,n+1)&64512)!==56320?i[n]=QE(a):(i[n]=a,i[++n]=PU(e,n))}}return n2e(i,"")}})});var HU=I(function(){"use strict";var A2e=xe(),c2e=Ih(),u2e=st(),l2e=_r(),f2e=lr().get,LU=RegExp.prototype,g2e=TypeError;A2e&&c2e&&l2e(LU,"dotAll",{configurable:!0,get:function get(){if(this!==LU){if(u2e(this)==="RegExp")return!!f2e(this).dotAll;throw new g2e("Incompatible receiver, RegExp required")}}})});var vh=I(function(Pdr,JU){"use strict";var dA=ge(),mh=Y(),d2e=Ee(),h2e=hh(),I2e=fl(),p2e=wo(),x2e=Zr(),m2e=lr().get,v2e=Ih(),C2e=mE(),B2e=p2e("native-string-replace",String.prototype.replace),xh=RegExp.prototype.exec,SE=xh,E2e=mh("".charAt),y2e=mh("".indexOf),Q2e=mh("".replace),wE=mh("".slice),_E=function(){var r=/a/,e=/b*/g;return dA(xh,r,"a"),dA(xh,e,"a"),r.lastIndex!==0||e.lastIndex!==0}(),WU=I2e.BROKEN_CARET,qE=/()??/.exec("")[1]!==void 0,b2e=_E||qE||WU||v2e||C2e;b2e&&(SE=function(e){var t=this,i=m2e(t),n=d2e(e),a=i.raw,o,s,A,u,c,l,f;if(a)return a.lastIndex=t.lastIndex,o=dA(SE,a,n),t.lastIndex=a.lastIndex,o;var g=i.groups,h=WU&&t.sticky,d=dA(h2e,t),p=t.source,m=0,x=n;if(h&&(d=Q2e(d,"y",""),y2e(d,"g")===-1&&(d+="g"),x=wE(n,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&E2e(n,t.lastIndex-1)!=="\n")&&(p="(?: "+p+")",x=" "+x,m++),s=new RegExp("^(?:"+p+")",d)),qE&&(s=new RegExp("^"+p+"$(?!\\s)",d)),_E&&(A=t.lastIndex),u=dA(xh,h?s:t,x),h?u?(u.input=wE(u.input,m),u[0]=wE(u[0],m),u.index=t.lastIndex,t.lastIndex+=u[0].length):t.lastIndex=0:_E&&u&&(t.lastIndex=t.global?u.index+u[0].length:A),qE&&u&&u.length>1&&dA(B2e,u[0],s,function(){for(c=1;c<arguments.length-2;c++)arguments[c]===void 0&&(u[c]=void 0)}),u&&g)for(u.groups=l=x2e(null),c=0;c<g.length;c++)f=g[c],l[f[0]]=u[f[1]];return u});JU.exports=SE});var Ch=I(function(){"use strict";var w2e=k(),KU=vh();w2e({target:"RegExp",proto:!0,forced:/./.exec!==KU},{exec:KU})});var YU=I(function(){"use strict";var S2e=xe(),_2e=_r(),VU=hE(),q2e=hh();S2e&&!VU.correct&&(_2e(RegExp.prototype,"flags",{configurable:!0,get:q2e}),VU.correct=!0)});var jU=I(function(){"use strict";var D2e=xe(),F2e=fl().MISSED_STICKY,k2e=st(),R2e=_r(),N2e=lr().get,zU=RegExp.prototype,O2e=TypeError;D2e&&F2e&&R2e(zU,"sticky",{configurable:!0,get:function get(){if(this!==zU){if(k2e(this)==="RegExp")return!!N2e(this).sticky;throw new O2e("Incompatible receiver, RegExp required")}}})});var $U=I(function(){"use strict";Ch();var T2e=k(),XU=ge(),P2e=ke(),ZU=he(),M2e=Ee(),U2e=function(){var r=!1,e=/[ac]/;return e.exec=function(){return r=!0,/./.exec.apply(this,arguments)},e.test("abc")===!0&&r}(),G2e=/./.test;T2e({target:"RegExp",proto:!0,forced:!U2e},{test:function test(r){var e=ZU(this),t=M2e(r),i=e.exec;if(!P2e(i))return XU(G2e,e,t);var n=XU(i,e,t);return n===null?!1:(ZU(n),!0)}})});var iG=I(function(){"use strict";var L2e=So().PROPER,H2e=$e(),W2e=he(),eG=Ee(),J2e=W(),K2e=Ta(),DE="toString",rG=RegExp.prototype,tG=rG[DE],V2e=J2e(function(){return tG.call({source:"a",flags:"b"})!=="/a/b"}),Y2e=L2e&&tG.name!==DE;(V2e||Y2e)&&H2e(rG,DE,function(){var e=W2e(this),t=eG(e.source),i=eG(K2e(e));return"/"+t+"/"+i},{unsafe:!0})});var nG=I(function(){"use strict";var z2e=Hu(),j2e=JC();z2e("Set",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},j2e)});var aG=I(function(){"use strict";nG()});var Ii=I(function($dr,oG){"use strict";var FE=Y(),Bh=Set.prototype;oG.exports={Set:Set,add:FE(Bh.add),has:FE(Bh.has),remove:FE(Bh.delete),proto:Bh}});var Ua=I(function(ehr,sG){"use strict";var X2e=Ii().has;sG.exports=function(r){return X2e(r),r}});var Ga=I(function(rhr,AG){"use strict";var Z2e=ge();AG.exports=function(r,e,t){for(var i=t?r:r.iterator,n=r.next,a,o;!(a=Z2e(n,i)).done;)if(o=e(a.value),o!==void 0)return o}});var Xo=I(function(thr,gG){"use strict";var cG=Y(),$2e=Ga(),uG=Ii(),eke=uG.Set,lG=uG.proto,rke=cG(lG.forEach),fG=cG(lG.keys),tke=fG(new eke).next;gG.exports=function(r,e,t){return t?$2e({iterator:fG(r),next:tke},e):rke(r,e)}});var Eh=I(function(ihr,hG){"use strict";var dG=Ii(),ike=Xo(),nke=dG.Set,ake=dG.add;hG.exports=function(r){var e=new nke;return ike(r,function(t){ake(e,t)}),e}});var hA=I(function(nhr,IG){"use strict";var oke=Cu(),ske=Ii();IG.exports=oke(ske.proto,"size","get")||function(r){return r.size}});var La=I(function(ahr,BG){"use strict";var pG=_e(),vG=he(),xG=ge(),Ake=Br(),cke=ct(),mG="Invalid size",uke=RangeError,lke=TypeError,fke=Math.max,CG=function CG(r,e){this.set=r,this.size=fke(e,0),this.has=pG(r.has),this.keys=pG(r.keys)};CG.prototype={getIterator:function getIterator(){return cke(vG(xG(this.keys,this.set)))},includes:function includes(r){return xG(this.has,this.set,r)}};BG.exports=function(r){vG(r);var e=+r.size;if(e!==e)throw new lke(mG);var t=Ake(e);if(t<0)throw new uke(mG);return new CG(r,t)}});var bG=I(function(ohr,QG){"use strict";var gke=Ua(),yG=Ii(),dke=Eh(),hke=hA(),Ike=La(),pke=Xo(),xke=Ga(),mke=yG.has,EG=yG.remove;QG.exports=function(e){var t=gke(this),i=Ike(e),n=dke(t);return hke(t)<=i.size?pke(t,function(a){i.includes(a)&&EG(n,a)}):xke(i.getIterator(),function(a){mke(n,a)&&EG(n,a)}),n}});var Ha=I(function(shr,_G){"use strict";var vke=we(),wG=function wG(r){return{size:r,has:function has(){return!1},keys:function keys(){return{next:function next(){return{done:!0}}}}}},SG=function SG(r){return{size:r,has:function has(){return!0},keys:function keys(){throw new Error("e")}}};_G.exports=function(r,e){var t=vke("Set");try{new t()[r](wG(0));try{return new t()[r](wG(-1)),!1}catch(n){if(!e)return!0;try{return new t()[r](SG(-1/0)),!1}catch(a){var i=new t([1,2]);return e(i[r](SG(1/0)))}}}catch(n){return!1}}});var qG=I(function(){"use strict";var Cke=k(),Bke=bG(),Eke=W(),yke=Ha(),Qke=!yke("difference",function(r){return r.size===0}),bke=Qke||Eke(function(){var r={size:1,has:function has(){return!0},keys:function keys(){var t=0;return{next:function next(){var i=t++>1;return e.has(1)&&e.clear(),{done:i,value:2}}}}},e=new Set([1,2,3,4]);return e.difference(r).size!==3});Cke({target:"Set",proto:!0,real:!0,forced:bke},{difference:Bke})});var kG=I(function(uhr,FG){"use strict";var wke=Ua(),kE=Ii(),Ske=hA(),_ke=La(),qke=Xo(),Dke=Ga(),Fke=kE.Set,DG=kE.add,kke=kE.has;FG.exports=function(e){var t=wke(this),i=_ke(e),n=new Fke;return Ske(t)>i.size?Dke(i.getIterator(),function(a){kke(t,a)&&DG(n,a)}):qke(t,function(a){i.includes(a)&&DG(n,a)}),n}});var RG=I(function(){"use strict";var Rke=k(),Nke=W(),Oke=kG(),Tke=Ha(),Pke=!Tke("intersection",function(r){return r.size===2&&r.has(1)&&r.has(2)})||Nke(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});Rke({target:"Set",proto:!0,real:!0,forced:Pke},{intersection:Oke})});var OG=I(function(ghr,NG){"use strict";var Mke=Ua(),Uke=Ii().has,Gke=hA(),Lke=La(),Hke=Xo(),Wke=Ga(),Jke=rt();NG.exports=function(e){var t=Mke(this),i=Lke(e);if(Gke(t)<=i.size)return Hke(t,function(a){if(i.includes(a))return!1},!0)!==!1;var n=i.getIterator();return Wke(n,function(a){if(Uke(t,a))return Jke(n,"normal",!1)})!==!1}});var TG=I(function(){"use strict";var Kke=k(),Vke=OG(),Yke=Ha(),zke=!Yke("isDisjointFrom",function(r){return!r});Kke({target:"Set",proto:!0,real:!0,forced:zke},{isDisjointFrom:Vke})});var MG=I(function(Ihr,PG){"use strict";var jke=Ua(),Xke=hA(),Zke=Xo(),$ke=La();PG.exports=function(e){var t=jke(this),i=$ke(e);return Xke(t)>i.size?!1:Zke(t,function(n){if(!i.includes(n))return!1},!0)!==!1}});var UG=I(function(){"use strict";var eRe=k(),rRe=MG(),tRe=Ha(),iRe=!tRe("isSubsetOf",function(r){return r});eRe({target:"Set",proto:!0,real:!0,forced:iRe},{isSubsetOf:rRe})});var LG=I(function(mhr,GG){"use strict";var nRe=Ua(),aRe=Ii().has,oRe=hA(),sRe=La(),ARe=Ga(),cRe=rt();GG.exports=function(e){var t=nRe(this),i=sRe(e);if(oRe(t)<i.size)return!1;var n=i.getIterator();return ARe(n,function(a){if(!aRe(t,a))return cRe(n,"normal",!1)})!==!1}});var HG=I(function(){"use strict";var uRe=k(),lRe=LG(),fRe=Ha(),gRe=!fRe("isSupersetOf",function(r){return!r});uRe({target:"Set",proto:!0,real:!0,forced:gRe},{isSupersetOf:lRe})});var JG=I(function(Bhr,WG){"use strict";var dRe=Ua(),RE=Ii(),hRe=Eh(),IRe=La(),pRe=Ga(),xRe=RE.add,mRe=RE.has,vRe=RE.remove;WG.exports=function(e){var t=dRe(this),i=IRe(e).getIterator(),n=hRe(t);return pRe(i,function(a){mRe(t,a)?vRe(n,a):xRe(n,a)}),n}});var NE=I(function(Ehr,KG){"use strict";KG.exports=function(r){try{var e=new Set,t={size:0,has:function has(){return!0},keys:function keys(){return Object.defineProperty({},"next",{get:function get(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},i=e[r](t);return i.size===1&&i.values().next().value===4}catch(n){return!1}}});var VG=I(function(){"use strict";var CRe=k(),BRe=JG(),ERe=NE(),yRe=Ha(),QRe=!yRe("symmetricDifference")||!ERe("symmetricDifference");CRe({target:"Set",proto:!0,real:!0,forced:QRe},{symmetricDifference:BRe})});var zG=I(function(bhr,YG){"use strict";var bRe=Ua(),wRe=Ii().add,SRe=Eh(),_Re=La(),qRe=Ga();YG.exports=function(e){var t=bRe(this),i=_Re(e).getIterator(),n=SRe(t);return qRe(i,function(a){wRe(n,a)}),n}});var jG=I(function(){"use strict";var DRe=k(),FRe=zG(),kRe=NE(),RRe=Ha(),NRe=!RRe("union")||!kRe("union");DRe({target:"Set",proto:!0,real:!0,forced:NRe},{union:FRe})});var XG=I(function(){"use strict";var ORe=k(),TRe=Y(),PRe=hr(),MRe=Br(),URe=Ee(),GRe=W(),LRe=TRe("".charAt),HRe=GRe(function(){return"\uD842\uDFB7".at(-2)!=="\uD842"});ORe({target:"String",proto:!0,forced:HRe},{at:function at1(e){var t=URe(PRe(this)),i=t.length,n=MRe(e),a=n>=0?n:i+n;return a<0||a>=i?void 0:LRe(t,a)}})});var Il=I(function(Dhr,e6){"use strict";var OE=Y(),WRe=Br(),JRe=Ee(),KRe=hr(),VRe=OE("".charAt),ZG=OE("".charCodeAt),YRe=OE("".slice),$G=function $G(r){return function(e,t){var i=JRe(KRe(e)),n=WRe(t),a=i.length,o,s;return n<0||n>=a?r?"":void 0:(o=ZG(i,n),o<55296||o>56319||n+1===a||(s=ZG(i,n+1))<56320||s>57343?r?VRe(i,n):o:r?YRe(i,n,n+2):(o-55296<<10)+(s-56320)+65536)}};e6.exports={codeAt:$G(!1),charAt:$G(!0)}});var r6=I(function(){"use strict";var zRe=k(),jRe=Il().codeAt;zRe({target:"String",proto:!0},{codePointAt:function codePointAt(e){return jRe(this,e)}})});var yh=I(function(Rhr,t6){"use strict";var XRe=ll(),ZRe=TypeError;t6.exports=function(r){if(XRe(r))throw new ZRe("The method doesn't accept regular expressions");return r}});var Qh=I(function(Nhr,i6){"use strict";var $Re=ve(),eNe=$Re("match");i6.exports=function(r){var e=/./;try{"/./"[r](e)}catch(t){try{return e[eNe]=!1,"/./"[r](e)}catch(i){}}return!1}});var o6=I(function(){"use strict";var rNe=k(),tNe=va(),iNe=jr().f,nNe=Pt(),n6=Ee(),aNe=yh(),oNe=hr(),sNe=Qh(),ANe=Je(),cNe=tNe("".slice),uNe=Math.min,a6=sNe("endsWith"),lNe=!ANe&&!a6&&!!function(){var r=iNe(String.prototype,"endsWith");return r&&!r.writable}();rNe({target:"String",proto:!0,forced:!lNe&&!a6},{endsWith:function endsWith(e){var t=n6(oNe(this));aNe(e);var i=arguments.length>1?arguments[1]:void 0,n=t.length,a=i===void 0?n:uNe(nNe(i),n),o=n6(e);return cNe(t,a-o.length,a)===o}})});var TE=I(function(){"use strict";var fNe=k(),gNe=Y(),dNe=$i(),hNe=RangeError,s6=String.fromCharCode,A6=String.fromCodePoint,INe=gNe([].join),pNe=!!A6&&A6.length!==1;fNe({target:"String",stat:!0,arity:1,forced:pNe},{fromCodePoint:function fromCodePoint(e){for(var t=[],i=arguments.length,n=0,a;i>n;){if(a=+arguments[n++],dNe(a,1114111)!==a)throw new hNe(a+" is not a valid code point");t[n]=a<65536?s6(a):s6(((a-=65536)>>10)+55296,a%1024+56320)}return INe(t,"")}})});var u6=I(function(){"use strict";var xNe=k(),mNe=Y(),vNe=yh(),CNe=hr(),c6=Ee(),BNe=Qh(),ENe=mNe("".indexOf);xNe({target:"String",proto:!0,forced:!BNe("includes")},{includes:function includes(e){return!!~ENe(c6(CNe(this)),c6(vNe(e)),arguments.length>1?arguments[1]:void 0)}})});var f6=I(function(){"use strict";var yNe=k(),QNe=Y(),bNe=hr(),wNe=Ee(),l6=QNe("".charCodeAt);yNe({target:"String",proto:!0},{isWellFormed:function isWellFormed(){for(var e=wNe(bNe(this)),t=e.length,i=0;i<t;i++){var n=l6(e,i);if((n&63488)===55296&&(n>=56320||++i>=t||(l6(e,i)&64512)!==56320))return!1}return!0}})});var PE=I(function(){"use strict";var SNe=Il().charAt,_Ne=Ee(),d6=lr(),qNe=dd(),g6=ba(),h6="String Iterator",DNe=d6.set,FNe=d6.getterFor(h6);qNe(String,"String",function(r){DNe(this,{type:h6,string:_Ne(r),index:0})},function(){var e=FNe(this),t=e.string,i=e.index,n;return i>=t.length?g6(void 0,!0):(n=SNe(t,i),e.index+=n.length,g6(n,!1))})});var pl=I(function(Khr,v6){"use strict";Ch();var I6=ge(),p6=$e(),kNe=vh(),x6=W(),m6=ve(),RNe=Xr(),NNe=m6("species"),ME=RegExp.prototype;v6.exports=function(r,e,t,i){var n=m6(r),a=!x6(function(){var u={};return u[n]=function(){return 7},""[r](u)!==7}),o=a&&!x6(function(){var u=!1,c=/a/;if(r==="split"){var l={};l[NNe]=function(){return c},c={constructor:l,flags:""},c[n]=/./[n]}return c.exec=function(){return u=!0,null},c[n](""),!u});if(!a||!o||t){var s=/./[n],A=e(n,""[r],function(u,c,l,f,g){var h=c.exec;return h===kNe||h===ME.exec?a&&!g?{done:!0,value:I6(s,c,l,f)}:{done:!0,value:I6(u,l,c,f)}:{done:!1}});p6(String.prototype,r,A[0]),p6(ME,n,A[1])}i&&RNe(ME[n],"sham",!0)}});var xl=I(function(Vhr,C6){"use strict";var ONe=Il().charAt;C6.exports=function(r,e,t){return e+(t?ONe(r,e).length:1)}});var IA=I(function(Yhr,E6){"use strict";var B6=ge(),TNe=he(),PNe=ke(),MNe=st(),UNe=vh(),GNe=TypeError;E6.exports=function(r,e){var t=r.exec;if(PNe(t)){var i=B6(t,r,e);return i!==null&&TNe(i),i}if(MNe(r)==="RegExp")return B6(UNe,r,e);throw new GNe("RegExp#exec called on incompatible receiver")}});var b6=I(function(){"use strict";var LNe=ge(),HNe=Y(),WNe=pl(),JNe=he(),KNe=me(),VNe=Pt(),bh=Ee(),YNe=hr(),zNe=zr(),jNe=xl(),XNe=Ta(),y6=IA(),Q6=HNe("".indexOf);WNe("match",function(r,e,t){return[function(n){var a=YNe(this),o=KNe(n)?zNe(n,r):void 0;return o?LNe(o,n,a):new RegExp(n)[r](bh(a))},function(i){var n=JNe(this),a=bh(i),o=t(e,n,a);if(o.done)return o.value;var s=bh(XNe(n));if(Q6(s,"g")===-1)return y6(n,a);var A=Q6(s,"u")!==-1;n.lastIndex=0;for(var u=[],c=0,l;(l=y6(n,a))!==null;){var f=bh(l[0]);u[c]=f,f===""&&(n.lastIndex=jNe(a,VNe(n.lastIndex),A)),c++}return c===0?null:u}]})});var O6=I(function(){"use strict";var ZNe=k(),w6=ge(),q6=va(),$Ne=ld(),wh=ba(),S6=hr(),D6=Pt(),ml=Ee(),e4e=he(),r4e=me(),t4e=st(),i4e=ll(),F6=Ta(),n4e=zr(),a4e=$e(),o4e=W(),s4e=ve(),A4e=rl(),c4e=xl(),u4e=IA(),k6=lr(),GE=Je(),Sh=s4e("matchAll"),R6="RegExp String",N6=R6+" Iterator",l4e=k6.set,f4e=k6.getterFor(N6),_6=RegExp.prototype,g4e=TypeError,LE=q6("".indexOf),_h=q6("".matchAll),UE=!!_h&&!o4e(function(){_h("a",/./)}),d4e=$Ne(function(e,t,i,n){l4e(this,{type:N6,regexp:e,string:t,global:i,unicode:n,done:!1})},R6,function(){var e=f4e(this);if(e.done)return wh(void 0,!0);var t=e.regexp,i=e.string,n=u4e(t,i);return n===null?(e.done=!0,wh(void 0,!0)):e.global?(ml(n[0])===""&&(t.lastIndex=c4e(i,D6(t.lastIndex),e.unicode)),wh(n,!1)):(e.done=!0,wh(n,!1))}),HE=function HE(r){var e=e4e(this),t=ml(r),i=A4e(e,RegExp),n=ml(F6(e)),a,o,s;return a=new i(i===RegExp?e.source:e,n),o=!!~LE(n,"g"),s=!!~LE(n,"u"),a.lastIndex=D6(e.lastIndex),new d4e(a,t,o,s)};ZNe({target:"String",proto:!0,forced:UE},{matchAll:function matchAll(e){var t=S6(this),i,n,a,o;if(r4e(e)){if(i4e(e)&&(i=ml(S6(F6(e))),!~LE(i,"g")))throw new g4e("`.matchAll` does not allow non-global regexes");if(UE)return _h(t,e);if(a=n4e(e,Sh),a===void 0&&GE&&t4e(e)==="RegExp"&&(a=HE),a)return w6(a,e,t)}else if(UE)return _h(t,e);return n=ml(t),o=new RegExp(e,"g"),GE?w6(HE,o,n):o[Sh](n)}});GE||Sh in _6||a4e(_6,Sh,HE)});var WE=I(function($hr,T6){"use strict";var h4e=Fi();T6.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(h4e)});var P6=I(function(){"use strict";var I4e=k(),p4e=Pu().end,x4e=WE();I4e({target:"String",proto:!0,forced:x4e},{padEnd:function padEnd(e){return p4e(this,e,arguments.length>1?arguments[1]:void 0)}})});var M6=I(function(){"use strict";var m4e=k(),v4e=Pu().start,C4e=WE();m4e({target:"String",proto:!0,forced:C4e},{padStart:function padStart(e){return v4e(this,e,arguments.length>1?arguments[1]:void 0)}})});var H6=I(function(){"use strict";var B4e=k(),L6=Y(),E4e=Wr(),y4e=He(),U6=Ee(),Q4e=er(),G6=L6([].push),b4e=L6([].join);B4e({target:"String",stat:!0},{raw:function raw(e){var t=E4e(y4e(e).raw),i=Q4e(t);if(!i)return"";for(var n=arguments.length,a=[],o=0;;){if(G6(a,U6(t[o++])),o===i)return b4e(a,"");o<n&&G6(a,U6(arguments[o]))}}})});var W6=I(function(){"use strict";var w4e=k(),S4e=Tu();w4e({target:"String",proto:!0},{repeat:S4e})});var YE=I(function(AIr,J6){"use strict";var VE=Y(),_4e=He(),q4e=Math.floor,JE=VE("".charAt),D4e=VE("".replace),KE=VE("".slice),F4e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,k4e=/\$([$&'`]|\d{1,2})/g;J6.exports=function(r,e,t,i,n,a){var o=t+r.length,s=i.length,A=k4e;return n!==void 0&&(n=_4e(n),A=F4e),D4e(a,A,function(u,c){var l;switch(JE(c,0)){case"$":return"$";case"&":return r;case"`":return KE(e,0,t);case"'":return KE(e,o);case"<":l=n[KE(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var g=q4e(f/10);return g===0?u:g<=s?i[g-1]===void 0?JE(c,1):i[g-1]+JE(c,1):u}l=i[f-1]}return l===void 0?"":l})}});var z6=I(function(){"use strict";var R4e=Lt(),K6=ge(),Dh=Y(),N4e=pl(),O4e=W(),T4e=he(),P4e=ke(),M4e=me(),U4e=Br(),G4e=Pt(),Zo=Ee(),L4e=hr(),H4e=xl(),W4e=zr(),J4e=YE(),K4e=Ta(),V4e=IA(),Y4e=ve(),jE=Y4e("replace"),z4e=Math.max,j4e=Math.min,X4e=Dh([].concat),zE=Dh([].push),qh=Dh("".indexOf),V6=Dh("".slice),Z4e=function Z4e(r){return r===void 0?r:String(r)},$4e=function(){return"a".replace(/./,"$0")==="$0"}(),Y6=function(){return/./[jE]?/./[jE]("a","$0")==="":!1}(),eOe=!O4e(function(){var r=/./;return r.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(r,"$<a>")!=="7"});N4e("replace",function(r,e,t){var i=Y6?"$":"$0";return[function(a,o){var s=L4e(this),A=M4e(a)?W4e(a,jE):void 0;return A?K6(A,a,s,o):K6(e,Zo(s),a,o)},function(n,a){var o=T4e(this),s=Zo(n);if(typeof a=="string"&&qh(a,i)===-1&&qh(a,"$<")===-1){var A=t(e,o,s,a);if(A.done)return A.value}var u=P4e(a);u||(a=Zo(a));var c=Zo(K4e(o)),l=qh(c,"g")!==-1,f;l&&(f=qh(c,"u")!==-1,o.lastIndex=0);for(var g=[],h;h=V4e(o,s),!(h===null||(zE(g,h),!l));){var d=Zo(h[0]);d===""&&(o.lastIndex=H4e(s,G4e(o.lastIndex),f))}for(var p="",m=0,x=0;x<g.length;x++){h=g[x];for(var v=Zo(h[0]),E=z4e(j4e(U4e(h.index),s.length),0),S=[],B,b=1;b<h.length;b++)zE(S,Z4e(h[b]));var C=h.groups;if(u){var y=X4e([v],S,E,s);C!==void 0&&zE(y,C),B=Zo(R4e(a,void 0,y))}else B=J4e(v,s,E,S,C,a);E>=m&&(p+=V6(s,m,E)+B,m=E+v.length)}return p+V6(s,m)}]},!eOe||!$4e||Y6)});var Z6=I(function(){"use strict";var rOe=k(),tOe=ge(),ZE=Y(),j6=hr(),iOe=ke(),nOe=me(),aOe=ll(),pA=Ee(),oOe=zr(),sOe=Ta(),AOe=YE(),cOe=ve(),uOe=Je(),lOe=cOe("replace"),fOe=TypeError,XE=ZE("".indexOf),gOe=ZE("".replace),X6=ZE("".slice),dOe=Math.max;rOe({target:"String",proto:!0},{replaceAll:function replaceAll(e,t){var i=j6(this),n,a,o,s,A,u,c,l,f,g,h=0,d="";if(nOe(e)){if(n=aOe(e),n&&(a=pA(j6(sOe(e))),!~XE(a,"g")))throw new fOe("`.replaceAll` does not allow non-global regexes");if(o=oOe(e,lOe),o)return tOe(o,e,i,t);if(uOe&&n)return gOe(pA(i),e,t)}for(s=pA(i),A=pA(e),u=iOe(t),u||(t=pA(t)),c=A.length,l=dOe(1,c),f=XE(s,A);f!==-1;)g=u?pA(t(A,f,s)):AOe(A,s,f,[],void 0,t),d+=X6(s,h,f)+g,h=f+c,f=f+l>s.length?-1:XE(s,A,f+l);return h<s.length&&(d+=X6(s,h)),d}})});var rL=I(function(){"use strict";var hOe=ge(),IOe=pl(),pOe=he(),xOe=me(),mOe=hr(),$6=xB(),eL=Ee(),vOe=zr(),COe=IA();IOe("search",function(r,e,t){return[function(n){var a=mOe(this),o=xOe(n)?vOe(n,r):void 0;return o?hOe(o,n,a):new RegExp(n)[r](eL(a))},function(i){var n=pOe(this),a=eL(i),o=t(e,n,a);if(o.done)return o.value;var s=n.lastIndex;$6(s,0)||(n.lastIndex=0);var A=COe(n,a);return $6(n.lastIndex,s)||(n.lastIndex=s),A===null?-1:A.index}]})});var oL=I(function(){"use strict";var $E=ge(),aL=Y(),BOe=pl(),EOe=he(),yOe=me(),QOe=hr(),bOe=rl(),wOe=xl(),SOe=Pt(),tL=Ee(),_Oe=zr(),iL=IA(),qOe=fl(),DOe=W(),xA=qOe.UNSUPPORTED_Y,FOe=0xffffffff,kOe=Math.min,ey=aL([].push),ry=aL("".slice),ROe=!DOe(function(){var r=/(?:)/,e=r.exec;r.exec=function(){return e.apply(this,arguments)};var t="ab".split(r);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),nL="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;BOe("split",function(r,e,t){var i="0".split(void 0,0).length?function i(n,a){return n===void 0&&a===0?[]:$E(e,this,n,a)}:e;return[function(a,o){var s=QOe(this),A=yOe(a)?_Oe(a,r):void 0;return A?$E(A,a,s,o):$E(i,tL(s),a,o)},function(n,a){var o=EOe(this),s=tL(n);if(!nL){var A=t(i,o,s,a,i!==e);if(A.done)return A.value}var u=bOe(o,RegExp),c=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(xA?"g":"y"),f=new u(xA?"^(?:"+o.source+")":o,l),g=a===void 0?FOe:a>>>0;if(g===0)return[];if(s.length===0)return iL(f,s)===null?[s]:[];for(var h=0,d=0,p=[];d<s.length;){f.lastIndex=xA?0:d;var m=iL(f,xA?ry(s,d):s),x;if(m===null||(x=kOe(SOe(f.lastIndex+(xA?d:0)),s.length))===h)d=wOe(s,d,c);else{if(ey(p,ry(s,h,d)),p.length===g)return p;for(var v=1;v<=m.length-1;v++)if(ey(p,m[v]),p.length===g)return p;d=h=x}}return ey(p,ry(s,h)),p}]},nL||!ROe,xA)});var cL=I(function(){"use strict";var NOe=k(),OOe=va(),TOe=jr().f,POe=Pt(),sL=Ee(),MOe=yh(),UOe=hr(),GOe=Qh(),LOe=Je(),HOe=OOe("".slice),WOe=Math.min,AL=GOe("startsWith"),JOe=!LOe&&!AL&&!!function(){var r=TOe(String.prototype,"startsWith");return r&&!r.writable}();NOe({target:"String",proto:!0,forced:!JOe&&!AL},{startsWith:function startsWith(e){var t=sL(UOe(this));MOe(e);var i=POe(WOe(arguments.length>1?arguments[1]:void 0,t.length)),n=sL(e);return HOe(t,i,i+n.length)===n}})});var lL=I(function(){"use strict";var KOe=k(),VOe=Y(),YOe=hr(),uL=Br(),zOe=Ee(),jOe=VOe("".slice),XOe=Math.max,ZOe=Math.min,$Oe=!"".substr||"ab".substr(-1)!=="b";KOe({target:"String",proto:!0,forced:$Oe},{substr:function substr(e,t){var i=zOe(YOe(this)),n=i.length,a=uL(e),o,s;return a===1/0&&(a=0),a<0&&(a=XOe(n+a,0)),o=t===void 0?n:uL(t),o<=0||o===1/0?"":(s=ZOe(a+o,n),a>=s?"":jOe(i,a,s))}})});var hL=I(function(){"use strict";var e8e=k(),dL=ge(),ny=Y(),r8e=hr(),t8e=Ee(),i8e=W(),n8e=Array,ty=ny("".charAt),fL=ny("".charCodeAt),a8e=ny([].join),iy="".toWellFormed,o8e="<22>",gL=iy&&i8e(function(){return dL(iy,1)!=="1"});e8e({target:"String",proto:!0,forced:gL},{toWellFormed:function toWellFormed(){var e=t8e(r8e(this));if(gL)return dL(iy,e);for(var t=e.length,i=n8e(t),n=0;n<t;n++){var a=fL(e,n);(a&63488)!==55296?i[n]=ty(e,n):a>=56320||n+1>=t||(fL(e,n+1)&64512)!==56320?i[n]=o8e:(i[n]=ty(e,n),i[++n]=ty(e,n))}return a8e(i,"")}})});var Fh=I(function(EIr,xL){"use strict";var s8e=So().PROPER,A8e=W(),IL=eA(),pL="\x85";xL.exports=function(r){return A8e(function(){return!!IL[r]()||pL[r]()!==pL||s8e&&IL[r].name!==r})}});var mL=I(function(){"use strict";var c8e=k(),u8e=Jo().trim,l8e=Fh();c8e({target:"String",proto:!0,forced:l8e("trim")},{trim:function trim(){return u8e(this)}})});var ay=I(function(bIr,vL){"use strict";var f8e=Jo().end,g8e=Fh();vL.exports=g8e("trimEnd")?function(){return f8e(this)}:"".trimEnd});var BL=I(function(){"use strict";var d8e=k(),CL=ay();d8e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==CL},{trimRight:CL})});var yL=I(function(){"use strict";BL();var h8e=k(),EL=ay();h8e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==EL},{trimEnd:EL})});var oy=I(function(DIr,QL){"use strict";var I8e=Jo().start,p8e=Fh();QL.exports=p8e("trimStart")?function(){return I8e(this)}:"".trimStart});var wL=I(function(){"use strict";var x8e=k(),bL=oy();x8e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==bL},{trimLeft:bL})});var _L=I(function(){"use strict";wL();var m8e=k(),SL=oy();m8e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==SL},{trimStart:SL})});var Jt=I(function(OIr,DL){"use strict";var v8e=Y(),C8e=hr(),qL=Ee(),B8e=/"/g,E8e=v8e("".replace);DL.exports=function(r,e,t,i){var n=qL(C8e(r)),a="<"+e;return t!==""&&(a+=" "+t+'="'+E8e(qL(i),B8e,"&quot;")+'"'),a+">"+n+"</"+e+">"}});var Kt=I(function(TIr,FL){"use strict";var y8e=W();FL.exports=function(r){return y8e(function(){var e=""[r]('"');return e!==e.toLowerCase()||e.split('"').length>3})}});var kL=I(function(){"use strict";var Q8e=k(),b8e=Jt(),w8e=Kt();Q8e({target:"String",proto:!0,forced:w8e("anchor")},{anchor:function anchor(e){return b8e(this,"a","name",e)}})});var RL=I(function(){"use strict";var S8e=k(),_8e=Jt(),q8e=Kt();S8e({target:"String",proto:!0,forced:q8e("big")},{big:function big(){return _8e(this,"big","","")}})});var NL=I(function(){"use strict";var D8e=k(),F8e=Jt(),k8e=Kt();D8e({target:"String",proto:!0,forced:k8e("blink")},{blink:function blink(){return F8e(this,"blink","","")}})});var OL=I(function(){"use strict";var R8e=k(),N8e=Jt(),O8e=Kt();R8e({target:"String",proto:!0,forced:O8e("bold")},{bold:function bold(){return N8e(this,"b","","")}})});var TL=I(function(){"use strict";var T8e=k(),P8e=Jt(),M8e=Kt();T8e({target:"String",proto:!0,forced:M8e("fixed")},{fixed:function fixed(){return P8e(this,"tt","","")}})});var PL=I(function(){"use strict";var U8e=k(),G8e=Jt(),L8e=Kt();U8e({target:"String",proto:!0,forced:L8e("fontcolor")},{fontcolor:function fontcolor(e){return G8e(this,"font","color",e)}})});var ML=I(function(){"use strict";var H8e=k(),W8e=Jt(),J8e=Kt();H8e({target:"String",proto:!0,forced:J8e("fontsize")},{fontsize:function fontsize(e){return W8e(this,"font","size",e)}})});var UL=I(function(){"use strict";var K8e=k(),V8e=Jt(),Y8e=Kt();K8e({target:"String",proto:!0,forced:Y8e("italics")},{italics:function italics(){return V8e(this,"i","","")}})});var GL=I(function(){"use strict";var z8e=k(),j8e=Jt(),X8e=Kt();z8e({target:"String",proto:!0,forced:X8e("link")},{link:function link(e){return j8e(this,"a","href",e)}})});var LL=I(function(){"use strict";var Z8e=k(),$8e=Jt(),eTe=Kt();Z8e({target:"String",proto:!0,forced:eTe("small")},{small:function small(){return $8e(this,"small","","")}})});var HL=I(function(){"use strict";var rTe=k(),tTe=Jt(),iTe=Kt();rTe({target:"String",proto:!0,forced:iTe("strike")},{strike:function strike(){return tTe(this,"strike","","")}})});var WL=I(function(){"use strict";var nTe=k(),aTe=Jt(),oTe=Kt();nTe({target:"String",proto:!0,forced:oTe("sub")},{sub:function sub(){return aTe(this,"sub","","")}})});var JL=I(function(){"use strict";var sTe=k(),ATe=Jt(),cTe=Kt();sTe({target:"String",proto:!0,forced:cTe("sup")},{sup:function sup(){return ATe(this,"sup","","")}})});var kh=I(function(upr,VL){"use strict";var KL=te(),sy=W(),uTe=Qu(),lTe=Re().NATIVE_ARRAY_BUFFER_VIEWS,fTe=KL.ArrayBuffer,$o=KL.Int8Array;VL.exports=!lTe||!sy(function(){$o(1)})||!sy(function(){new $o(-1)})||!uTe(function(r){new $o,new $o(null),new $o(1.5),new $o(r)},!0)||sy(function(){return new $o(new fTe(2),1,void 0).length!==1})});var Ay=I(function(lpr,YL){"use strict";var gTe=Ud(),dTe=RangeError;YL.exports=function(r,e){var t=gTe(r);if(t%e)throw new dTe("Wrong offset");return t}});var jL=I(function(fpr,zL){"use strict";var hTe=Math.round;zL.exports=function(r){var e=hTe(r);return e<0?0:e>255?255:e&255}});var cy=I(function(gpr,XL){"use strict";var ITe=Mt();XL.exports=function(r){var e=ITe(r);return e==="BigInt64Array"||e==="BigUint64Array"}});var Rh=I(function(dpr,ZL){"use strict";var pTe=ou(),xTe=TypeError;ZL.exports=function(r){var e=pTe(r,"number");if(typeof e=="number")throw new xTe("Can't convert number to bigint");return BigInt(e)}});var uy=I(function(hpr,$L){"use strict";var mTe=Ut(),vTe=ge(),CTe=eh(),BTe=He(),ETe=er(),yTe=To(),QTe=qn(),bTe=rd(),wTe=cy(),STe=Re().aTypedArrayConstructor,_Te=Rh();$L.exports=function(e){var t=CTe(this),i=BTe(e),n=arguments.length,a=n>1?arguments[1]:void 0,o=a!==void 0,s=QTe(i),A,u,c,l,f,g,h,d;if(s&&!bTe(s))for(h=yTe(i,s),d=h.next,i=[];!(g=vTe(d,h)).done;)i.push(g.value);for(o&&n>2&&(a=mTe(a,arguments[2])),u=ETe(i),c=new(STe(t))(u),l=wTe(c),A=0;u>A;A++)f=o?a(i[A],A):i[A],c[A]=l?_Te(f):+f;return c}});var ln=I(function(Ipr,py){"use strict";var eH=k(),lH=te(),rH=ge(),qTe=xe(),DTe=kh(),El=Re(),fH=Ou(),tH=Ht(),FTe=Tt(),vl=Xr(),kTe=Xd(),RTe=Pt(),iH=ku(),ly=Ay(),NTe=jL(),gH=wn(),Cl=Se(),OTe=Mt(),dy=me(),TTe=Ia(),PTe=Zr(),MTe=pt(),Nh=di(),UTe=ma().f,nH=uy(),GTe=$r().forEach,LTe=Go(),HTe=_r(),dH=ur(),hH=jr(),aH=Js(),xy=lr(),WTe=ya(),hy=xy.get,JTe=xy.set,KTe=xy.enforce,IH=dH.f,VTe=hH.f,fy=lH.RangeError,pH=fH.ArrayBuffer,YTe=pH.prototype,zTe=fH.DataView,Oh=El.NATIVE_ARRAY_BUFFER_VIEWS,oH=El.TYPED_ARRAY_TAG,sH=El.TypedArray,Bl=El.TypedArrayPrototype,Iy=El.isTypedArray,Th="BYTES_PER_ELEMENT",gy="Wrong length",Ph=function Ph(r,e){HTe(r,e,{configurable:!0,get:function get(){return hy(this)[e]}})},AH=function AH(r){var e;return MTe(YTe,r)||(e=OTe(r))==="ArrayBuffer"||e==="SharedArrayBuffer"},xH=function xH(r,e){return Iy(r)&&!TTe(e)&&e in r&&kTe(+e)&&e>=0},cH=function cH(e,t){return t=gH(t),xH(e,t)?FTe(2,e[t]):VTe(e,t)},uH=function uH(e,t,i){return t=gH(t),xH(e,t)&&dy(i)&&Cl(i,"value")&&!Cl(i,"get")&&!Cl(i,"set")&&!i.configurable&&(!Cl(i,"writable")||i.writable)&&(!Cl(i,"enumerable")||i.enumerable)?(e[t]=i.value,e):IH(e,t,i)};qTe?(Oh||(hH.f=cH,dH.f=uH,Ph(Bl,"buffer"),Ph(Bl,"byteOffset"),Ph(Bl,"byteLength"),Ph(Bl,"length")),eH({target:"Object",stat:!0,forced:!Oh},{getOwnPropertyDescriptor:cH,defineProperty:uH}),py.exports=function(r,e,t){var i=r.match(/\d+/)[0]/8,n=r+(t?"Clamped":"")+"Array",a="get"+r,o="set"+r,s=lH[n],A=s,u=A&&A.prototype,c={},l=function l(d,p){var m=hy(d);return m.view[a](p*i+m.byteOffset,!0)},f=function f(d,p,m){var x=hy(d);x.view[o](p*i+x.byteOffset,t?NTe(m):m,!0)},g=function g(d,p){IH(d,p,{get:function get(){return l(this,p)},set:function set(m){return f(this,p,m)},enumerable:!0})};Oh?DTe&&(A=e(function(d,p,m,x){return tH(d,u),WTe(function(){return dy(p)?AH(p)?x!==void 0?new s(p,ly(m,i),x):m!==void 0?new s(p,ly(m,i)):new s(p):Iy(p)?aH(A,p):rH(nH,A,p):new s(iH(p))}(),d,A)}),Nh&&Nh(A,sH),GTe(UTe(s),function(d){d in A||vl(A,d,s[d])}),A.prototype=u):(A=e(function(d,p,m,x){tH(d,u);var v=0,E=0,S,B,b;if(!dy(p))b=iH(p),B=b*i,S=new pH(B);else if(AH(p)){S=p,E=ly(m,i);var C=p.byteLength;if(x===void 0){if(C%i)throw new fy(gy);if(B=C-E,B<0)throw new fy(gy)}else if(B=RTe(x)*i,B+E>C)throw new fy(gy);b=B/i}else return Iy(p)?aH(A,p):rH(nH,A,p);for(JTe(d,{buffer:S,byteOffset:E,byteLength:B,length:b,view:new zTe(S)});v<b;)g(d,v++)}),Nh&&Nh(A,sH),u=A.prototype=PTe(Bl)),u.constructor!==A&&vl(u,"constructor",A),KTe(u).TypedArrayConstructor=A,oH&&vl(u,oH,n);var h=A!==s;c[n]=A,eH({global:!0,constructor:!0,forced:h,sham:!Oh},c),Th in A||vl(A,Th,i),Th in u||vl(u,Th,i),LTe(n)}):py.exports=function(){}});var mH=I(function(){"use strict";var jTe=ln();jTe("Float32",function(r){return function(t,i,n){return r(this,t,i,n)}})});var vH=I(function(){"use strict";var XTe=ln();XTe("Float64",function(r){return function(t,i,n){return r(this,t,i,n)}})});var CH=I(function(){"use strict";var ZTe=ln();ZTe("Int8",function(r){return function(t,i,n){return r(this,t,i,n)}})});var BH=I(function(){"use strict";var $Te=ln();$Te("Int16",function(r){return function(t,i,n){return r(this,t,i,n)}})});var EH=I(function(){"use strict";var e5e=ln();e5e("Int32",function(r){return function(t,i,n){return r(this,t,i,n)}})});var yH=I(function(){"use strict";var r5e=ln();r5e("Uint8",function(r){return function(t,i,n){return r(this,t,i,n)}})});var QH=I(function(){"use strict";var t5e=ln();t5e("Uint8",function(r){return function(t,i,n){return r(this,t,i,n)}},!0)});var bH=I(function(){"use strict";var i5e=ln();i5e("Uint16",function(r){return function(t,i,n){return r(this,t,i,n)}})});var wH=I(function(){"use strict";var n5e=ln();n5e("Uint32",function(r){return function(t,i,n){return r(this,t,i,n)}})});var _H=I(function(){"use strict";var SH=Re(),a5e=er(),o5e=Br(),s5e=SH.aTypedArray,A5e=SH.exportTypedArrayMethod;A5e("at",function(e){var t=s5e(this),i=a5e(t),n=o5e(e),a=n>=0?n:i+n;return a<0||a>=i?void 0:t[a]})});var DH=I(function(){"use strict";var c5e=Y(),qH=Re(),u5e=Pm(),l5e=c5e(u5e),f5e=qH.aTypedArray,g5e=qH.exportTypedArrayMethod;g5e("copyWithin",function(e,t){return l5e(f5e(this),e,t,arguments.length>2?arguments[2]:void 0)})});var kH=I(function(){"use strict";var FH=Re(),d5e=$r().every,h5e=FH.aTypedArray,I5e=FH.exportTypedArrayMethod;I5e("every",function(e){return d5e(h5e(this),e,arguments.length>1?arguments[1]:void 0)})});var NH=I(function(){"use strict";var RH=Re(),p5e=cd(),x5e=Rh(),m5e=Mt(),v5e=ge(),C5e=Y(),B5e=W(),E5e=RH.aTypedArray,y5e=RH.exportTypedArrayMethod,Q5e=C5e("".slice),b5e=B5e(function(){var r=0;return new Int8Array(2).fill({valueOf:function valueOf(){return r++}}),r!==1});y5e("fill",function(e){var t=arguments.length;E5e(this);var i=Q5e(m5e(this),0,3)==="Big"?x5e(e):+e;return v5e(p5e,this,i,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)},b5e)});var TH=I(function(Hpr,OH){"use strict";var w5e=Js(),S5e=Re().getTypedArrayConstructor;OH.exports=function(r,e){return w5e(S5e(r),e)}});var MH=I(function(){"use strict";var PH=Re(),_5e=$r().filter,q5e=TH(),D5e=PH.aTypedArray,F5e=PH.exportTypedArrayMethod;F5e("filter",function(e){var t=_5e(D5e(this),e,arguments.length>1?arguments[1]:void 0);return q5e(this,t)})});var GH=I(function(){"use strict";var UH=Re(),k5e=$r().find,R5e=UH.aTypedArray,N5e=UH.exportTypedArrayMethod;N5e("find",function(e){return k5e(R5e(this),e,arguments.length>1?arguments[1]:void 0)})});var HH=I(function(){"use strict";var LH=Re(),O5e=$r().findIndex,T5e=LH.aTypedArray,P5e=LH.exportTypedArrayMethod;P5e("findIndex",function(e){return O5e(T5e(this),e,arguments.length>1?arguments[1]:void 0)})});var JH=I(function(){"use strict";var WH=Re(),M5e=yu().findLast,U5e=WH.aTypedArray,G5e=WH.exportTypedArrayMethod;G5e("findLast",function(e){return M5e(U5e(this),e,arguments.length>1?arguments[1]:void 0)})});var VH=I(function(){"use strict";var KH=Re(),L5e=yu().findLastIndex,H5e=KH.aTypedArray,W5e=KH.exportTypedArrayMethod;W5e("findLastIndex",function(e){return L5e(H5e(this),e,arguments.length>1?arguments[1]:void 0)})});var zH=I(function(){"use strict";var YH=Re(),J5e=$r().forEach,K5e=YH.aTypedArray,V5e=YH.exportTypedArrayMethod;V5e("forEach",function(e){J5e(K5e(this),e,arguments.length>1?arguments[1]:void 0)})});var jH=I(function(){"use strict";var Y5e=kh(),z5e=Re().exportTypedArrayStaticMethod,j5e=uy();z5e("from",j5e,Y5e)});var ZH=I(function(){"use strict";var XH=Re(),X5e=Rs().includes,Z5e=XH.aTypedArray,$5e=XH.exportTypedArrayMethod;$5e("includes",function(e){return X5e(Z5e(this),e,arguments.length>1?arguments[1]:void 0)})});var eW=I(function(){"use strict";var $H=Re(),ePe=Rs().indexOf,rPe=$H.aTypedArray,tPe=$H.exportTypedArrayMethod;tPe("indexOf",function(e){return ePe(rPe(this),e,arguments.length>1?arguments[1]:void 0)})});var aW=I(function(){"use strict";var iPe=te(),nPe=W(),my=Y(),tW=Re(),vy=Su(),aPe=ve(),Cy=aPe("iterator"),rW=iPe.Uint8Array,oPe=my(vy.values),sPe=my(vy.keys),APe=my(vy.entries),By=tW.aTypedArray,Mh=tW.exportTypedArrayMethod,mA=rW&&rW.prototype,Uh=!nPe(function(){mA[Cy].call([1])}),iW=!!mA&&mA.values&&mA[Cy]===mA.values&&mA.values.name==="values",nW=function nW(){return oPe(By(this))};Mh("entries",function(){return APe(By(this))},Uh);Mh("keys",function(){return sPe(By(this))},Uh);Mh("values",nW,Uh||!iW,{name:"values"});Mh(Cy,nW,Uh||!iW,{name:"values"})});var sW=I(function(){"use strict";var oW=Re(),cPe=Y(),uPe=oW.aTypedArray,lPe=oW.exportTypedArrayMethod,fPe=cPe([].join);lPe("join",function(e){return fPe(uPe(this),e)})});var cW=I(function(){"use strict";var AW=Re(),gPe=Lt(),dPe=Zm(),hPe=AW.aTypedArray,IPe=AW.exportTypedArrayMethod;IPe("lastIndexOf",function(e){var t=arguments.length;return gPe(dPe,hPe(this),t>1?[e,arguments[1]]:[e])})});var uW=I(function(){"use strict";var Ey=Re(),pPe=$r().map,xPe=Ey.aTypedArray,mPe=Ey.getTypedArrayConstructor,vPe=Ey.exportTypedArrayMethod;vPe("map",function(e){return pPe(xPe(this),e,arguments.length>1?arguments[1]:void 0,function(t,i){return new(mPe(t))(i)})})});var fW=I(function(){"use strict";var lW=Re(),CPe=kh(),BPe=lW.aTypedArrayConstructor,EPe=lW.exportTypedArrayStaticMethod;EPe("of",function(){for(var e=0,t=arguments.length,i=new(BPe(this))(t);t>e;)i[e]=arguments[e++];return i},CPe)});var dW=I(function(){"use strict";var gW=Re(),yPe=_u().left,QPe=gW.aTypedArray,bPe=gW.exportTypedArrayMethod;bPe("reduce",function(e){var t=arguments.length;return yPe(QPe(this),e,t,t>1?arguments[1]:void 0)})});var IW=I(function(){"use strict";var hW=Re(),wPe=_u().right,SPe=hW.aTypedArray,_Pe=hW.exportTypedArrayMethod;_Pe("reduceRight",function(e){var t=arguments.length;return wPe(SPe(this),e,t,t>1?arguments[1]:void 0)})});var xW=I(function(){"use strict";var pW=Re(),qPe=pW.aTypedArray,DPe=pW.exportTypedArrayMethod,FPe=Math.floor;DPe("reverse",function(){for(var e=this,t=qPe(e).length,i=FPe(t/2),n=0,a;n<i;)a=e[n],e[n++]=e[--t],e[t]=a;return e})});var yW=I(function(){"use strict";var vW=te(),CW=ge(),by=Re(),kPe=er(),RPe=Ay(),NPe=He(),BW=W(),OPe=vW.RangeError,yy=vW.Int8Array,mW=yy&&yy.prototype,EW=mW&&mW.set,TPe=by.aTypedArray,PPe=by.exportTypedArrayMethod,Qy=!BW(function(){var r=new Uint8ClampedArray(2);return CW(EW,r,{length:1,0:3},1),r[1]!==3}),MPe=Qy&&by.NATIVE_ARRAY_BUFFER_VIEWS&&BW(function(){var r=new yy(2);return r.set(1),r.set("2",1),r[0]!==0||r[1]!==2});PPe("set",function(e){TPe(this);var t=RPe(arguments.length>1?arguments[1]:void 0,1),i=NPe(e);if(Qy)return CW(EW,this,i,t);var n=this.length,a=kPe(i),o=0;if(a+t>n)throw new OPe("Wrong length");for(;o<a;)this[t+o]=i[o++]},!Qy||MPe)});var QW=I(function(){"use strict";var wy=Re(),UPe=W(),GPe=ei(),LPe=wy.aTypedArray,HPe=wy.getTypedArrayConstructor,WPe=wy.exportTypedArrayMethod,JPe=UPe(function(){new Int8Array(1).slice()});WPe("slice",function(e,t){for(var i=GPe(LPe(this),e,t),n=HPe(this),a=0,o=i.length,s=new n(o);o>a;)s[a]=i[a++];return s},JPe)});var wW=I(function(){"use strict";var bW=Re(),KPe=$r().some,VPe=bW.aTypedArray,YPe=bW.exportTypedArrayMethod;YPe("some",function(e){return KPe(VPe(this),e,arguments.length>1?arguments[1]:void 0)})});var kW=I(function(){"use strict";var zPe=te(),jPe=va(),Sy=W(),XPe=_e(),ZPe=xd(),FW=Re(),SW=rv(),$Pe=tv(),_W=Ri(),qW=md(),eMe=FW.aTypedArray,rMe=FW.exportTypedArrayMethod,yl=zPe.Uint16Array,vA=yl&&jPe(yl.prototype.sort),tMe=!!vA&&!(Sy(function(){vA(new yl(2),null)})&&Sy(function(){vA(new yl(2),{})})),DW=!!vA&&!Sy(function(){if(_W)return _W<74;if(SW)return SW<67;if($Pe)return!0;if(qW)return qW<602;var r=new yl(516),e=Array(516),t,i;for(t=0;t<516;t++)i=t%4,r[t]=515-t,e[t]=t-2*i+3;for(vA(r,function(n,a){return(n/4|0)-(a/4|0)}),t=0;t<516;t++)if(r[t]!==e[t])return!0}),iMe=function iMe(r){return function(e,t){return r!==void 0?+r(e,t)||0:t!==t?-1:e!==e?1:e===0&&t===0?1/e>0&&1/t<0?1:-1:e>t}};rMe("sort",function(e){return e!==void 0&&XPe(e),DW?vA(this,e):ZPe(eMe(this),iMe(e))},!DW||tMe)});var NW=I(function(){"use strict";var _y=Re(),nMe=Pt(),RW=$i(),aMe=_y.aTypedArray,oMe=_y.getTypedArrayConstructor,sMe=_y.exportTypedArrayMethod;sMe("subarray",function(e,t){var i=aMe(this),n=i.length,a=RW(e,n),o=oMe(i);return new o(i.buffer,i.byteOffset+a*i.BYTES_PER_ELEMENT,nMe((t===void 0?n:RW(t,n))-a))})});var UW=I(function(){"use strict";var AMe=te(),cMe=Lt(),PW=Re(),qy=W(),OW=ei(),Gh=AMe.Int8Array,TW=PW.aTypedArray,uMe=PW.exportTypedArrayMethod,MW=[].toLocaleString,lMe=!!Gh&&qy(function(){MW.call(new Gh(1))}),fMe=qy(function(){return[1,2].toLocaleString()!==new Gh([1,2]).toLocaleString()})||!qy(function(){Gh.prototype.toLocaleString.call([1,2])});uMe("toLocaleString",function(){return cMe(MW,lMe?OW(TW(this)):TW(this),OW(arguments))},fMe)});var GW=I(function(){"use strict";var gMe=av(),Dy=Re(),dMe=Dy.aTypedArray,hMe=Dy.exportTypedArrayMethod,IMe=Dy.getTypedArrayConstructor;hMe("toReversed",function(){return gMe(dMe(this),IMe(this))})});var LW=I(function(){"use strict";var Lh=Re(),pMe=Y(),xMe=_e(),mMe=Js(),vMe=Lh.aTypedArray,CMe=Lh.getTypedArrayConstructor,BMe=Lh.exportTypedArrayMethod,EMe=pMe(Lh.TypedArrayPrototype.sort);BMe("toSorted",function(e){e!==void 0&&xMe(e);var t=vMe(this),i=mMe(CMe(t),t);return EMe(i,e)})});var WW=I(function(){"use strict";var yMe=Re().exportTypedArrayMethod,QMe=W(),bMe=te(),wMe=Y(),HW=bMe.Uint8Array,SMe=HW&&HW.prototype||{},Hh=[].toString,_Me=wMe([].join);QMe(function(){Hh.call({})})&&(Hh=function Hh(){return _Me(this)});var qMe=SMe.toString!==Hh;yMe("toString",Hh,qMe)});var KW=I(function(){"use strict";var DMe=sv(),Fy=Re(),FMe=cy(),kMe=Br(),RMe=Rh(),NMe=Fy.aTypedArray,OMe=Fy.getTypedArrayConstructor,TMe=Fy.exportTypedArrayMethod,JW=function(){try{new Int8Array(1).with(2,{valueOf:function valueOf(){throw 8}})}catch(r){return r===8}}(),PMe=JW&&function(){try{new Int8Array(1).with(-.5,1)}catch(r){return!0}}();TMe("with",function(r,e){var t=NMe(this),i=kMe(r),n=FMe(t)?RMe(e):+e;return DMe(t,OMe(t),i,n)},!JW||PMe)});var ky=I(function(W0r,VW){"use strict";var MMe=me(),UMe=String,GMe=TypeError;VW.exports=function(r){if(r===void 0||MMe(r))return r;throw new GMe(UMe(r)+" is not an object or undefined")}});var Ql=I(function(J0r,ZW){"use strict";var XW="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",YW=XW+"+/",zW=XW+"-_",jW=function jW(r){for(var e={},t=0;t<64;t++)e[r.charAt(t)]=t;return e};ZW.exports={i2c:YW,c2i:jW(YW),i2cUrl:zW,c2iUrl:jW(zW)}});var Ry=I(function(K0r,$W){"use strict";var LMe=TypeError;$W.exports=function(r){var e=r&&r.alphabet;if(e===void 0||e==="base64"||e==="base64url")return e||"base64";throw new LMe("Incorrect `alphabet` option")}});var Py=I(function(V0r,t9){"use strict";var e9=te(),HMe=Y(),WMe=ky(),JMe=dl(),KMe=Se(),r9=Ql(),VMe=Ry(),YMe=Xs(),zMe=r9.c2i,jMe=r9.c2iUrl,Wa=e9.SyntaxError,XMe=e9.TypeError,es=HMe("".charAt),Ny=function Ny(r,e){for(var t=r.length;e<t;e++){var i=es(r,e);if(i!==" "&&i!==" "&&i!=="\n"&&i!=="\f"&&i!=="\r")break}return e},Oy=function Oy(r,e,t){var i=r.length;i<4&&(r+=i===2?"AA":"A");var n=(e[es(r,0)]<<18)+(e[es(r,1)]<<12)+(e[es(r,2)]<<6)+e[es(r,3)],a=[n>>16&255,n>>8&255,n&255];if(i===2){if(t&&a[1]!==0)throw new Wa("Extra bits");return[a[0]]}if(i===3){if(t&&a[2]!==0)throw new Wa("Extra bits");return[a[0],a[1]]}return a},Ty=function Ty(r,e,t){for(var i=e.length,n=0;n<i;n++)r[t+n]=e[n];return t+i};t9.exports=function(r,e,t,i){JMe(r),WMe(e);var n=VMe(e)==="base64"?zMe:jMe,a=e?e.lastChunkHandling:void 0;if(a===void 0&&(a="loose"),a!=="loose"&&a!=="strict"&&a!=="stop-before-partial")throw new XMe("Incorrect `lastChunkHandling` option");t&&YMe(t.buffer);var o=r.length,s=t||[],A=0,u=0,c="",l=0;if(i)for(;;){if(l=Ny(r,l),l===o){if(c.length>0){if(a==="stop-before-partial")break;if(a==="loose"){if(c.length===1)throw new Wa("Malformed padding: exactly one additional character");A=Ty(s,Oy(c,n,!1),A)}else throw new Wa("Missing padding")}u=o;break}var f=es(r,l);if(++l,f==="="){if(c.length<2)throw new Wa("Padding is too early");if(l=Ny(r,l),c.length===2){if(l===o){if(a==="stop-before-partial")break;throw new Wa("Malformed padding: only one =")}es(r,l)==="="&&(++l,l=Ny(r,l))}if(l<o)throw new Wa("Unexpected character after padding");A=Ty(s,Oy(c,n,a==="strict"),A),u=o;break}if(!KMe(n,f))throw new Wa("Unexpected character");var g=i-A;if(g===1&&c.length===2||g===2&&c.length===3||(c+=f,c.length===4&&(A=Ty(s,Oy(c,n,!1),A),c="",u=l,A===i)))break}return{bytes:s,read:u,written:A}}});var i9=I(function(){"use strict";var ZMe=k(),$Me=te(),eUe=Js(),rUe=Py(),CA=$Me.Uint8Array,tUe=!CA||!CA.fromBase64||!function(){try{CA.fromBase64("a");return}catch(r){}try{CA.fromBase64("",null)}catch(r){return!0}}();CA&&ZMe({target:"Uint8Array",stat:!0,forced:tUe},{fromBase64:function fromBase64(e){var t=rUe(e,arguments.length>1?arguments[1]:void 0,null,0x1fffffffffffff);return eUe(CA,t.bytes)}})});var Uy=I(function(j0r,s9){"use strict";var My=te(),a9=Y(),iUe=My.Uint8Array,n9=My.SyntaxError,nUe=My.parseInt,aUe=Math.min,o9=/[^\da-f]/i,oUe=a9(o9.exec),sUe=a9("".slice);s9.exports=function(r,e){var t=r.length;if(t%2!==0)throw new n9("String should be an even number of characters");for(var i=e?aUe(e.length,t/2):t/2,n=e||new iUe(i),a=0,o=0;o<i;){var s=sUe(r,a,a+=2);if(oUe(o9,s))throw new n9("String should only contain hex characters");n[o++]=nUe(s,16)}return{bytes:n,read:a}}});var A9=I(function(){"use strict";var AUe=k(),cUe=te(),uUe=dl(),lUe=Uy();cUe.Uint8Array&&AUe({target:"Uint8Array",stat:!0},{fromHex:function fromHex(e){return lUe(uUe(e)).bytes}})});var bl=I(function($0r,c9){"use strict";var fUe=Mt(),gUe=TypeError;c9.exports=function(r){if(fUe(r)==="Uint8Array")return r;throw new gUe("Argument is not an Uint8Array")}});var u9=I(function(){"use strict";var dUe=k(),hUe=te(),IUe=Py(),pUe=bl(),Wh=hUe.Uint8Array,xUe=!Wh||!Wh.prototype.setFromBase64||!function(){var r=new Wh([255,255,255,255,255]);try{r.setFromBase64("",null);return}catch(e){}try{r.setFromBase64("a");return}catch(e){}try{r.setFromBase64("MjYyZg===")}catch(e){return r[0]===50&&r[1]===54&&r[2]===50&&r[3]===255&&r[4]===255}}();Wh&&dUe({target:"Uint8Array",proto:!0,forced:xUe},{setFromBase64:function setFromBase64(e){pUe(this);var t=IUe(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})});var l9=I(function(){"use strict";var mUe=k(),vUe=te(),CUe=dl(),BUe=bl(),EUe=Xs(),yUe=Uy();vUe.Uint8Array&&mUe({target:"Uint8Array",proto:!0},{setFromHex:function setFromHex(e){BUe(this),CUe(e),EUe(this.buffer);var t=yUe(e,this).read;return{read:t,written:t/2}}})});var g9=I(function(){"use strict";var QUe=k(),bUe=te(),wUe=Y(),SUe=ky(),_Ue=bl(),qUe=Xs(),f9=Ql(),DUe=Ry(),FUe=f9.i2c,kUe=f9.i2cUrl,RUe=wUe("".charAt),Jh=bUe.Uint8Array,NUe=!Jh||!Jh.prototype.toBase64||!function(){try{var r=new Jh;r.toBase64(null)}catch(e){return!0}}();Jh&&QUe({target:"Uint8Array",proto:!0,forced:NUe},{toBase64:function toBase64(){var e=_Ue(this),t=arguments.length?SUe(arguments[0]):void 0,i=DUe(t)==="base64"?FUe:kUe,n=!!t&&!!t.omitPadding;qUe(this.buffer);for(var a="",o=0,s=e.length,A,u=function u(c){return RUe(i,A>>6*c&63)};o+2<s;o+=3)A=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a+=u(3)+u(2)+u(1)+u(0);return o+2===s?(A=(e[o]<<16)+(e[o+1]<<8),a+=u(3)+u(2)+u(1)+(n?"":"=")):o+1===s&&(A=e[o]<<16,a+=u(3)+u(2)+(n?"":"==")),a}})});var d9=I(function(){"use strict";var OUe=k(),TUe=te(),PUe=Y(),MUe=bl(),UUe=Xs(),GUe=PUe(1.1.toString),Kh=TUe.Uint8Array,LUe=!Kh||!Kh.prototype.toHex||!function(){try{var r=new Kh([255,255,255,255,255,255,255,255]);return r.toHex()==="ffffffffffffffff"}catch(e){return!1}}();Kh&&OUe({target:"Uint8Array",proto:!0,forced:LUe},{toHex:function toHex(){MUe(this),UUe(this.buffer);for(var e="",t=0,i=this.length;t<i;t++){var n=GUe(this[t],16);e+=n.length===1?"0"+n:n}return e}})});var m9=I(function(){"use strict";var HUe=k(),Gy=Y(),WUe=Ee(),h9=String.fromCharCode,I9=Gy("".charAt),p9=Gy(/./.exec),x9=Gy("".slice),JUe=/^[\da-f]{2}$/i,KUe=/^[\da-f]{4}$/i;HUe({global:!0},{unescape:function unescape1(e){for(var t=WUe(e),i="",n=t.length,a=0,o,s;a<n;){if(o=I9(t,a++),o==="%"){if(I9(t,a)==="u"){if(s=x9(t,a+1,a+5),p9(KUe,s)){i+=h9(parseInt(s,16)),a+=5;continue}}else if(s=x9(t,a,a+2),p9(JUe,s)){i+=h9(parseInt(s,16)),a+=2;continue}}i+=o}return i}})});var Wy=I(function(uxr,Q9){"use strict";var VUe=Y(),v9=nn(),Vh=Na().getWeakData,YUe=Ht(),zUe=he(),jUe=Zi(),Ly=me(),XUe=Pr(),B9=$r(),C9=Se(),E9=lr(),ZUe=E9.set,$Ue=E9.getterFor,eGe=B9.find,rGe=B9.findIndex,tGe=VUe([].splice),iGe=0,Yh=function Yh(r){return r.frozen||(r.frozen=new y9)},y9=function y9(){this.entries=[]},Hy=function Hy(r,e){return eGe(r.entries,function(t){return t[0]===e})};y9.prototype={get:function get(r){var e=Hy(this,r);if(e)return e[1]},has:function has(r){return!!Hy(this,r)},set:function set(r,e){var t=Hy(this,r);t?t[1]=e:this.entries.push([r,e])},delete:function _delete(r){var e=rGe(this.entries,function(t){return t[0]===r});return~e&&tGe(this.entries,e,1),!!~e}};Q9.exports={getConstructor:function getConstructor(r,e,t,i){var n=r(function(A,u){YUe(A,a),ZUe(A,{type:e,id:iGe++,frozen:null}),jUe(u)||XUe(u,A[i],{that:A,AS_ENTRIES:t})}),a=n.prototype,o=$Ue(e),s=function s(A,u,c){var l=o(A),f=Vh(zUe(u),!0);return f===!0?Yh(l).set(u,c):f[l.id]=c,A};return v9(a,{delete:function _delete(A){var u=o(this);if(!Ly(A))return!1;var c=Vh(A);return c===!0?Yh(u).delete(A):c&&C9(c,u.id)&&delete c[u.id]},has:function has(u){var c=o(this);if(!Ly(u))return!1;var l=Vh(u);return l===!0?Yh(c).has(u):l&&C9(l,c.id)}}),v9(a,t?{get:function get(u){var c=o(this);if(Ly(u)){var l=Vh(u);if(l===!0)return Yh(c).get(u);if(l)return l[c.id]}},set:function set(u,c){return s(this,u,c)}}:{add:function add(u){return s(this,u,!0)}}),n}}});var k9=I(function(){"use strict";var nGe=Ra(),b9=te(),Zh=Y(),w9=nn(),aGe=Na(),oGe=Hu(),S9=Wy(),zh=me(),jh=lr().enforce,sGe=W(),AGe=qx(),_l=Object,cGe=Array.isArray,Xh=_l.isExtensible,_9=_l.isFrozen,uGe=_l.isSealed,q9=_l.freeze,lGe=_l.seal,fGe=!b9.ActiveXObject&&"ActiveXObject"in b9,wl,D9=function D9(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},F9=oGe("WeakMap",D9,S9),BA=F9.prototype,$h=Zh(BA.set),gGe=function gGe(){return nGe&&sGe(function(){var r=q9([]);return $h(new F9,r,1),!_9(r)})};AGe&&(fGe?(wl=S9.getConstructor(D9,"WeakMap",!0),aGe.enable(),Jy=Zh(BA.delete),Sl=Zh(BA.has),Ky=Zh(BA.get),w9(BA,{delete:function _delete(r){if(zh(r)&&!Xh(r)){var e=jh(this);return e.frozen||(e.frozen=new wl),Jy(this,r)||e.frozen.delete(r)}return Jy(this,r)},has:function has(e){if(zh(e)&&!Xh(e)){var t=jh(this);return t.frozen||(t.frozen=new wl),Sl(this,e)||t.frozen.has(e)}return Sl(this,e)},get:function get(e){if(zh(e)&&!Xh(e)){var t=jh(this);return t.frozen||(t.frozen=new wl),Sl(this,e)?Ky(this,e):t.frozen.get(e)}return Ky(this,e)},set:function set(e,t){if(zh(e)&&!Xh(e)){var i=jh(this);i.frozen||(i.frozen=new wl),Sl(this,e)?$h(this,e,t):i.frozen.set(e,t)}else $h(this,e,t);return this}})):gGe()&&w9(BA,{set:function set(e,t){var i;return cGe(e)&&(_9(e)?i=q9:uGe(e)&&(i=lGe)),$h(this,e,t),i&&i(e),this}}));var Jy,Sl,Ky});var R9=I(function(){"use strict";k9()});var N9=I(function(){"use strict";var dGe=Hu(),hGe=Wy();dGe("WeakSet",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},hGe)});var O9=I(function(){"use strict";N9()});var H9=I(function(){"use strict";var IGe=k(),pGe=te(),M9=we(),Vy=Y(),xGe=ge(),eI=W(),mGe=Ee(),vGe=ii(),T9=Ql().c2i,U9=/[^\d+/a-z]/i,CGe=/[\t\n\f\r ]+/g,BGe=/[=]{1,2}$/,rs=M9("atob"),EGe=String.fromCharCode,yGe=Vy("".charAt),P9=Vy("".replace),QGe=Vy(U9.exec),EA=!!rs&&!eI(function(){return rs("aGk=")!=="hi"}),G9=EA&&eI(function(){return rs(" ")!==""}),L9=EA&&!eI(function(){rs("a")}),bGe=EA&&!eI(function(){rs()}),wGe=EA&&rs.length!==1,SGe=!EA||G9||L9||bGe||wGe;IGe({global:!0,bind:!0,enumerable:!0,forced:SGe},{atob:function atob1(e){if(vGe(arguments.length,1),EA&&!G9&&!L9)return xGe(rs,pGe,e);var t=P9(mGe(e),CGe,""),i="",n=0,a=0,o,s,A;if(t.length%4===0&&(t=P9(t,BGe,"")),o=t.length,o%4===1||QGe(U9,t))throw new(M9("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;n<o;)s=yGe(t,n++),A=a%4?A*64+T9[s]:T9[s],a++%4&&(i+=EGe(255&A>>(-2*a&6)));return i}})});var Y9=I(function(){"use strict";var _Ge=k(),qGe=te(),K9=we(),V9=Y(),DGe=ge(),Yy=W(),W9=Ee(),FGe=ii(),kGe=Ql().i2c,yA=K9("btoa"),J9=V9("".charAt),RGe=V9("".charCodeAt),ql=!!yA&&!Yy(function(){return yA("hi")!=="aGk="}),NGe=ql&&!Yy(function(){yA()}),OGe=ql&&Yy(function(){return yA(null)!=="bnVsbA=="}),TGe=ql&&yA.length!==1;_Ge({global:!0,bind:!0,enumerable:!0,forced:!ql||NGe||OGe||TGe},{btoa:function btoa1(e){if(FGe(arguments.length,1),ql)return DGe(yA,qGe,W9(e));for(var t=W9(e),i="",n=0,a=kGe,o,s;J9(t,n)||(a="=",n%1);){if(s=RGe(t,n+=3/4),s>255)throw new(K9("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");o=o<<8|s,i+=J9(a,63&o>>8-n%1*8)}return i}})});var zy=I(function(Exr,z9){"use strict";z9.exports={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}});var Xy=I(function(yxr,X9){"use strict";var PGe=su(),jy=PGe("span").classList,j9=jy&&jy.constructor&&jy.constructor.prototype;X9.exports=j9===Object.prototype?void 0:j9});var rJ=I(function(){"use strict";var Z9=te(),$9=zy(),MGe=Xy(),Zy=Lm(),UGe=Xr(),eJ=function eJ(r){if(r&&r.forEach!==Zy)try{UGe(r,"forEach",Zy)}catch(e){r.forEach=Zy}};for(rI in $9)$9[rI]&&eJ(Z9[rI]&&Z9[rI].prototype);var rI;eJ(MGe)});var oJ=I(function(){"use strict";var tJ=te(),nJ=zy(),GGe=Xy(),Dl=Su(),iJ=Xr(),LGe=Qt(),HGe=ve(),$y=HGe("iterator"),eQ=Dl.values,aJ=function aJ(r,e){if(r){if(r[$y]!==eQ)try{iJ(r,$y,eQ)}catch(i){r[$y]=eQ}if(LGe(r,e,!0),nJ[e]){for(var t in Dl)if(r[t]!==Dl[t])try{iJ(r,t,Dl[t])}catch(i){r[t]=Dl[t]}}}};for(tI in nJ)aJ(tJ[tI]&&tJ[tI].prototype,tI);var tI;aJ(GGe,"DOMTokenList")});var rQ=I(function(_xr,sJ){"use strict";sJ.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}});var xJ=I(function(){"use strict";var WGe=k(),aI=we(),JGe=Fv(),sQ=W(),KGe=Zr(),AQ=Tt(),oI=ur().f,VGe=$e(),iI=_r(),nI=Se(),YGe=Ht(),zGe=he(),uJ=Sm(),AJ=No(),QA=rQ(),jGe=zg(),lJ=lr(),cQ=xe(),fJ=Je(),bA="DOMException",oQ="DATA_CLONE_ERR",AI=aI("Error"),Tn=aI(bA)||function(){try{var r=aI("MessageChannel")||JGe("worker_threads").MessageChannel;new r().port1.postMessage(new WeakMap)}catch(e){if(e.name===oQ&&e.code===25)return e.constructor}}(),XGe=Tn&&Tn.prototype,gJ=AI.prototype,ZGe=lJ.set,$Ge=lJ.getterFor(bA),e6e="stack"in new AI(bA),dJ=function dJ(r){return nI(QA,r)&&QA[r].m?QA[r].c:0},uQ=function uQ(){YGe(this,kl);var e=arguments.length,t=AJ(e<1?void 0:arguments[0]),i=AJ(e<2?void 0:arguments[1],"Error"),n=dJ(i);if(ZGe(this,{type:bA,name:i,message:t,code:n}),cQ||(this.name=i,this.message=t,this.code=n),e6e){var a=new AI(t);a.name=bA,oI(this,"stack",AQ(1,jGe(a.stack,1)))}},kl=uQ.prototype=KGe(gJ),hJ=function hJ(r){return{enumerable:!0,configurable:!0,get:r}},tQ=function tQ(r){return hJ(function(){return $Ge(this)[r]})};cQ&&(iI(kl,"code",tQ("code")),iI(kl,"message",tQ("message")),iI(kl,"name",tQ("name")));oI(kl,"constructor",AQ(1,uQ));var cI=sQ(function(){return!_instanceof(new Tn,AI)}),IJ=cI||sQ(function(){return gJ.toString!==uJ||String(new Tn(1,2))!=="2: 1"}),pJ=cI||sQ(function(){return new Tn(1,"DataCloneError").code!==25}),r6e=cI||Tn[oQ]!==25||XGe[oQ]!==25,cJ=fJ?IJ||pJ||r6e:cI;WGe({global:!0,constructor:!0,forced:cJ},{DOMException:cJ?uQ:Tn});var Rl=aI(bA),sI=Rl.prototype;IJ&&(fJ||Tn===Rl)&&VGe(sI,"toString",uJ);pJ&&cQ&&Tn===Rl&&iI(sI,"code",hJ(function(){return dJ(zGe(this).name)}));for(iQ in QA)nI(QA,iQ)&&(nQ=QA[iQ],Fl=nQ.s,aQ=AQ(6,nQ.c),nI(Rl,Fl)||oI(Rl,Fl,aQ),nI(sI,Fl)||oI(sI,Fl,aQ));var nQ,Fl,aQ,iQ});var QJ=I(function(){"use strict";var t6e=k(),i6e=te(),xQ=we(),IQ=Tt(),pQ=ur().f,mJ=Se(),n6e=Ht(),a6e=ya(),vJ=No(),lQ=rQ(),o6e=zg(),s6e=xe(),EJ=Je(),Ol="DOMException",yJ=xQ("Error"),Tl=xQ(Ol),mQ=function mQ1(){n6e(this,A6e);var e=arguments.length,t=vJ(e<1?void 0:arguments[0]),i=vJ(e<2?void 0:arguments[1],"Error"),n=new Tl(t,i),a=new yJ(t);return a.name=Ol,pQ(n,"stack",IQ(1,o6e(a.stack,1))),a6e(n,this,mQ),n},A6e=mQ.prototype=Tl.prototype,c6e="stack"in new yJ(Ol),u6e="stack"in new Tl(1,2),fQ=Tl&&s6e&&Object.getOwnPropertyDescriptor(i6e,Ol),l6e=!!fQ&&!(fQ.writable&&fQ.configurable),CJ=c6e&&!l6e&&!u6e;t6e({global:!0,constructor:!0,forced:EJ||CJ},{DOMException:CJ?mQ:Tl});var Nl=xQ(Ol),BJ=Nl.prototype;if(BJ.constructor!==Nl){EJ||pQ(BJ,"constructor",IQ(1,Nl));for(gQ in lQ)mJ(lQ,gQ)&&(dQ=lQ[gQ],hQ=dQ.s,mJ(Nl,hQ)||pQ(Nl,hQ,IQ(6,dQ.c)))}var dQ,hQ,gQ});var wJ=I(function(){"use strict";var f6e=we(),g6e=Qt(),bJ="DOMException";g6e(f6e(bJ),bJ)});var _J=I(function(){"use strict";var d6e=k(),h6e=te(),SJ=nl().clear;d6e({global:!0,bind:!0,enumerable:!0,forced:h6e.clearImmediate!==SJ},{clearImmediate:SJ})});var uI=I(function(Pxr,DJ){"use strict";var qJ=te(),I6e=Lt(),p6e=ke(),x6e=Du(),m6e=Fi(),v6e=ei(),C6e=ii(),B6e=qJ.Function,E6e=/MSIE .\./.test(m6e)||x6e==="BUN"&&function(){var r=qJ.Bun.version.split(".");return r.length<3||r[0]==="0"&&(r[1]<3||r[1]==="3"&&r[2]==="0")}();DJ.exports=function(r,e){var t=e?2:1;return E6e?function(i,n){var a=C6e(arguments.length,1)>t,o=p6e(i)?i:B6e(i),s=a?v6e(arguments,t):[],A=a?function A(){I6e(o,this,s)}:o;return e?r(A,n):r(A)}:r}});var NJ=I(function(){"use strict";var y6e=k(),RJ=te(),FJ=nl().set,Q6e=uI(),kJ=RJ.setImmediate?Q6e(FJ,!1):FJ;y6e({global:!0,bind:!0,enumerable:!0,forced:RJ.setImmediate!==kJ},{setImmediate:kJ})});var OJ=I(function(){"use strict";_J();NJ()});var TJ=I(function(){"use strict";var b6e=k(),w6e=te(),S6e=MB(),_6e=_e(),q6e=ii(),D6e=W(),F6e=xe(),k6e=D6e(function(){return F6e&&Object.getOwnPropertyDescriptor(w6e,"queueMicrotask").value.length!==1});b6e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:k6e},{queueMicrotask:function queueMicrotask1(e){q6e(arguments.length,1),S6e(_6e(e))}})});var MJ=I(function(){"use strict";var R6e=k(),Ja=te(),N6e=_r(),O6e=xe(),T6e=TypeError,P6e=Object.defineProperty,PJ=Ja.self!==Ja;try{O6e?(lI=Object.getOwnPropertyDescriptor(Ja,"self"),(PJ||!lI||!lI.get||!lI.enumerable)&&N6e(Ja,"self",{get:function get(){return Ja},set:function set(e){if(this!==Ja)throw new T6e("Illegal invocation");P6e(Ja,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})):R6e({global:!0,simple:!0,forced:PJ},{self:Ja})}catch(r){}var lI});var jJ=I(function(){"use strict";var M6e=Je(),U6e=k(),ft=te(),Ml=we(),Gl=Y(),QQ=W(),G6e=xa(),SA=ke(),L6e=Ca(),H6e=Zi(),II=me(),W6e=Ia(),J6e=Pr(),LJ=he(),dI=Mt(),K6e=Se(),V6e=ri(),vQ=Xr(),fI=er(),Y6e=ii(),z6e=Ta(),pI=KC(),bQ=Ii(),j6e=Xo(),UJ=Mv(),X6e=Bm(),wQ=Dd(),Pl=ft.Object,Z6e=ft.Array,HJ=ft.Date,WJ=ft.Error,$6e=ft.TypeError,eLe=ft.PerformanceMark,ts=Ml("DOMException"),EQ=pI.Map,SQ=pI.has,JJ=pI.get,hI=pI.set,KJ=bQ.Set,VJ=bQ.add,rLe=bQ.has,tLe=Ml("Object","keys"),iLe=Gl([].push),nLe=Gl((!0).valueOf),aLe=Gl(1.1.valueOf),oLe=Gl("".valueOf),sLe=Gl(HJ.prototype.getTime),yQ=G6e("structuredClone"),Ul="DataCloneError",gI="Transferring",YJ=function YJ(r){return!QQ(function(){var e=new ft.Set([7]),t=r(e),i=r(Pl(7));return t===e||!t.has(7)||!II(i)||+i!=7})&&r},GJ=function GJ(r,e){return!QQ(function(){var t=new e,i=r({a:t,b:t});return!(i&&i.a===i.b&&_instanceof(i.a,e)&&i.a.stack===t.stack)})},ALe=function ALe(r){return!QQ(function(){var e=r(new ft.AggregateError([1],yQ,{cause:3}));return e.name!=="AggregateError"||e.errors[0]!==1||e.message!==yQ||e.cause!==3})},wA=ft.structuredClone,cLe=M6e||!GJ(wA,WJ)||!GJ(wA,ts)||!ALe(wA),uLe=!wA&&YJ(function(r){return new eLe(yQ,{detail:r}).detail}),Pn=YJ(wA)||uLe,CQ=function CQ(r){throw new ts("Uncloneable type: "+r,Ul)},Vt=function Vt(r,e){throw new ts((e||"Cloning")+" of "+r+" cannot be properly polyfilled in this engine",Ul)},BQ=function BQ(r,e){return Pn||Vt(e),Pn(r)},lLe=function lLe(){var r;try{r=new ft.DataTransfer}catch(e){try{r=new ft.ClipboardEvent("").clipboardData}catch(t){}}return r&&r.items&&r.files?r:null},zJ=function zJ(r,e,t){if(SQ(e,r))return JJ(e,r);var i=t||dI(r),n,a,o,s,A,u;if(i==="SharedArrayBuffer")Pn?n=Pn(r):n=r;else{var c=ft.DataView;!c&&!SA(r.slice)&&Vt("ArrayBuffer");try{if(SA(r.slice)&&!r.resizable)n=r.slice(0);else for(a=r.byteLength,o=("maxByteLength"in r)?{maxByteLength:r.maxByteLength}:void 0,n=new ArrayBuffer(a,o),s=new c(r),A=new c(n),u=0;u<a;u++)A.setUint8(u,s.getUint8(u))}catch(l){throw new ts("ArrayBuffer is detached",Ul)}}return hI(e,r,n),n},fLe=function fLe(r,e,t,i,n){var a=ft[e];return II(a)||Vt(e),new a(zJ(r.buffer,n),t,i)},lt=function lt1(r,e){if(W6e(r)&&CQ("Symbol"),!II(r))return r;if(e){if(SQ(e,r))return JJ(e,r)}else e=new EQ;var t=dI(r),i,n,a,o,s,A,u,c;switch(t){case"Array":a=Z6e(fI(r));break;case"Object":a={};break;case"Map":a=new EQ;break;case"Set":a=new KJ;break;case"RegExp":a=new RegExp(r.source,z6e(r));break;case"Error":switch(n=r.name,n){case"AggregateError":a=new(Ml(n))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":a=new(Ml(n));break;case"CompileError":case"LinkError":case"RuntimeError":a=new(Ml("WebAssembly",n));break;default:a=new WJ}break;case"DOMException":a=new ts(r.message,r.name);break;case"ArrayBuffer":case"SharedArrayBuffer":a=zJ(r,e,t);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":A=t==="DataView"?r.byteLength:r.length,a=fLe(r,t,r.byteOffset,A,e);break;case"DOMQuad":try{a=new DOMQuad(lt(r.p1,e),lt(r.p2,e),lt(r.p3,e),lt(r.p4,e))}catch(l){a=BQ(r,t)}break;case"File":if(Pn)try{a=Pn(r),dI(a)!==t&&(a=void 0)}catch(l){}if(!a)try{a=new File([r],r.name,r)}catch(l){}a||Vt(t);break;case"FileList":if(o=lLe(),o){for(s=0,A=fI(r);s<A;s++)o.items.add(lt(r[s],e));a=o.files}else a=BQ(r,t);break;case"ImageData":try{a=new ImageData(lt(r.data,e),r.width,r.height,{colorSpace:r.colorSpace})}catch(l){a=BQ(r,t)}break;default:if(Pn)a=Pn(r);else switch(t){case"BigInt":a=Pl(r.valueOf());break;case"Boolean":a=Pl(nLe(r));break;case"Number":a=Pl(aLe(r));break;case"String":a=Pl(oLe(r));break;case"Date":a=new HJ(sLe(r));break;case"Blob":try{a=r.slice(0,r.size,r.type)}catch(l){Vt(t)}break;case"DOMPoint":case"DOMPointReadOnly":i=ft[t];try{a=i.fromPoint?i.fromPoint(r):new i(r.x,r.y,r.z,r.w)}catch(l){Vt(t)}break;case"DOMRect":case"DOMRectReadOnly":i=ft[t];try{a=i.fromRect?i.fromRect(r):new i(r.x,r.y,r.width,r.height)}catch(l){Vt(t)}break;case"DOMMatrix":case"DOMMatrixReadOnly":i=ft[t];try{a=i.fromMatrix?i.fromMatrix(r):new i(r)}catch(l){Vt(t)}break;case"AudioData":case"VideoFrame":SA(r.clone)||Vt(t);try{a=r.clone()}catch(l){CQ(t)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Vt(t);default:CQ(t)}}switch(hI(e,r,a),t){case"Array":case"Object":for(u=tLe(r),s=0,A=fI(u);s<A;s++)c=u[s],V6e(a,c,lt(r[c],e));break;case"Map":r.forEach(function(l,f){hI(a,lt(f,e),lt(l,e))});break;case"Set":r.forEach(function(l){VJ(a,lt(l,e))});break;case"Error":vQ(a,"message",lt(r.message,e)),K6e(r,"cause")&&vQ(a,"cause",lt(r.cause,e)),n==="AggregateError"?a.errors=lt(r.errors,e):n==="SuppressedError"&&(a.error=lt(r.error,e),a.suppressed=lt(r.suppressed,e));case"DOMException":X6e&&vQ(a,"stack",lt(r.stack,e))}return a},gLe=function gLe(r,e){if(!II(r))throw new $6e("Transfer option cannot be converted to a sequence");var t=[];J6e(r,function(f){iLe(t,LJ(f))});for(var i=0,n=fI(t),a=new KJ,o,s,A,u,c,l;i<n;){if(o=t[i++],s=dI(o),s==="ArrayBuffer"?rLe(a,o):SQ(e,o))throw new ts("Duplicate transferable",Ul);if(s==="ArrayBuffer"){VJ(a,o);continue}if(wQ)u=wA(o,{transfer:[o]});else switch(s){case"ImageBitmap":A=ft.OffscreenCanvas,L6e(A)||Vt(s,gI);try{c=new A(o.width,o.height),l=c.getContext("bitmaprenderer"),l.transferFromImageBitmap(o),u=c.transferToImageBitmap()}catch(f){}break;case"AudioData":case"VideoFrame":(!SA(o.clone)||!SA(o.close))&&Vt(s,gI);try{u=o.clone(),o.close()}catch(f){}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":Vt(s,gI)}if(u===void 0)throw new ts("This object cannot be transferred: "+s,Ul);hI(e,o,u)}return a},dLe=function dLe(r){j6e(r,function(e){wQ?Pn(e,{transfer:[e]}):SA(e.transfer)?e.transfer():UJ?UJ(e):Vt("ArrayBuffer",gI)})};U6e({global:!0,enumerable:!0,sham:!wQ,forced:cLe},{structuredClone:function structuredClone(e){var t=Y6e(arguments.length,1)>1&&!H6e(arguments[1])?LJ(arguments[1]):void 0,i=t?t.transfer:void 0,n,a;i!==void 0&&(n=new EQ,a=gLe(i,n));var o=lt(e,n);return a&&dLe(a),o}})});var $J=I(function(){"use strict";var hLe=k(),ZJ=te(),ILe=uI(),XJ=ILe(ZJ.setInterval,!0);hLe({global:!0,bind:!0,forced:ZJ.setInterval!==XJ},{setInterval:XJ})});var t7=I(function(){"use strict";var pLe=k(),r7=te(),xLe=uI(),e7=xLe(r7.setTimeout,!0);pLe({global:!0,bind:!0,forced:r7.setTimeout!==e7},{setTimeout:e7})});var i7=I(function(){"use strict";$J();t7()});var Ll=I(function(rmr,a7){"use strict";var mLe=W(),vLe=ve(),CLe=xe(),n7=Je(),BLe=vLe("iterator");a7.exports=!mLe(function(){var r=new URL("b?a=1&b=2&c=3","https://a"),e=r.searchParams,t=new URLSearchParams("a=1&a=2&b=3"),i="";return r.pathname="c%20d",e.forEach(function(n,a){e.delete("b"),i+=a+n}),t.delete("a",2),t.delete("b",void 0),n7&&(!r.toJSON||!t.has("a",1)||t.has("a",2)||!t.has("a",void 0)||t.has("b"))||!e.size&&(n7||!CLe)||!e.sort||r.href!=="https://a/c%20d?a=1&c=3"||e.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!e[BLe]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://тест").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||i!=="a1c3"||new URL("https://x",void 0).host!=="x"})});var d7=I(function(tmr,g7){"use strict";var is=Y(),_Q=0x7fffffff,Hl=36,u7=1,FQ=26,ELe=38,yLe=700,QLe=72,bLe=128,wLe="-",SLe=/[^\0-\u007E]/,l7=/[.\u3002\uFF0E\uFF61]/g,o7="Overflow: input needs wider integers to process",qQ=Hl-u7,s7=RangeError,_Le=is(l7.exec),_A=Math.floor,DQ=String.fromCharCode,A7=is("".charCodeAt),f7=is([].join),Ka=is([].push),qLe=is("".replace),DLe=is("".split),FLe=is("".toLowerCase),kLe=function kLe(r){for(var e=[],t=0,i=r.length;t<i;){var n=A7(r,t++);if(n>=55296&&n<=56319&&t<i){var a=A7(r,t++);(a&64512)===56320?Ka(e,((n&1023)<<10)+(a&1023)+65536):(Ka(e,n),t--)}else Ka(e,n)}return e},c7=function c7(r){return r+22+75*(r<26)},RLe=function RLe(r,e,t){var i=0;for(r=t?_A(r/yLe):r>>1,r+=_A(r/e);r>qQ*FQ>>1;)r=_A(r/qQ),i+=Hl;return _A(i+(qQ+1)*r/(r+ELe))},NLe=function NLe(r){var e=[];r=kLe(r);var t=r.length,i=bLe,n=0,a=QLe,o,s;for(o=0;o<r.length;o++)s=r[o],s<128&&Ka(e,DQ(s));var A=e.length,u=A;for(A&&Ka(e,wLe);u<t;){var c=_Q;for(o=0;o<r.length;o++)s=r[o],s>=i&&s<c&&(c=s);var l=u+1;if(c-i>_A((_Q-n)/l))throw new s7(o7);for(n+=(c-i)*l,i=c,o=0;o<r.length;o++){if(s=r[o],s<i&&++n>_Q)throw new s7(o7);if(s===i){for(var f=n,g=Hl;;){var h=g<=a?u7:g>=a+FQ?FQ:g-a;if(f<h)break;var d=f-h,p=Hl-h;Ka(e,DQ(c7(h+d%p))),f=_A(d/p),g+=Hl}Ka(e,DQ(c7(f))),a=RLe(n,l,u===A),n=0,u++}}n++,i++}return f7(e,"")};g7.exports=function(r){var e=[],t=DLe(qLe(FLe(r),l7,"."),"."),i,n;for(i=0;i<t.length;i++)n=t[i],Ka(e,_Le(SLe,n)?"xn--"+NLe(n):n);return f7(e,".")}});var GQ=I(function(imr,T7){"use strict";Su();TE();var PQ=k(),w7=te(),MQ=FB(),OLe=we(),xI=ge(),Mi=Y(),Wl=xe(),S7=Ll(),_7=$e(),TLe=_r(),PLe=nn(),MLe=Qt(),ULe=ld(),UQ=lr(),q7=Ht(),kQ=ke(),GLe=Se(),LLe=Ut(),HLe=Mt(),WLe=he(),D7=me(),St=Ee(),JLe=Zr(),h7=Tt(),I7=To(),KLe=qn(),mI=ba(),qA=ii(),VLe=ve(),YLe=xd(),zLe=VLe("iterator"),FA="URLSearchParams",F7=FA+"Iterator",k7=UQ.set,pi=UQ.getterFor(FA),jLe=UQ.getterFor(F7),p7=MQ("fetch"),BI=MQ("Request"),Jl=MQ("Headers"),RQ=BI&&BI.prototype,x7=Jl&&Jl.prototype,XLe=w7.TypeError,ZLe=w7.encodeURIComponent,$Le=String.fromCharCode,eHe=OLe("String","fromCodePoint"),rHe=parseInt,CI=Mi("".charAt),m7=Mi([].join),Va=Mi([].push),R7=Mi("".replace),tHe=Mi([].shift),v7=Mi([].splice),C7=Mi("".split),N7=Mi("".slice),iHe=Mi(/./.exec),nHe=/\+/g,NQ="<22>",aHe=/^[0-9a-f]+$/i,B7=function B7(r,e){var t=N7(r,e,e+2);return iHe(aHe,t)?rHe(t,16):NaN},oHe=function oHe(r){for(var e=0,t=128;t>0&&r&t;t>>=1)e++;return e},sHe=function sHe(r){var e=null;switch(r.length){case 1:e=r[0];break;case 2:e=(r[0]&31)<<6|r[1]&63;break;case 3:e=(r[0]&15)<<12|(r[1]&63)<<6|r[2]&63;break;case 4:e=(r[0]&7)<<18|(r[1]&63)<<12|(r[2]&63)<<6|r[3]&63;break}return e>1114111?null:e},E7=function E7(r){r=R7(r,nHe," ");for(var e=r.length,t="",i=0;i<e;){var n=CI(r,i);if(n==="%"){if(CI(r,i+1)==="%"||i+3>e){t+="%",i++;continue}var a=B7(r,i+1);if(a!==a){t+=n,i++;continue}i+=2;var o=oHe(a);if(o===0)n=$Le(a);else{if(o===1||o>4){t+=NQ,i++;continue}for(var s=[a],A=1;A<o&&(i++,!(i+3>e||CI(r,i)!=="%"));){var u=B7(r,i+1);if(u!==u){i+=3;break}if(u>191||u<128)break;Va(s,u),i+=2,A++}if(s.length!==o){t+=NQ;continue}var c=sHe(s);c===null?t+=NQ:n=eHe(c)}}t+=n,i++}return t},AHe=/[!'()~]|%20/g,cHe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},uHe=function uHe(r){return cHe[r]},y7=function y7(r){return R7(ZLe(r),AHe,uHe)},OQ=ULe(function(e,t){k7(this,{type:F7,target:pi(e).entries,index:0,kind:t})},FA,function(){var e=jLe(this),t=e.target,i=e.index++;if(!t||i>=t.length)return e.target=null,mI(void 0,!0);var n=t[i];switch(e.kind){case"keys":return mI(n.key,!1);case"values":return mI(n.value,!1)}return mI([n.key,n.value],!1)},!0),O7=function O7(r){this.entries=[],this.url=null,r!==void 0&&(D7(r)?this.parseObject(r):this.parseQuery(typeof r=="string"?CI(r,0)==="?"?N7(r,1):r:St(r)))};O7.prototype={type:FA,bindURL:function bindURL(r){this.url=r,this.update()},parseObject:function parseObject(r){var e=this.entries,t=KLe(r),i,n,a,o,s,A,u;if(t)for(i=I7(r,t),n=i.next;!(a=xI(n,i)).done;){if(o=I7(WLe(a.value)),s=o.next,(A=xI(s,o)).done||(u=xI(s,o)).done||!xI(s,o).done)throw new XLe("Expected sequence with length 2");Va(e,{key:St(A.value),value:St(u.value)})}else for(var c in r)GLe(r,c)&&Va(e,{key:c,value:St(r[c])})},parseQuery:function parseQuery(r){if(r)for(var e=this.entries,t=C7(r,"&"),i=0,n,a;i<t.length;)n=t[i++],n.length&&(a=C7(n,"="),Va(e,{key:E7(tHe(a)),value:E7(m7(a,"="))}))},serialize:function serialize(){for(var r=this.entries,e=[],t=0,i;t<r.length;)i=r[t++],Va(e,y7(i.key)+"="+y7(i.value));return m7(e,"&")},update:function update(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function updateURL(){this.url&&this.url.update()}};var EI=function EI(){q7(this,DA);var e=arguments.length>0?arguments[0]:void 0,t=k7(this,new O7(e));Wl||(this.size=t.entries.length)},DA=EI.prototype;PLe(DA,{append:function append(e,t){var i=pi(this);qA(arguments.length,2),Va(i.entries,{key:St(e),value:St(t)}),Wl||this.size++,i.updateURL()},delete:function _delete(r){for(var e=pi(this),t=qA(arguments.length,1),i=e.entries,n=St(r),a=t<2?void 0:arguments[1],o=a===void 0?a:St(a),s=0;s<i.length;){var A=i[s];if(A.key===n&&(o===void 0||A.value===o)){if(v7(i,s,1),o!==void 0)break}else s++}Wl||(this.size=i.length),e.updateURL()},get:function get(e){var t=pi(this).entries;qA(arguments.length,1);for(var i=St(e),n=0;n<t.length;n++)if(t[n].key===i)return t[n].value;return null},getAll:function getAll(e){var t=pi(this).entries;qA(arguments.length,1);for(var i=St(e),n=[],a=0;a<t.length;a++)t[a].key===i&&Va(n,t[a].value);return n},has:function has(e){for(var t=pi(this).entries,i=qA(arguments.length,1),n=St(e),a=i<2?void 0:arguments[1],o=a===void 0?a:St(a),s=0;s<t.length;){var A=t[s++];if(A.key===n&&(o===void 0||A.value===o))return!0}return!1},set:function set(e,t){var i=pi(this);qA(arguments.length,1);for(var n=i.entries,a=!1,o=St(e),s=St(t),A=0,u;A<n.length;A++)u=n[A],u.key===o&&(a?v7(n,A--,1):(a=!0,u.value=s));a||Va(n,{key:o,value:s}),Wl||(this.size=n.length),i.updateURL()},sort:function sort(){var e=pi(this);YLe(e.entries,function(t,i){return t.key>i.key?1:-1}),e.updateURL()},forEach:function forEach(e){for(var t=pi(this).entries,i=LLe(e,arguments.length>1?arguments[1]:void 0),n=0,a;n<t.length;)a=t[n++],i(a.value,a.key,this)},keys:function keys(){return new OQ(this,"keys")},values:function values(){return new OQ(this,"values")},entries:function entries(){return new OQ(this,"entries")}},{enumerable:!0});_7(DA,zLe,DA.entries,{name:"entries"});_7(DA,"toString",function(){return pi(this).serialize()},{enumerable:!0});Wl&&TLe(DA,"size",{get:function get(){return pi(this).entries.length},configurable:!0,enumerable:!0});MLe(EI,FA);PQ({global:!0,constructor:!0,forced:!S7},{URLSearchParams:EI});!S7&&kQ(Jl)&&(Q7=Mi(x7.has),b7=Mi(x7.set),TQ=function TQ(r){if(D7(r)){var e=r.body,t;if(HLe(e)===FA)return t=r.headers?new Jl(r.headers):new Jl,Q7(t,"content-type")||b7(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),JLe(r,{body:h7(0,St(e)),headers:h7(0,t)})}return r},kQ(p7)&&PQ({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function fetch1(e){return p7(e,arguments.length>1?TQ(arguments[1]):{})}}),kQ(BI)&&(vI=function vI(e){return q7(this,RQ),new BI(e,arguments.length>1?TQ(arguments[1]):{})},RQ.constructor=vI,vI.prototype=RQ,PQ({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:vI})));var Q7,b7,TQ,vI;T7.exports={URLSearchParams:EI,getState:pi}});var rK=I(function(){"use strict";PE();var lHe=k(),nb=xe(),fHe=Ll(),ab=te(),P7=Ut(),Bi=Y(),SI=$e(),xi=_r(),gHe=Ht(),rb=Se(),ob=hB(),kA=Hm(),Ui=ei(),dHe=Il().codeAt,hHe=d7(),Un=Ee(),IHe=Qt(),pHe=ii(),z7=GQ(),j7=lr(),xHe=j7.set,_I=j7.getterFor("URL"),mHe=z7.URLSearchParams,vHe=z7.getState,Kl=ab.URL,tb=ab.TypeError,qI=ab.parseInt,CHe=Math.floor,M7=Math.pow,Ci=Bi("".charAt),Gi=Bi(/./.exec),Yl=Bi([].join),BHe=Bi(1.1.toString),EHe=Bi([].pop),NA=Bi([].push),LQ=Bi("".replace),yHe=Bi([].shift),QHe=Bi("".split),jl=Bi("".slice),DI=Bi("".toLowerCase),bHe=Bi([].unshift),wHe="Invalid authority",HQ="Invalid scheme",ns="Invalid host",U7="Invalid port",X7=/[a-z]/i,SHe=/[\d+-.a-z]/i,ib=/\d/,_He=/^0x/i,qHe=/^[0-7]+$/,DHe=/^\d+$/,Z7=/^[\da-f]+$/i,FHe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,kHe=/[\0\t\n\r #/:<>?@[\\\]^|]/,RHe=/^[\u0000-\u0020]+/,NHe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,OHe=/[\t\n\r]/g,mi,THe=function THe(r){var e=QHe(r,"."),t,i,n,a,o,s,A;if(e.length&&e[e.length-1]===""&&e.length--,t=e.length,t>4)return r;for(i=[],n=0;n<t;n++){if(a=e[n],a==="")return r;if(o=10,a.length>1&&Ci(a,0)==="0"&&(o=Gi(_He,a)?16:8,a=jl(a,o===8?1:2)),a==="")s=0;else{if(!Gi(o===10?DHe:o===8?qHe:Z7,a))return r;s=qI(a,o)}NA(i,s)}for(n=0;n<t;n++)if(s=i[n],n===t-1){if(s>=M7(256,5-t))return null}else if(s>255)return null;for(A=EHe(i),n=0;n<i.length;n++)A+=i[n]*M7(256,3-n);return A},PHe=function PHe(r){var e=[0,0,0,0,0,0,0,0],t=0,i=null,n=0,a,o,s,A,u,c,l,f=function f(){return Ci(r,n)};if(f()===":"){if(Ci(r,1)!==":")return;n+=2,t++,i=t}for(;f();){if(t===8)return;if(f()===":"){if(i!==null)return;n++,t++,i=t;continue}for(a=o=0;o<4&&Gi(Z7,f());)a=a*16+qI(f(),16),n++,o++;if(f()==="."){if(o===0||(n-=o,t>6))return;for(s=0;f();){if(A=null,s>0)if(f()==="."&&s<4)n++;else return;if(!Gi(ib,f()))return;for(;Gi(ib,f());){if(u=qI(f(),10),A===null)A=u;else{if(A===0)return;A=A*10+u}if(A>255)return;n++}e[t]=e[t]*256+A,s++,(s===2||s===4)&&t++}if(s!==4)return;break}else if(f()===":"){if(n++,!f())return}else if(f())return;e[t++]=a}if(i!==null)for(c=t-i,t=7;t!==0&&c>0;)l=e[t],e[t--]=e[i+c-1],e[i+--c]=l;else if(t!==8)return;return e},MHe=function MHe(r){for(var e=null,t=1,i=null,n=0,a=0;a<8;a++)r[a]!==0?(n>t&&(e=i,t=n),i=null,n=0):(i===null&&(i=a),++n);return n>t?i:e},Vl=function Vl(r){var e,t,i,n;if(typeof r=="number"){for(e=[],t=0;t<4;t++)bHe(e,r%256),r=CHe(r/256);return Yl(e,".")}if((typeof r==="undefined"?"undefined":_type_of(r))=="object"){for(e="",i=MHe(r),t=0;t<8;t++)n&&r[t]===0||(n&&(n=!1),i===t?(e+=t?":":"::",n=!0):(e+=BHe(r[t],16),t<7&&(e+=":")));return"["+e+"]"}return r},wI={},$7=ob({},wI,{" ":1,'"':1,"<":1,">":1,"`":1}),eK=ob({},$7,{"#":1,"?":1,"{":1,"}":1}),WQ=ob({},eK,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Ya=function Ya(r,e){var t=dHe(r,0);return t>32&&t<127&&!rb(e,r)?r:encodeURIComponent(r)},yI={ftp:21,file:null,http:80,https:443,ws:80,wss:443},zl=function zl(r,e){var t;return r.length===2&&Gi(X7,Ci(r,0))&&((t=Ci(r,1))===":"||!e&&t==="|")},G7=function G7(r){var e;return r.length>1&&zl(jl(r,0,2))&&(r.length===2||(e=Ci(r,2))==="/"||e==="\\"||e==="?"||e==="#")},UHe=function UHe(r){return r==="."||DI(r)==="%2e"},GHe=function GHe(r){return r=DI(r),r===".."||r==="%2e."||r===".%2e"||r==="%2e%2e"},JQ={},L7={},KQ={},H7={},W7={},VQ={},J7={},K7={},QI={},bI={},YQ={},zQ={},jQ={},XQ={},V7={},ZQ={},RA={},fn={},Y7={},as={},Mn={},sb=function sb1(r,e,t){var i=Un(r),n,a,o;if(e){if(a=this.parse(i),a)throw new tb(a);this.searchParams=null}else{if(t!==void 0&&(n=new sb(t,!0)),a=this.parse(i,null,n),a)throw new tb(a);o=vHe(new mHe),o.bindURL(this),this.searchParams=o}};sb.prototype={type:"URL",parse:function parse(r,e,t){var i=this,n=e||JQ,a=0,o="",s=!1,A=!1,u=!1,c,l,f,g;for(r=Un(r),e||(i.scheme="",i.username="",i.password="",i.host=null,i.port=null,i.path=[],i.query=null,i.fragment=null,i.cannotBeABaseURL=!1,r=LQ(r,RHe,""),r=LQ(r,NHe,"$1")),r=LQ(r,OHe,""),c=kA(r);a<=c.length;){switch(l=c[a],n){case JQ:if(l&&Gi(X7,l))o+=DI(l),n=L7;else{if(e)return HQ;n=KQ;continue}break;case L7:if(l&&(Gi(SHe,l)||l==="+"||l==="-"||l==="."))o+=DI(l);else if(l===":"){if(e&&(i.isSpecial()!==rb(yI,o)||o==="file"&&(i.includesCredentials()||i.port!==null)||i.scheme==="file"&&!i.host))return;if(i.scheme=o,e){i.isSpecial()&&yI[i.scheme]===i.port&&(i.port=null);return}o="",i.scheme==="file"?n=XQ:i.isSpecial()&&t&&t.scheme===i.scheme?n=H7:i.isSpecial()?n=K7:c[a+1]==="/"?(n=W7,a++):(i.cannotBeABaseURL=!0,NA(i.path,""),n=Y7)}else{if(e)return HQ;o="",n=KQ,a=0;continue}break;case KQ:if(!t||t.cannotBeABaseURL&&l!=="#")return HQ;if(t.cannotBeABaseURL&&l==="#"){i.scheme=t.scheme,i.path=Ui(t.path),i.query=t.query,i.fragment="",i.cannotBeABaseURL=!0,n=Mn;break}n=t.scheme==="file"?XQ:VQ;continue;case H7:if(l==="/"&&c[a+1]==="/")n=QI,a++;else{n=VQ;continue}break;case W7:if(l==="/"){n=bI;break}else{n=fn;continue}case VQ:if(i.scheme=t.scheme,l===mi)i.username=t.username,i.password=t.password,i.host=t.host,i.port=t.port,i.path=Ui(t.path),i.query=t.query;else if(l==="/"||l==="\\"&&i.isSpecial())n=J7;else if(l==="?")i.username=t.username,i.password=t.password,i.host=t.host,i.port=t.port,i.path=Ui(t.path),i.query="",n=as;else if(l==="#")i.username=t.username,i.password=t.password,i.host=t.host,i.port=t.port,i.path=Ui(t.path),i.query=t.query,i.fragment="",n=Mn;else{i.username=t.username,i.password=t.password,i.host=t.host,i.port=t.port,i.path=Ui(t.path),i.path.length--,n=fn;continue}break;case J7:if(i.isSpecial()&&(l==="/"||l==="\\"))n=QI;else if(l==="/")n=bI;else{i.username=t.username,i.password=t.password,i.host=t.host,i.port=t.port,n=fn;continue}break;case K7:if(n=QI,l!=="/"||Ci(o,a+1)!=="/")continue;a++;break;case QI:if(l!=="/"&&l!=="\\"){n=bI;continue}break;case bI:if(l==="@"){s&&(o="%40"+o),s=!0,f=kA(o);for(var h=0;h<f.length;h++){var d=f[h];if(d===":"&&!u){u=!0;continue}var p=Ya(d,WQ);u?i.password+=p:i.username+=p}o=""}else if(l===mi||l==="/"||l==="?"||l==="#"||l==="\\"&&i.isSpecial()){if(s&&o==="")return wHe;a-=kA(o).length+1,o="",n=YQ}else o+=l;break;case YQ:case zQ:if(e&&i.scheme==="file"){n=ZQ;continue}else if(l===":"&&!A){if(o==="")return ns;if(g=i.parseHost(o),g)return g;if(o="",n=jQ,e===zQ)return}else if(l===mi||l==="/"||l==="?"||l==="#"||l==="\\"&&i.isSpecial()){if(i.isSpecial()&&o==="")return ns;if(e&&o===""&&(i.includesCredentials()||i.port!==null))return;if(g=i.parseHost(o),g)return g;if(o="",n=RA,e)return;continue}else l==="["?A=!0:l==="]"&&(A=!1),o+=l;break;case jQ:if(Gi(ib,l))o+=l;else if(l===mi||l==="/"||l==="?"||l==="#"||l==="\\"&&i.isSpecial()||e){if(o!==""){var m=qI(o,10);if(m>65535)return U7;i.port=i.isSpecial()&&m===yI[i.scheme]?null:m,o=""}if(e)return;n=RA;continue}else return U7;break;case XQ:if(i.scheme="file",l==="/"||l==="\\")n=V7;else if(t&&t.scheme==="file")switch(l){case mi:i.host=t.host,i.path=Ui(t.path),i.query=t.query;break;case"?":i.host=t.host,i.path=Ui(t.path),i.query="",n=as;break;case"#":i.host=t.host,i.path=Ui(t.path),i.query=t.query,i.fragment="",n=Mn;break;default:G7(Yl(Ui(c,a),""))||(i.host=t.host,i.path=Ui(t.path),i.shortenPath()),n=fn;continue}else{n=fn;continue}break;case V7:if(l==="/"||l==="\\"){n=ZQ;break}t&&t.scheme==="file"&&!G7(Yl(Ui(c,a),""))&&(zl(t.path[0],!0)?NA(i.path,t.path[0]):i.host=t.host),n=fn;continue;case ZQ:if(l===mi||l==="/"||l==="\\"||l==="?"||l==="#"){if(!e&&zl(o))n=fn;else if(o===""){if(i.host="",e)return;n=RA}else{if(g=i.parseHost(o),g)return g;if(i.host==="localhost"&&(i.host=""),e)return;o="",n=RA}continue}else o+=l;break;case RA:if(i.isSpecial()){if(n=fn,l!=="/"&&l!=="\\")continue}else if(!e&&l==="?")i.query="",n=as;else if(!e&&l==="#")i.fragment="",n=Mn;else if(l!==mi&&(n=fn,l!=="/"))continue;break;case fn:if(l===mi||l==="/"||l==="\\"&&i.isSpecial()||!e&&(l==="?"||l==="#")){if(GHe(o)?(i.shortenPath(),l!=="/"&&!(l==="\\"&&i.isSpecial())&&NA(i.path,"")):UHe(o)?l!=="/"&&!(l==="\\"&&i.isSpecial())&&NA(i.path,""):(i.scheme==="file"&&!i.path.length&&zl(o)&&(i.host&&(i.host=""),o=Ci(o,0)+":"),NA(i.path,o)),o="",i.scheme==="file"&&(l===mi||l==="?"||l==="#"))for(;i.path.length>1&&i.path[0]==="";)yHe(i.path);l==="?"?(i.query="",n=as):l==="#"&&(i.fragment="",n=Mn)}else o+=Ya(l,eK);break;case Y7:l==="?"?(i.query="",n=as):l==="#"?(i.fragment="",n=Mn):l!==mi&&(i.path[0]+=Ya(l,wI));break;case as:!e&&l==="#"?(i.fragment="",n=Mn):l!==mi&&(l==="'"&&i.isSpecial()?i.query+="%27":l==="#"?i.query+="%23":i.query+=Ya(l,wI));break;case Mn:l!==mi&&(i.fragment+=Ya(l,$7));break}a++}},parseHost:function parseHost(r){var e,t,i;if(Ci(r,0)==="["){if(Ci(r,r.length-1)!=="]"||(e=PHe(jl(r,1,-1)),!e))return ns;this.host=e}else if(this.isSpecial()){if(r=hHe(r),Gi(FHe,r)||(e=THe(r),e===null))return ns;this.host=e}else{if(Gi(kHe,r))return ns;for(e="",t=kA(r),i=0;i<t.length;i++)e+=Ya(t[i],wI);this.host=e}},cannotHaveUsernamePasswordPort:function cannotHaveUsernamePasswordPort(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function includesCredentials(){return this.username!==""||this.password!==""},isSpecial:function isSpecial(){return rb(yI,this.scheme)},shortenPath:function shortenPath(){var r=this.path,e=r.length;e&&(this.scheme!=="file"||e!==1||!zl(r[0],!0))&&r.length--},serialize:function serialize(){var r=this,e=r.scheme,t=r.username,i=r.password,n=r.host,a=r.port,o=r.path,s=r.query,A=r.fragment,u=e+":";return n!==null?(u+="//",r.includesCredentials()&&(u+=t+(i?":"+i:"")+"@"),u+=Vl(n),a!==null&&(u+=":"+a)):e==="file"&&(u+="//"),u+=r.cannotBeABaseURL?o[0]:o.length?"/"+Yl(o,"/"):"",s!==null&&(u+="?"+s),A!==null&&(u+="#"+A),u},setHref:function setHref(r){var e=this.parse(r);if(e)throw new tb(e);this.searchParams.update()},getOrigin:function getOrigin(){var r=this.scheme,e=this.port;if(r==="blob")try{return new OA(r.path[0]).origin}catch(t){return"null"}return r==="file"||!this.isSpecial()?"null":r+"://"+Vl(this.host)+(e!==null?":"+e:"")},getProtocol:function getProtocol(){return this.scheme+":"},setProtocol:function setProtocol(r){this.parse(Un(r)+":",JQ)},getUsername:function getUsername(){return this.username},setUsername:function setUsername(r){var e=kA(Un(r));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var t=0;t<e.length;t++)this.username+=Ya(e[t],WQ)}},getPassword:function getPassword(){return this.password},setPassword:function setPassword(r){var e=kA(Un(r));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var t=0;t<e.length;t++)this.password+=Ya(e[t],WQ)}},getHost:function getHost(){var r=this.host,e=this.port;return r===null?"":e===null?Vl(r):Vl(r)+":"+e},setHost:function setHost(r){this.cannotBeABaseURL||this.parse(r,YQ)},getHostname:function getHostname(){var r=this.host;return r===null?"":Vl(r)},setHostname:function setHostname(r){this.cannotBeABaseURL||this.parse(r,zQ)},getPort:function getPort(){var r=this.port;return r===null?"":Un(r)},setPort:function setPort(r){this.cannotHaveUsernamePasswordPort()||(r=Un(r),r===""?this.port=null:this.parse(r,jQ))},getPathname:function getPathname(){var r=this.path;return this.cannotBeABaseURL?r[0]:r.length?"/"+Yl(r,"/"):""},setPathname:function setPathname(r){this.cannotBeABaseURL||(this.path=[],this.parse(r,RA))},getSearch:function getSearch(){var r=this.query;return r?"?"+r:""},setSearch:function setSearch(r){r=Un(r),r===""?this.query=null:(Ci(r,0)==="?"&&(r=jl(r,1)),this.query="",this.parse(r,as)),this.searchParams.update()},getSearchParams:function getSearchParams(){return this.searchParams.facade},getHash:function getHash(){var r=this.fragment;return r?"#"+r:""},setHash:function setHash(r){if(r=Un(r),r===""){this.fragment=null;return}Ci(r,0)==="#"&&(r=jl(r,1)),this.fragment="",this.parse(r,Mn)},update:function update(){this.query=this.searchParams.serialize()||null}};var OA=function OA(e){var t=gHe(this,_t),i=pHe(arguments.length,1)>1?arguments[1]:void 0,n=xHe(t,new sb(e,!1,i));nb||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},_t=OA.prototype,vi=function vi(r,e){return{get:function get(){return _I(this)[r]()},set:e&&function(t){return _I(this)[e](t)},configurable:!0,enumerable:!0}};nb&&(xi(_t,"href",vi("serialize","setHref")),xi(_t,"origin",vi("getOrigin")),xi(_t,"protocol",vi("getProtocol","setProtocol")),xi(_t,"username",vi("getUsername","setUsername")),xi(_t,"password",vi("getPassword","setPassword")),xi(_t,"host",vi("getHost","setHost")),xi(_t,"hostname",vi("getHostname","setHostname")),xi(_t,"port",vi("getPort","setPort")),xi(_t,"pathname",vi("getPathname","setPathname")),xi(_t,"search",vi("getSearch","setSearch")),xi(_t,"searchParams",vi("getSearchParams")),xi(_t,"hash",vi("getHash","setHash")));SI(_t,"toJSON",function(){return _I(this).serialize()},{enumerable:!0});SI(_t,"toString",function(){return _I(this).serialize()},{enumerable:!0});Kl&&($Q=Kl.createObjectURL,eb=Kl.revokeObjectURL,$Q&&SI(OA,"createObjectURL",P7($Q,Kl)),eb&&SI(OA,"revokeObjectURL",P7(eb,Kl)));var $Q,eb;IHe(OA,"URL");lHe({global:!0,constructor:!0,forced:!fHe,sham:!nb},{URL:OA})});var tK=I(function(){"use strict";rK()});var aK=I(function(){"use strict";var LHe=k(),HHe=we(),nK=W(),WHe=ii(),iK=Ee(),JHe=Ll(),Ab=HHe("URL"),KHe=JHe&&nK(function(){Ab.canParse()}),VHe=nK(function(){return Ab.canParse.length!==1});LHe({target:"URL",stat:!0,forced:!KHe||VHe},{canParse:function canParse(e){var t=WHe(arguments.length,1),i=iK(e),n=t<2||arguments[1]===void 0?void 0:iK(arguments[1]);try{return!!new Ab(i,n)}catch(a){return!1}}})});var sK=I(function(){"use strict";var YHe=k(),zHe=we(),jHe=ii(),oK=Ee(),XHe=Ll(),ZHe=zHe("URL");YHe({target:"URL",stat:!0,forced:!XHe},{parse:function parse(e){var t=jHe(arguments.length,1),i=oK(e),n=t<2||arguments[1]===void 0?void 0:oK(arguments[1]);try{return new ZHe(i,n)}catch(a){return null}}})});var AK=I(function(){"use strict";var $He=k(),eWe=ge();$He({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return eWe(URL.prototype.toString,this)}})});var cK=I(function(){"use strict";GQ()});var gK=I(function(){"use strict";var rWe=$e(),FI=Y(),uK=Ee(),tWe=ii(),fK=URLSearchParams,kI=fK.prototype,iWe=FI(kI.append),lK=FI(kI.delete),nWe=FI(kI.forEach),aWe=FI([].push),cb=new fK("a=1&a=2&b=3");cb.delete("a",1);cb.delete("b",void 0);cb+""!="a=2"&&rWe(kI,"delete",function(r){var e=arguments.length,t=e<2?void 0:arguments[1];if(e&&t===void 0)return lK(this,r);var i=[];nWe(this,function(l,f){aWe(i,{key:f,value:l})}),tWe(e,1);for(var n=uK(r),a=uK(t),o=0,s=0,A=!1,u=i.length,c;o<u;)c=i[o++],A||c.key===n?(A=!0,lK(this,c.key)):s++;for(;s<u;)c=i[s++],c.key===n&&c.value===a||iWe(this,c.key,c.value)},{enumerable:!0,unsafe:!0})});var pK=I(function(){"use strict";var oWe=$e(),hK=Y(),sWe=Ee(),AWe=ii(),IK=URLSearchParams,ub=IK.prototype,cWe=hK(ub.getAll),uWe=hK(ub.has),dK=new IK("a=1");(dK.has("a",2)||!dK.has("a",void 0))&&oWe(ub,"has",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&i===void 0)return uWe(this,e);var n=cWe(this,e);AWe(t,1);for(var a=sWe(i),o=0;o<n.length;)if(n[o++]===a)return!0;return!1},{enumerable:!0,unsafe:!0})});var xK=I(function(){"use strict";var lWe=xe(),fWe=Y(),gWe=_r(),lb=URLSearchParams.prototype,dWe=fWe(lb.forEach);lWe&&!("size"in lb)&&gWe(lb,"size",{get:function get(){var e=0;return dWe(this,function(){e++}),e},configurable:!0,enumerable:!0})});var vK=I(function(Bmr,mK){"use strict";Mq();Kq();Vq();Yq();zq();jq();Xq();Zq();$q();eD();rD();tD();iD();nD();aD();oD();sD();kD();TD();LD();aF();cF();fF();dF();CF();QF();wF();qF();DF();kF();NF();PF();MF();LF();HF();KF();r2();t2();n2();a2();Su();b2();q2();D2();k2();N2();H2();J2();V2();j2();X2();gk();Ik();pk();mk();Bk();Ek();yk();Qk();bk();Sk();nR();IR();BR();yR();_R();RR();UR();tN();nN();aN();sN();uN();lN();CN();BN();wN();DN();GN();HN();zN();ZN();t4();i4();c4();C4();y4();D4();F4();O4();T4();G4();L4();H4();V4();j4();X4();tO();iO();nO();fO();xO();dm();mO();NO();MO();LO();JO();VO();YO();zO();ZO();e8();r8();t8();n8();o8();A8();c8();u8();l8();d8();m8();B8();E8();y8();N8();O8();M8();G8();L8();H8();W8();J8();X8();aT();uT();IT();mT();yT();QT();ST();qT();FT();kT();MT();UT();GT();WT();JT();KT();YT();jT();XT();$T();r5();i5();a5();s5();A5();c5();u5();h5();I5();p5();v5();C5();E5();Q5();UP();GP();HP();VP();jP();XP();wM();NM();MM();UM();VM();jM();XM();rU();tU();iU();nU();aU();oU();sU();fU();dU();hU();RU();GU();HU();Ch();YU();jU();$U();iG();aG();qG();RG();TG();UG();HG();VG();jG();XG();r6();o6();TE();u6();f6();PE();b6();O6();P6();M6();H6();W6();z6();Z6();rL();oL();cL();lL();hL();mL();yL();_L();kL();RL();NL();OL();TL();PL();ML();UL();GL();LL();HL();WL();JL();mH();vH();CH();BH();EH();yH();QH();bH();wH();_H();DH();kH();NH();MH();GH();HH();JH();VH();zH();jH();ZH();eW();aW();sW();cW();uW();fW();dW();IW();xW();yW();QW();wW();kW();NW();UW();GW();LW();WW();KW();i9();A9();u9();l9();g9();d9();m9();R9();O9();H9();Y9();rJ();oJ();xJ();QJ();wJ();OJ();TJ();MJ();jJ();i7();tK();aK();sK();AK();cK();gK();pK();xK();mK.exports=fu()});var BK=I(function(TA){"use strict";Object.defineProperty(TA,"__esModule",{value:!0});TA.reasonPhraseToStatusCode=TA.statusCodeToReasonPhrase=void 0;TA.statusCodeToReasonPhrase={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",103:"Early Hints",426:"Upgrade Required",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"};TA.reasonPhraseToStatusCode={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Early Hints":103,"Upgrade Required":426,"Proxy Authentication Required":407,"Request Header Fields Too Large":431,"Request Timeout":408,"Request Entity Too Large":413,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Use Proxy":305,"Misdirected Request":421}});var QK=I(function(za){"use strict";var yK=function yK(r){var e=EK.statusCodeToReasonPhrase[r.toString()];if(!e)throw new Error("Status code does not exist: "+r);return e};var IWe=function IWe(r){var e=EK.reasonPhraseToStatusCode[r];if(!e)throw new Error("Reason phrase does not exist: "+r);return e};Object.defineProperty(za,"__esModule",{value:!0});za.getStatusText=za.getStatusCode=za.getReasonPhrase=void 0;var EK=BK();za.getReasonPhrase=yK;za.getStatusCode=IWe;za.getStatusText=yK});var kr=I(function(hFr,EX){"use strict";var vn=function vn(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))};var BX=function BX(r,e){for(var t="",i=0,n=-1,a=0,o,s=0;s<=r.length;++s){if(s<r.length)o=r.charCodeAt(s);else{if(o===47)break;o=47}if(o===47){if(!(n===s-1||a===1))if(n!==s-1&&a===2){if(t.length<2||i!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var A=t.lastIndexOf("/");if(A!==t.length-1){A===-1?(t="",i=0):(t=t.slice(0,A),i=t.length-1-t.lastIndexOf("/")),n=s,a=0;continue}}else if(t.length===2||t.length===1){t="",i=0,n=s,a=0;continue}}e&&(t.length>0?t+="/..":t="..",i=2)}else t.length>0?t+="/"+r.slice(n+1,s):t=r.slice(n+1,s),i=s-n-1;n=s,a=0}else o===46&&a!==-1?++a:a=-1}return t};var wZe=function wZe(r,e){var t=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+i:t+r+i:i};var yc={resolve:function resolve(){for(var e="",t=!1,i,n=arguments.length-1;n>=-1&&!t;n--){var a;n>=0?a=arguments[n]:(i===void 0&&(i=process.cwd()),a=i),vn(a),a.length!==0&&(e=a+"/"+e,t=a.charCodeAt(0)===47)}return e=BX(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function normalize(e){if(vn(e),e.length===0)return".";var t=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=BX(e,!t),e.length===0&&!t&&(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function isAbsolute(e){return vn(e),e.length>0&&e.charCodeAt(0)===47},join:function join(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var i=arguments[t];vn(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":yc.normalize(e)},relative:function relative(e,t){if(vn(e),vn(t),e===t||(e=yc.resolve(e),t=yc.resolve(t),e===t))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var n=e.length,a=n-i,o=1;o<t.length&&t.charCodeAt(o)===47;++o);for(var s=t.length,A=s-o,u=a<A?a:A,c=-1,l=0;l<=u;++l){if(l===u){if(A>u){if(t.charCodeAt(o+l)===47)return t.slice(o+l+1);if(l===0)return t.slice(o+l)}else a>u&&(e.charCodeAt(i+l)===47?c=l:l===0&&(c=0));break}var f=e.charCodeAt(i+l),g=t.charCodeAt(o+l);if(f!==g)break;f===47&&(c=l)}var h="";for(l=i+c+1;l<=n;++l)(l===n||e.charCodeAt(l)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(o+c):(o+=c,t.charCodeAt(o)===47&&++o,t.slice(o))},_makeLong:function _makeLong(e){return e},dirname:function dirname(e){if(vn(e),e.length===0)return".";for(var t=e.charCodeAt(0),i=t===47,n=-1,a=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),t===47){if(!a){n=o;break}}else a=!1;return n===-1?i?"/":".":i&&n===1?"//":e.slice(0,n)},basename:function basename(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');vn(e);var i=0,n=-1,a=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,A=-1;for(o=e.length-1;o>=0;--o){var u=e.charCodeAt(o);if(u===47){if(!a){i=o+1;break}}else A===-1&&(a=!1,A=o+1),s>=0&&(u===t.charCodeAt(s)?--s===-1&&(n=o):(s=-1,n=A))}return i===n?n=A:n===-1&&(n=e.length),e.slice(i,n)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!a){i=o+1;break}}else n===-1&&(a=!1,n=o+1);return n===-1?"":e.slice(i,n)}},extname:function extname(e){vn(e);for(var t=-1,i=0,n=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var A=e.charCodeAt(s);if(A===47){if(!a){i=s+1;break}continue}n===-1&&(a=!1,n=s+1),A===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||n===-1||o===0||o===1&&t===n-1&&t===i+1?"":e.slice(t,n)},format:function format(e){if(e===null||(typeof e==="undefined"?"undefined":_type_of(e))!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+(typeof e==="undefined"?"undefined":_type_of(e)));return wZe("/",e)},parse:function parse(e){vn(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var i=e.charCodeAt(0),n=i===47,a;n?(t.root="/",a=1):a=0;for(var o=-1,s=0,A=-1,u=!0,c=e.length-1,l=0;c>=a;--c){if(i=e.charCodeAt(c),i===47){if(!u){s=c+1;break}continue}A===-1&&(u=!1,A=c+1),i===46?o===-1?o=c:l!==1&&(l=1):o!==-1&&(l=-1)}return o===-1||A===-1||l===0||l===1&&o===A-1&&o===s+1?A!==-1&&(s===0&&n?t.base=t.name=e.slice(1,A):t.base=t.name=e.slice(s,A)):(s===0&&n?(t.name=e.slice(1,o),t.base=e.slice(1,A)):(t.name=e.slice(s,o),t.base=e.slice(s,A)),t.ext=e.slice(o,A)),s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};yc.posix=yc;EX.exports=yc});var bX=I(function(QX,Sw){(function(r){if((typeof QX==="undefined"?"undefined":_type_of(QX))=="object"&&typeof Sw!="undefined")Sw.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=r()}})(function(){var r,e,t;return(function i(n,a,o){function s(c,l){if(!a[c]){if(!n[c]){var f=typeof require=="function"&&require;if(!l&&f)return f(c,!0);if(A)return A(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var h=a[c]={exports:{}};n[c][0].call(h.exports,function(d){var p=n[c][1][d];return s(p||d)},h,h.exports,i,n,a,o)}return a[c].exports}for(var A=typeof require=="function"&&require,u=0;u<o.length;u++)s(o[u]);return s})({1:[function(i,n,a){(function(o){"use strict";var s=o.MutationObserver||o.WebKitMutationObserver,A;if(s){var u=0,c=new s(d),l=o.document.createTextNode("");c.observe(l,{characterData:!0}),A=function A(){l.data=u=++u%2}}else if(!o.setImmediate&&typeof o.MessageChannel!="undefined"){var f=new o.MessageChannel;f.port1.onmessage=d,A=function A(){f.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?A=function A(){var m=o.document.createElement("script");m.onreadystatechange=function(){d(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},o.document.documentElement.appendChild(m)}:A=function A(){setTimeout(d,0)};var g,h=[];function d(){g=!0;for(var m,x,v=h.length;v;){for(x=h,h=[],m=-1;++m<v;)x[m]();v=h.length}g=!1}n.exports=p;function p(m){h.push(m)===1&&!g&&A()}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(i,n,a){"use strict";var o=i(1);function s(){}var A={},u=["REJECTED"],c=["FULFILLED"],l=["PENDING"];n.exports=f;function f(B){if(typeof B!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,B!==s&&p(this,B)}f.prototype.catch=function(B){return this.then(null,B)},f.prototype.then=function(B,b){if(typeof B!="function"&&this.state===c||typeof b!="function"&&this.state===u)return this;var C=new this.constructor(s);if(this.state!==l){var y=this.state===c?B:b;h(C,y,this.outcome)}else this.queue.push(new g(C,B,b));return C};function g(B,b,C){this.promise=B,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof C=="function"&&(this.onRejected=C,this.callRejected=this.otherCallRejected)}g.prototype.callFulfilled=function(B){A.resolve(this.promise,B)},g.prototype.otherCallFulfilled=function(B){h(this.promise,this.onFulfilled,B)},g.prototype.callRejected=function(B){A.reject(this.promise,B)},g.prototype.otherCallRejected=function(B){h(this.promise,this.onRejected,B)};function h(B,b,C){o(function(){var y;try{y=b(C)}catch(q){return A.reject(B,q)}y===B?A.reject(B,new TypeError("Cannot resolve promise with itself")):A.resolve(B,y)})}A.resolve=function(B,b){var C=m(d,b);if(C.status==="error")return A.reject(B,C.value);var y=C.value;if(y)p(B,y);else{B.state=c,B.outcome=b;for(var q=-1,w=B.queue.length;++q<w;)B.queue[q].callFulfilled(b)}return B},A.reject=function(B,b){B.state=u,B.outcome=b;for(var C=-1,y=B.queue.length;++C<y;)B.queue[C].callRejected(b);return B};function d(B){var b=B&&B.then;if(B&&((typeof B==="undefined"?"undefined":_type_of(B))=="object"||typeof B=="function")&&typeof b=="function")return function(){b.apply(B,arguments)}}function p(B,b){var C=!1;function y(F){C||(C=!0,A.reject(B,F))}function q(F){C||(C=!0,A.resolve(B,F))}function w(){b(q,y)}var N=m(w);N.status==="error"&&y(N.value)}function m(B,b){var C={};try{C.value=B(b),C.status="success"}catch(y){C.status="error",C.value=y}return C}f.resolve=x;function x(B){return _instanceof(B,this)?B:A.resolve(new this(s),B)}f.reject=v;function v(B){var b=new this(s);return A.reject(b,B)}f.all=E;function E(B){var b=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var C=B.length,y=!1;if(!C)return this.resolve([]);for(var q=new Array(C),w=0,N=-1,F=new this(s);++N<C;)M(B[N],N);return F;function M(U,G){b.resolve(U).then(K,function(ce){y||(y=!0,A.reject(F,ce))});function K(ce){q[G]=ce,++w===C&&!y&&(y=!0,A.resolve(F,q))}}}f.race=S;function S(B){var b=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var C=B.length,y=!1;if(!C)return this.resolve([]);for(var q=-1,w=new this(s);++q<C;)N(B[q]);return w;function N(F){b.resolve(F).then(function(M){y||(y=!0,A.resolve(w,M))},function(M){y||(y=!0,A.reject(w,M))})}}},{1:1}],3:[function(i,n,a){(function(o){"use strict";typeof o.Promise!="function"&&(o.Promise=i(2))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(i,n,a){"use strict";var o=typeof Symbol=="function"&&_type_of(Symbol.iterator)=="symbol"?function o(Q){return typeof Q==="undefined"?"undefined":_type_of(Q)}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q==="undefined"?"undefined":_type_of(Q)};function s(Q,R){if(!_instanceof(Q,R))throw new TypeError("Cannot call a class as a function")}function A(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(Q){return}}var u=A();function c(){try{if(!u||!u.open)return!1;var Q=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),R=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!Q||R)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(D){return!1}}function l(Q,R){Q=Q||[],R=R||{};try{return new Blob(Q,R)}catch(O){if(O.name!=="TypeError")throw O;for(var D=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,T=new D,P=0;P<Q.length;P+=1)T.append(Q[P]);return T.getBlob(R.type)}}typeof Promise=="undefined"&&i(3);var f=Promise;function g(Q,R){R&&Q.then(function(D){R(null,D)},function(D){R(D)})}function h(Q,R,D){typeof R=="function"&&Q.then(R),typeof D=="function"&&Q.catch(D)}function d(Q){return typeof Q!="string"&&(console.warn(Q+" used as a key, but it is not a string."),Q=String(Q)),Q}function p(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var m="local-forage-detect-blob-support",x=void 0,v={},E=Object.prototype.toString,S="readonly",B="readwrite";function b(Q){for(var R=Q.length,D=new ArrayBuffer(R),T=new Uint8Array(D),P=0;P<R;P++)T[P]=Q.charCodeAt(P);return D}function C(Q){return new f(function(R){var D=Q.transaction(m,B),T=l([""]);D.objectStore(m).put(T,"key"),D.onabort=function(P){P.preventDefault(),P.stopPropagation(),R(!1)},D.oncomplete=function(){var P=navigator.userAgent.match(/Chrome\/(\d+)/),O=navigator.userAgent.match(/Edge\//);R(O||!P||parseInt(P[1],10)>=43)}}).catch(function(){return!1})}function y(Q){return typeof x=="boolean"?f.resolve(x):C(Q).then(function(R){return x=R,x})}function q(Q){var R=v[Q.name],D={};D.promise=new f(function(T,P){D.resolve=T,D.reject=P}),R.deferredOperations.push(D),R.dbReady?R.dbReady=R.dbReady.then(function(){return D.promise}):R.dbReady=D.promise}function w(Q){var R=v[Q.name],D=R.deferredOperations.pop();if(D)return D.resolve(),D.promise}function N(Q,R){var D=v[Q.name],T=D.deferredOperations.pop();if(T)return T.reject(R),T.promise}function F(Q,R){return new f(function(D,T){if(v[Q.name]=v[Q.name]||pe(),Q.db)if(R)q(Q),Q.db.close();else return D(Q.db);var P=[Q.name];R&&P.push(Q.version);var O=u.open.apply(u,P);R&&(O.onupgradeneeded=function(H){var V=O.result;try{V.createObjectStore(Q.storeName),H.oldVersion<=1&&V.createObjectStore(m)}catch($){if($.name==="ConstraintError")console.warn('The database "'+Q.name+'" has been upgraded from version '+H.oldVersion+" to version "+H.newVersion+', but the storage "'+Q.storeName+'" already exists.');else throw $}}),O.onerror=function(H){H.preventDefault(),T(O.error)},O.onsuccess=function(){var H=O.result;H.onversionchange=function(V){V.target.close()},D(H),w(Q)}})}function M(Q){return F(Q,!1)}function U(Q){return F(Q,!0)}function G(Q,R){if(!Q.db)return!0;var D=!Q.db.objectStoreNames.contains(Q.storeName),T=Q.version<Q.db.version,P=Q.version>Q.db.version;if(T&&(Q.version!==R&&console.warn('The database "'+Q.name+"\" can't be downgraded from version "+Q.db.version+" to version "+Q.version+"."),Q.version=Q.db.version),P||D){if(D){var O=Q.db.version+1;O>Q.version&&(Q.version=O)}return!0}return!1}function K(Q){return new f(function(R,D){var T=new FileReader;T.onerror=D,T.onloadend=function(P){var O=btoa(P.target.result||"");R({__local_forage_encoded_blob:!0,data:O,type:Q.type})},T.readAsBinaryString(Q)})}function ce(Q){var R=b(atob(Q.data));return l([R],{type:Q.type})}function J(Q){return Q&&Q.__local_forage_encoded_blob}function Ce(Q){var R=this,D=R._initReady().then(function(){var T=v[R._dbInfo.name];if(T&&T.dbReady)return T.dbReady});return h(D,Q,Q),D}function L(Q){q(Q);for(var R=v[Q.name],D=R.forages,T=0;T<D.length;T++){var P=D[T];P._dbInfo.db&&(P._dbInfo.db.close(),P._dbInfo.db=null)}return Q.db=null,M(Q).then(function(O){return Q.db=O,G(Q)?U(Q):O}).then(function(O){Q.db=R.db=O;for(var H=0;H<D.length;H++)D[H]._dbInfo.db=O}).catch(function(O){throw N(Q,O),O})}function Ae(Q,R,D,T){T===void 0&&(T=1);try{var P=Q.db.transaction(Q.storeName,R);D(null,P)}catch(O){if(T>0&&(!Q.db||O.name==="InvalidStateError"||O.name==="NotFoundError"))return f.resolve().then(function(){if(!Q.db||O.name==="NotFoundError"&&!Q.db.objectStoreNames.contains(Q.storeName)&&Q.version<=Q.db.version)return Q.db&&(Q.version=Q.db.version+1),U(Q)}).then(function(){return L(Q).then(function(){Ae(Q,R,D,T-1)})}).catch(D);D(O)}}function pe(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function le(Q){var R=this,D={db:null};if(Q)for(var T in Q)D[T]=Q[T];var P=v[D.name];P||(P=pe(),v[D.name]=P),P.forages.push(R),R._initReady||(R._initReady=R.ready,R.ready=Ce);var O=[];function H(){return f.resolve()}for(var V=0;V<P.forages.length;V++){var $=P.forages[V];$!==R&&O.push($._initReady().catch(H))}var ee=P.forages.slice(0);return f.all(O).then(function(){return D.db=P.db,M(D)}).then(function(ae){return D.db=ae,G(D,R._defaultConfig.version)?U(D):ae}).then(function(ae){D.db=P.db=ae,R._dbInfo=D;for(var de=0;de<ee.length;de++){var De=ee[de];De!==R&&(De._dbInfo.db=D.db,De._dbInfo.version=D.version)}})}function ue(Q,R){var D=this;Q=d(Q);var T=new f(function(P,O){D.ready().then(function(){Ae(D._dbInfo,S,function(H,V){if(H)return O(H);try{var $=V.objectStore(D._dbInfo.storeName),ee=$.get(Q);ee.onsuccess=function(){var _$ae=ee.result;_$ae===void 0&&(_$ae=null),J(_$ae)&&(_$ae=ce(_$ae)),P(_$ae)},ee.onerror=function(){O(ee.error)}}catch(ae){O(ae)}})}).catch(O)});return g(T,R),T}function Ge(Q,R){var D=this,T=new f(function(P,O){D.ready().then(function(){Ae(D._dbInfo,S,function(H,V){if(H)return O(H);try{var $=V.objectStore(D._dbInfo.storeName),ee=$.openCursor(),ae=1;ee.onsuccess=function(){var _$de=ee.result;if(_$de){var De=_$de.value;J(De)&&(De=ce(De));var Xe=Q(De,_$de.key,ae++);Xe!==void 0?P(Xe):_$de.continue()}else P()},ee.onerror=function(){O(ee.error)}}catch(de){O(de)}})}).catch(O)});return g(T,R),T}function fe(Q,R,D){var T=this;Q=d(Q);var P=new f(function(O,H){var V;T.ready().then(function(){return V=T._dbInfo,E.call(R)==="[object Blob]"?y(V.db).then(function($){return $?R:K(R)}):R}).then(function($){Ae(T._dbInfo,B,function(ee,ae){if(ee)return H(ee);try{var de=ae.objectStore(T._dbInfo.storeName);$===null&&($=void 0);var De=de.put($,Q);ae.oncomplete=function(){$===void 0&&($=null),O($)},ae.onabort=ae.onerror=function(){var _$Xe=De.error?De.error:De.transaction.error;H(_$Xe)}}catch(Xe){H(Xe)}})}).catch(H)});return g(P,D),P}function Qe(Q,R){var D=this;Q=d(Q);var T=new f(function(P,O){D.ready().then(function(){Ae(D._dbInfo,B,function(H,V){if(H)return O(H);try{var $=V.objectStore(D._dbInfo.storeName),ee=$.delete(Q);V.oncomplete=function(){P()},V.onerror=function(){O(ee.error)},V.onabort=function(){var _$ae=ee.error?ee.error:ee.transaction.error;O(_$ae)}}catch(ae){O(ae)}})}).catch(O)});return g(T,R),T}function Be(Q){var R=this,D=new f(function(T,P){R.ready().then(function(){Ae(R._dbInfo,B,function(O,H){if(O)return P(O);try{var V=H.objectStore(R._dbInfo.storeName),$=V.clear();H.oncomplete=function(){T()},H.onabort=H.onerror=function(){var _$ee=$.error?$.error:$.transaction.error;P(_$ee)}}catch(ee){P(ee)}})}).catch(P)});return g(D,Q),D}function Fe(Q){var R=this,D=new f(function(T,P){R.ready().then(function(){Ae(R._dbInfo,S,function(O,H){if(O)return P(O);try{var V=H.objectStore(R._dbInfo.storeName),$=V.count();$.onsuccess=function(){T($.result)},$.onerror=function(){P($.error)}}catch(ee){P(ee)}})}).catch(P)});return g(D,Q),D}function Oe(Q,R){var D=this,T=new f(function(P,O){if(Q<0){P(null);return}D.ready().then(function(){Ae(D._dbInfo,S,function(H,V){if(H)return O(H);try{var $=V.objectStore(D._dbInfo.storeName),ee=!1,ae=$.openKeyCursor();ae.onsuccess=function(){var _$de=ae.result;if(!_$de){P(null);return}Q===0||ee?P(_$de.key):(ee=!0,_$de.advance(Q))},ae.onerror=function(){O(ae.error)}}catch(de){O(de)}})}).catch(O)});return g(T,R),T}function or(Q){var R=this,D=new f(function(T,P){R.ready().then(function(){Ae(R._dbInfo,S,function(O,H){if(O)return P(O);try{var V=H.objectStore(R._dbInfo.storeName),$=V.openKeyCursor(),ee=[];$.onsuccess=function(){var _$ae=$.result;if(!_$ae){T(ee);return}ee.push(_$ae.key),_$ae.continue()},$.onerror=function(){P($.error)}}catch(ae){P(ae)}})}).catch(P)});return g(D,Q),D}function Te(Q,R){R=p.apply(this,arguments);var D=this.config();Q=typeof Q!="function"&&Q||{},Q.name||(Q.name=Q.name||D.name,Q.storeName=Q.storeName||D.storeName);var T=this,P;if(!Q.name)P=f.reject("Invalid arguments");else{var O=Q.name===D.name&&T._dbInfo.db,H=O?f.resolve(T._dbInfo.db):M(Q).then(function(V){var $=v[Q.name],ee=$.forages;$.db=V;for(var ae=0;ae<ee.length;ae++)ee[ae]._dbInfo.db=V;return V});Q.storeName?P=H.then(function(V){if(V.objectStoreNames.contains(Q.storeName)){var $=V.version+1;q(Q);var ee=v[Q.name],ae=ee.forages;V.close();for(var de=0;de<ae.length;de++){var De=ae[de];De._dbInfo.db=null,De._dbInfo.version=$}var Xe=new f(function(tr,Tr){var Dr=u.open(Q.name,$);Dr.onerror=function(fi){var eu=Dr.result;eu.close(),Tr(fi)},Dr.onupgradeneeded=function(){var fi=Dr.result;fi.deleteObjectStore(Q.storeName)},Dr.onsuccess=function(){var fi=Dr.result;fi.close(),tr(fi)}});return Xe.then(function(tr){ee.db=tr;for(var Tr=0;Tr<ae.length;Tr++){var Dr=ae[Tr];Dr._dbInfo.db=tr,w(Dr._dbInfo)}}).catch(function(tr){throw(N(Q,tr)||f.resolve()).catch(function(){}),tr})}}):P=H.then(function(V){q(Q);var $=v[Q.name],ee=$.forages;V.close();for(var ae=0;ae<ee.length;ae++){var de=ee[ae];de._dbInfo.db=null}var De=new f(function(Xe,tr){var Tr=u.deleteDatabase(Q.name);Tr.onerror=function(){var Dr=Tr.result;Dr&&Dr.close(),tr(Tr.error)},Tr.onblocked=function(){console.warn('dropInstance blocked for database "'+Q.name+'" until all open connections are closed')},Tr.onsuccess=function(){var Dr=Tr.result;Dr&&Dr.close(),Xe(Dr)}});return De.then(function(Xe){$.db=Xe;for(var tr=0;tr<ee.length;tr++){var Tr=ee[tr];w(Tr._dbInfo)}}).catch(function(Xe){throw(N(Q,Xe)||f.resolve()).catch(function(){}),Xe})})}return g(P,R),P}var je={_driver:"asyncStorage",_initStorage:le,_support:c(),iterate:Ge,getItem:ue,setItem:fe,removeItem:Qe,clear:Be,length:Fe,key:Oe,keys:or,dropInstance:Te};function dr(){return typeof openDatabase=="function"}var qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qr="~~local_forage_type~",Me=/^~~local_forage_type~([^~]+)~/,We="__lfsc__:",ir=We.length,Sr="arbf",Ue="blob",cr="si08",ht="ui08",vr="uic8",Or="si16",j1="si32",X1="ur16",Z1="ui32",$1="fl32",eS="fl64",rS=ir+Sr.length,tS=Object.prototype.toString;function iS(Q){var R=Q.length*.75,D=Q.length,T,P=0,O,H,V,$;Q[Q.length-1]==="="&&(R--,Q[Q.length-2]==="="&&R--);var ee=new ArrayBuffer(R),ae=new Uint8Array(ee);for(T=0;T<D;T+=4)O=qe.indexOf(Q[T]),H=qe.indexOf(Q[T+1]),V=qe.indexOf(Q[T+2]),$=qe.indexOf(Q[T+3]),ae[P++]=O<<2|H>>4,ae[P++]=(H&15)<<4|V>>2,ae[P++]=(V&3)<<6|$&63;return ee}function rx(Q){var R=new Uint8Array(Q),D="",T;for(T=0;T<R.length;T+=3)D+=qe[R[T]>>2],D+=qe[(R[T]&3)<<4|R[T+1]>>4],D+=qe[(R[T+1]&15)<<2|R[T+2]>>6],D+=qe[R[T+2]&63];return R.length%3===2?D=D.substring(0,D.length-1)+"=":R.length%3===1&&(D=D.substring(0,D.length-2)+"=="),D}function mte(Q,R){var D="";if(Q&&(D=tS.call(Q)),Q&&(D==="[object ArrayBuffer]"||Q.buffer&&tS.call(Q.buffer)==="[object ArrayBuffer]")){var T,P=We;_instanceof(Q,ArrayBuffer)?(T=Q,P+=Sr):(T=Q.buffer,D==="[object Int8Array]"?P+=cr:D==="[object Uint8Array]"?P+=ht:D==="[object Uint8ClampedArray]"?P+=vr:D==="[object Int16Array]"?P+=Or:D==="[object Uint16Array]"?P+=X1:D==="[object Int32Array]"?P+=j1:D==="[object Uint32Array]"?P+=Z1:D==="[object Float32Array]"?P+=$1:D==="[object Float64Array]"?P+=eS:R(new Error("Failed to get type for BinaryArray"))),R(P+rx(T))}else if(D==="[object Blob]"){var O=new FileReader;O.onload=function(){var _$H=qr+Q.type+"~"+rx(this.result);R(We+Ue+_$H)},O.readAsArrayBuffer(Q)}else try{R(JSON.stringify(Q))}catch(H){console.error("Couldn't convert value into a JSON string: ",Q),R(null,H)}}function vte(Q){if(Q.substring(0,ir)!==We)return JSON.parse(Q);var R=Q.substring(rS),D=Q.substring(ir,rS),T;if(D===Ue&&Me.test(R)){var P=R.match(Me);T=P[1],R=R.substring(P[0].length)}var O=iS(R);switch(D){case Sr:return O;case Ue:return l([O],{type:T});case cr:return new Int8Array(O);case ht:return new Uint8Array(O);case vr:return new Uint8ClampedArray(O);case Or:return new Int16Array(O);case X1:return new Uint16Array(O);case j1:return new Int32Array(O);case Z1:return new Uint32Array(O);case $1:return new Float32Array(O);case eS:return new Float64Array(O);default:throw new Error("Unkown type: "+D)}}var tx={serialize:mte,deserialize:vte,stringToBuffer:iS,bufferToString:rx};function nS(Q,R,D,T){Q.executeSql("CREATE TABLE IF NOT EXISTS "+R.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],D,T)}function Cte(Q){var R=this,D={db:null};if(Q)for(var T in Q)D[T]=typeof Q[T]!="string"?Q[T].toString():Q[T];var P=new f(function(O,H){try{D.db=openDatabase(D.name,String(D.version),D.description,D.size)}catch(V){return H(V)}D.db.transaction(function(V){nS(V,D,function(){R._dbInfo=D,O()},function($,ee){H(ee)})},H)});return D.serializer=tx,P}function ga(Q,R,D,T,P,O){Q.executeSql(D,T,P,function(H,V){V.code===V.SYNTAX_ERR?H.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[R.storeName],function($,ee){ee.rows.length?O($,V):nS($,R,function(){$.executeSql(D,T,P,O)},O)},O):O(H,V)},O)}function Bte(Q,R){var D=this;Q=d(Q);var T=new f(function(P,O){D.ready().then(function(){var H=D._dbInfo;H.db.transaction(function(V){ga(V,H,"SELECT * FROM "+H.storeName+" WHERE key = ? LIMIT 1",[Q],function($,ee){var ae=ee.rows.length?ee.rows.item(0).value:null;ae&&(ae=H.serializer.deserialize(ae)),P(ae)},function($,ee){O(ee)})})}).catch(O)});return g(T,R),T}function Ete(Q,R){var D=this,T=new f(function(P,O){D.ready().then(function(){var H=D._dbInfo;H.db.transaction(function(V){ga(V,H,"SELECT * FROM "+H.storeName,[],function($,ee){for(var ae=ee.rows,de=ae.length,De=0;De<de;De++){var Xe=ae.item(De),tr=Xe.value;if(tr&&(tr=H.serializer.deserialize(tr)),tr=Q(tr,Xe.key,De+1),tr!==void 0){P(tr);return}}P()},function($,ee){O(ee)})})}).catch(O)});return g(T,R),T}function aS(Q,R,D,T){var P=this;Q=d(Q);var O=new f(function(H,V){P.ready().then(function(){R===void 0&&(R=null);var $=R,ee=P._dbInfo;ee.serializer.serialize(R,function(ae,de){de?V(de):ee.db.transaction(function(De){ga(De,ee,"INSERT OR REPLACE INTO "+ee.storeName+" (key, value) VALUES (?, ?)",[Q,ae],function(){H($)},function(Xe,tr){V(tr)})},function(De){if(De.code===De.QUOTA_ERR){if(T>0){H(aS.apply(P,[Q,$,D,T-1]));return}V(De)}})})}).catch(V)});return g(O,D),O}function yte(Q,R,D){return aS.apply(this,[Q,R,D,1])}function Qte(Q,R){var D=this;Q=d(Q);var T=new f(function(P,O){D.ready().then(function(){var H=D._dbInfo;H.db.transaction(function(V){ga(V,H,"DELETE FROM "+H.storeName+" WHERE key = ?",[Q],function(){P()},function($,ee){O(ee)})})}).catch(O)});return g(T,R),T}function bte(Q){var R=this,D=new f(function(T,P){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(H){ga(H,O,"DELETE FROM "+O.storeName,[],function(){T()},function(V,$){P($)})})}).catch(P)});return g(D,Q),D}function wte(Q){var R=this,D=new f(function(T,P){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(H){ga(H,O,"SELECT COUNT(key) as c FROM "+O.storeName,[],function(V,$){var ee=$.rows.item(0).c;T(ee)},function(V,$){P($)})})}).catch(P)});return g(D,Q),D}function Ste(Q,R){var D=this,T=new f(function(P,O){D.ready().then(function(){var H=D._dbInfo;H.db.transaction(function(V){ga(V,H,"SELECT key FROM "+H.storeName+" WHERE id = ? LIMIT 1",[Q+1],function($,ee){var ae=ee.rows.length?ee.rows.item(0).key:null;P(ae)},function($,ee){O(ee)})})}).catch(O)});return g(T,R),T}function _te(Q){var R=this,D=new f(function(T,P){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(H){ga(H,O,"SELECT key FROM "+O.storeName,[],function(V,$){for(var ee=[],ae=0;ae<$.rows.length;ae++)ee.push($.rows.item(ae).key);T(ee)},function(V,$){P($)})})}).catch(P)});return g(D,Q),D}function qte(Q){return new f(function(R,D){Q.transaction(function(T){T.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(P,O){for(var H=[],V=0;V<O.rows.length;V++)H.push(O.rows.item(V).name);R({db:Q,storeNames:H})},function(P,O){D(O)})},function(T){D(T)})})}function Dte(Q,R){R=p.apply(this,arguments);var D=this.config();Q=typeof Q!="function"&&Q||{},Q.name||(Q.name=Q.name||D.name,Q.storeName=Q.storeName||D.storeName);var T=this,P;return Q.name?P=new f(function(O){var H;Q.name===D.name?H=T._dbInfo.db:H=openDatabase(Q.name,"","",0),Q.storeName?O({db:H,storeNames:[Q.storeName]}):O(qte(H))}).then(function(O){return new f(function(H,V){O.db.transaction(function($){function ee(Xe){return new f(function(tr,Tr){$.executeSql("DROP TABLE IF EXISTS "+Xe,[],function(){tr()},function(Dr,fi){Tr(fi)})})}for(var ae=[],de=0,De=O.storeNames.length;de<De;de++)ae.push(ee(O.storeNames[de]));f.all(ae).then(function(){H()}).catch(function(Xe){V(Xe)})},function($){V($)})})}):P=f.reject("Invalid arguments"),g(P,R),P}var Fte={_driver:"webSQLStorage",_initStorage:Cte,_support:dr(),iterate:Ete,getItem:Bte,setItem:yte,removeItem:Qte,clear:bte,length:wte,key:Ste,keys:_te,dropInstance:Dte};function kte(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(Q){return!1}}function oS(Q,R){var D=Q.name+"/";return Q.storeName!==R.storeName&&(D+=Q.storeName+"/"),D}function Rte(){var Q="_localforage_support_test";try{return localStorage.setItem(Q,!0),localStorage.removeItem(Q),!1}catch(R){return!0}}function Nte(){return!Rte()||localStorage.length>0}function Ote(Q){var R=this,D={};if(Q)for(var T in Q)D[T]=Q[T];return D.keyPrefix=oS(Q,R._defaultConfig),Nte()?(R._dbInfo=D,D.serializer=tx,f.resolve()):f.reject()}function Tte(Q){var R=this,D=R.ready().then(function(){for(var T=R._dbInfo.keyPrefix,P=localStorage.length-1;P>=0;P--){var O=localStorage.key(P);O.indexOf(T)===0&&localStorage.removeItem(O)}});return g(D,Q),D}function Pte(Q,R){var D=this;Q=d(Q);var T=D.ready().then(function(){var P=D._dbInfo,O=localStorage.getItem(P.keyPrefix+Q);return O&&(O=P.serializer.deserialize(O)),O});return g(T,R),T}function Mte(Q,R){var D=this,T=D.ready().then(function(){for(var P=D._dbInfo,O=P.keyPrefix,H=O.length,V=localStorage.length,$=1,ee=0;ee<V;ee++){var ae=localStorage.key(ee);if(ae.indexOf(O)===0){var de=localStorage.getItem(ae);if(de&&(de=P.serializer.deserialize(de)),de=Q(de,ae.substring(H),$++),de!==void 0)return de}}});return g(T,R),T}function Ute(Q,R){var D=this,T=D.ready().then(function(){var P=D._dbInfo,O;try{O=localStorage.key(Q)}catch(H){O=null}return O&&(O=O.substring(P.keyPrefix.length)),O});return g(T,R),T}function Gte(Q){var R=this,D=R.ready().then(function(){for(var T=R._dbInfo,P=localStorage.length,O=[],H=0;H<P;H++){var V=localStorage.key(H);V.indexOf(T.keyPrefix)===0&&O.push(V.substring(T.keyPrefix.length))}return O});return g(D,Q),D}function Lte(Q){var R=this,D=R.keys().then(function(T){return T.length});return g(D,Q),D}function Hte(Q,R){var D=this;Q=d(Q);var T=D.ready().then(function(){var P=D._dbInfo;localStorage.removeItem(P.keyPrefix+Q)});return g(T,R),T}function Wte(Q,R,D){var T=this;Q=d(Q);var P=T.ready().then(function(){R===void 0&&(R=null);var O=R;return new f(function(H,V){var $=T._dbInfo;$.serializer.serialize(R,function(ee,ae){if(ae)V(ae);else try{localStorage.setItem($.keyPrefix+Q,ee),H(O)}catch(de){(de.name==="QuotaExceededError"||de.name==="NS_ERROR_DOM_QUOTA_REACHED")&&V(de),V(de)}})})});return g(P,D),P}function Jte(Q,R){if(R=p.apply(this,arguments),Q=typeof Q!="function"&&Q||{},!Q.name){var D=this.config();Q.name=Q.name||D.name,Q.storeName=Q.storeName||D.storeName}var T=this,P;return Q.name?P=new f(function(O){Q.storeName?O(oS(Q,T._defaultConfig)):O(Q.name+"/")}).then(function(O){for(var H=localStorage.length-1;H>=0;H--){var V=localStorage.key(H);V.indexOf(O)===0&&localStorage.removeItem(V)}}):P=f.reject("Invalid arguments"),g(P,R),P}var Kte={_driver:"localStorageWrapper",_initStorage:Ote,_support:kte(),iterate:Mte,getItem:Pte,setItem:Wte,removeItem:Hte,clear:Tte,length:Lte,key:Ute,keys:Gte,dropInstance:Jte},Vte=function Vte(R,D){return R===D||typeof R=="number"&&typeof D=="number"&&isNaN(R)&&isNaN(D)},Yte=function Yte(R,D){for(var T=R.length,P=0;P<T;){if(Vte(R[P],D))return!0;P++}return!1},sS=Array.isArray||function(Q){return Object.prototype.toString.call(Q)==="[object Array]"},$c={},AS={},qs={INDEXEDDB:je,WEBSQL:Fte,LOCALSTORAGE:Kte},zte=[qs.INDEXEDDB._driver,qs.WEBSQL._driver,qs.LOCALSTORAGE._driver],mg=["dropInstance"],ix=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(mg),jte={description:"",driver:zte.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Xte(Q,R){Q[R]=function(){var D=arguments;return Q.ready().then(function(){return Q[R].apply(Q,D)})}}function nx(){for(var Q=1;Q<arguments.length;Q++){var R=arguments[Q];if(R)for(var D in R)R.hasOwnProperty(D)&&(sS(R[D])?arguments[0][D]=R[D].slice():arguments[0][D]=R[D])}return arguments[0]}var Zte=function(){function Q(R){s(this,Q);for(var D in qs)if(qs.hasOwnProperty(D)){var T=qs[D],P=T._driver;this[D]=P,$c[P]||this.defineDriver(T)}this._defaultConfig=nx({},jte),this._config=nx({},this._defaultConfig,R),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return Q.prototype.config=function(D){if((typeof D=="undefined"?"undefined":o(D))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var T in D){if(T==="storeName"&&(D[T]=D[T].replace(/\W/g,"_")),T==="version"&&typeof D[T]!="number")return new Error("Database version must be a number.");this._config[T]=D[T]}return"driver"in D&&D.driver?this.setDriver(this._config.driver):!0}else return typeof D=="string"?this._config[D]:this._config},Q.prototype.defineDriver=function(D,T,P){var O=new f(function(H,V){try{var $=D._driver,ee=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!D._driver){V(ee);return}for(var ae=ix.concat("_initStorage"),de=0,De=ae.length;de<De;de++){var Xe=ae[de],tr=!Yte(mg,Xe);if((tr||D[Xe])&&typeof D[Xe]!="function"){V(ee);return}}var Tr=function Tr(){for(var eu=function eu(rie){return function(){var tie=new Error("Method "+rie+" is not implemented by the current driver"),cS=f.reject(tie);return g(cS,arguments[arguments.length-1]),cS}},ax=0,eie=mg.length;ax<eie;ax++){var ox=mg[ax];D[ox]||(D[ox]=eu(ox))}};Tr();var Dr=function Dr(eu){$c[$]&&console.info("Redefining LocalForage driver: "+$),$c[$]=D,AS[$]=eu,H()};"_support"in D?D._support&&typeof D._support=="function"?D._support().then(Dr,V):Dr(!!D._support):Dr(!0)}catch(fi){V(fi)}});return h(O,T,P),O},Q.prototype.driver=function(){return this._driver||null},Q.prototype.getDriver=function(D,T,P){var O=$c[D]?f.resolve($c[D]):f.reject(new Error("Driver not found."));return h(O,T,P),O},Q.prototype.getSerializer=function(D){var T=f.resolve(tx);return h(T,D),T},Q.prototype.ready=function(D){var T=this,P=T._driverSet.then(function(){return T._ready===null&&(T._ready=T._initDriver()),T._ready});return h(P,D,D),P},Q.prototype.setDriver=function(D,T,P){var O=this;sS(D)||(D=[D]);var H=this._getSupportedDrivers(D);function V(){O._config.driver=O.driver()}function $(de){return O._extend(de),V(),O._ready=O._initStorage(O._config),O._ready}function ee(de){return function(){var De=0;function Xe(){for(;De<de.length;){var tr=de[De];return De++,O._dbInfo=null,O._ready=null,O.getDriver(tr).then($).catch(Xe)}V();var Tr=new Error("No available storage method found.");return O._driverSet=f.reject(Tr),O._driverSet}return Xe()}}var ae=this._driverSet!==null?this._driverSet.catch(function(){return f.resolve()}):f.resolve();return this._driverSet=ae.then(function(){var de=H[0];return O._dbInfo=null,O._ready=null,O.getDriver(de).then(function(De){O._driver=De._driver,V(),O._wrapLibraryMethodsWithReady(),O._initDriver=ee(H)})}).catch(function(){V();var de=new Error("No available storage method found.");return O._driverSet=f.reject(de),O._driverSet}),h(this._driverSet,T,P),this._driverSet},Q.prototype.supports=function(D){return!!AS[D]},Q.prototype._extend=function(D){nx(this,D)},Q.prototype._getSupportedDrivers=function(D){for(var T=[],P=0,O=D.length;P<O;P++){var H=D[P];this.supports(H)&&T.push(H)}return T},Q.prototype._wrapLibraryMethodsWithReady=function(){for(var D=0,T=ix.length;D<T;D++)Xte(this,ix[D])},Q.prototype.createInstance=function(D){return new Q(D)},Q}(),$te=new Zte;n.exports=$te},{3:3}]},{},[4])(4)})});var RX=I(function(VFr,wc){var X=function X(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},Ar=-1,gr=1,be=0;X.Diff=function(r,e){return[r,e]};X.prototype.diff_main=function(r,e,t,i){typeof i=="undefined"&&(this.Diff_Timeout<=0?i=Number.MAX_VALUE:i=new Date().getTime()+this.Diff_Timeout*1e3);var n=i;if(r==null||e==null)throw new Error("Null input. (diff_main)");if(r==e)return r?[new X.Diff(be,r)]:[];typeof t=="undefined"&&(t=!0);var a=t,o=this.diff_commonPrefix(r,e),s=r.substring(0,o);r=r.substring(o),e=e.substring(o),o=this.diff_commonSuffix(r,e);var A=r.substring(r.length-o);r=r.substring(0,r.length-o),e=e.substring(0,e.length-o);var u=this.diff_compute_(r,e,a,n);return s&&u.unshift(new X.Diff(be,s)),A&&u.push(new X.Diff(be,A)),this.diff_cleanupMerge(u),u};X.prototype.diff_compute_=function(r,e,t,i){var n;if(!r)return[new X.Diff(gr,e)];if(!e)return[new X.Diff(Ar,r)];var a=r.length>e.length?r:e,o=r.length>e.length?e:r,s=a.indexOf(o);if(s!=-1)return n=[new X.Diff(gr,a.substring(0,s)),new X.Diff(be,o),new X.Diff(gr,a.substring(s+o.length))],r.length>e.length&&(n[0][0]=n[2][0]=Ar),n;if(o.length==1)return[new X.Diff(Ar,r),new X.Diff(gr,e)];var A=this.diff_halfMatch_(r,e);if(A){var u=A[0],c=A[1],l=A[2],f=A[3],g=A[4],h=this.diff_main(u,l,t,i),d=this.diff_main(c,f,t,i);return h.concat([new X.Diff(be,g)],d)}return t&&r.length>100&&e.length>100?this.diff_lineMode_(r,e,i):this.diff_bisect_(r,e,i)};X.prototype.diff_lineMode_=function(r,e,t){var i=this.diff_linesToChars_(r,e);r=i.chars1,e=i.chars2;var n=i.lineArray,a=this.diff_main(r,e,!1,t);this.diff_charsToLines_(a,n),this.diff_cleanupSemantic(a),a.push(new X.Diff(be,""));for(var o=0,s=0,A=0,u="",c="";o<a.length;){switch(a[o][0]){case gr:A++,c+=a[o][1];break;case Ar:s++,u+=a[o][1];break;case be:if(s>=1&&A>=1){a.splice(o-s-A,s+A),o=o-s-A;for(var l=this.diff_main(u,c,!1,t),f=l.length-1;f>=0;f--)a.splice(o,0,l[f]);o=o+l.length}A=0,s=0,u="",c="";break}o++}return a.pop(),a};X.prototype.diff_bisect_=function(r,e,t){for(var i=r.length,n=e.length,a=Math.ceil((i+n)/2),o=a,s=2*a,A=new Array(s),u=new Array(s),c=0;c<s;c++)A[c]=-1,u[c]=-1;A[o+1]=0,u[o+1]=0;for(var l=i-n,f=l%2!=0,g=0,h=0,d=0,p=0,m=0;m<a&&!(new Date().getTime()>t);m++){for(var x=-m+g;x<=m-h;x+=2){var v=o+x,E;x==-m||x!=m&&A[v-1]<A[v+1]?E=A[v+1]:E=A[v-1]+1;for(var S=E-x;E<i&&S<n&&r.charAt(E)==e.charAt(S);)E++,S++;if(A[v]=E,E>i)h+=2;else if(S>n)g+=2;else if(f){var B=o+l-x;if(B>=0&&B<s&&u[B]!=-1){var b=i-u[B];if(E>=b)return this.diff_bisectSplit_(r,e,E,S,t)}}}for(var C=-m+d;C<=m-p;C+=2){var B=o+C,b;C==-m||C!=m&&u[B-1]<u[B+1]?b=u[B+1]:b=u[B-1]+1;for(var y=b-C;b<i&&y<n&&r.charAt(i-b-1)==e.charAt(n-y-1);)b++,y++;if(u[B]=b,b>i)p+=2;else if(y>n)d+=2;else if(!f){var v=o+l-C;if(v>=0&&v<s&&A[v]!=-1){var E=A[v],S=o+E-v;if(b=i-b,E>=b)return this.diff_bisectSplit_(r,e,E,S,t)}}}}return[new X.Diff(Ar,r),new X.Diff(gr,e)]};X.prototype.diff_bisectSplit_=function(r,e,t,i,n){var a=r.substring(0,t),o=e.substring(0,i),s=r.substring(t),A=e.substring(i),u=this.diff_main(a,o,!1,n),c=this.diff_main(s,A,!1,n);return u.concat(c)};X.prototype.diff_linesToChars_=function(r,e){var t=[],i={};t[0]="";function n(A){for(var u="",c=0,l=-1,f=t.length;l<A.length-1;){l=A.indexOf("\n",c),l==-1&&(l=A.length-1);var g=A.substring(c,l+1);(i.hasOwnProperty?i.hasOwnProperty(g):i[g]!==void 0)?u+=String.fromCharCode(i[g]):(f==a&&(g=A.substring(c),l=A.length),u+=String.fromCharCode(f),i[g]=f,t[f++]=g),c=l+1}return u}var a=4e4,o=n(r);a=65535;var s=n(e);return{chars1:o,chars2:s,lineArray:t}};X.prototype.diff_charsToLines_=function(r,e){for(var t=0;t<r.length;t++){for(var i=r[t][1],n=[],a=0;a<i.length;a++)n[a]=e[i.charCodeAt(a)];r[t][1]=n.join("")}};X.prototype.diff_commonPrefix=function(r,e){if(!r||!e||r.charAt(0)!=e.charAt(0))return 0;for(var t=0,i=Math.min(r.length,e.length),n=i,a=0;t<n;)r.substring(a,n)==e.substring(a,n)?(t=n,a=t):i=n,n=Math.floor((i-t)/2+t);return n};X.prototype.diff_commonSuffix=function(r,e){if(!r||!e||r.charAt(r.length-1)!=e.charAt(e.length-1))return 0;for(var t=0,i=Math.min(r.length,e.length),n=i,a=0;t<n;)r.substring(r.length-n,r.length-a)==e.substring(e.length-n,e.length-a)?(t=n,a=t):i=n,n=Math.floor((i-t)/2+t);return n};X.prototype.diff_commonOverlap_=function(r,e){var t=r.length,i=e.length;if(t==0||i==0)return 0;t>i?r=r.substring(t-i):t<i&&(e=e.substring(0,t));var n=Math.min(t,i);if(r==e)return n;for(var a=0,o=1;;){var s=r.substring(n-o),A=e.indexOf(s);if(A==-1)return a;o+=A,(A==0||r.substring(n-o)==e.substring(0,o))&&(a=o,o++)}};X.prototype.diff_halfMatch_=function(r,e){if(this.Diff_Timeout<=0)return null;var t=r.length>e.length?r:e,i=r.length>e.length?e:r;if(t.length<4||i.length*2<t.length)return null;var n=this;function a(h,d,p){for(var m=h.substring(p,p+Math.floor(h.length/4)),x=-1,v="",E,S,B,b;(x=d.indexOf(m,x+1))!=-1;){var C=n.diff_commonPrefix(h.substring(p),d.substring(x)),y=n.diff_commonSuffix(h.substring(0,p),d.substring(0,x));v.length<y+C&&(v=d.substring(x-y,x)+d.substring(x,x+C),E=h.substring(0,p-y),S=h.substring(p+C),B=d.substring(0,x-y),b=d.substring(x+C))}return v.length*2>=h.length?[E,S,B,b,v]:null}var o=a(t,i,Math.ceil(t.length/4)),s=a(t,i,Math.ceil(t.length/2)),A;if(!o&&!s)return null;s?o?A=o[4].length>s[4].length?o:s:A=s:A=o;var u,c,l,f;r.length>e.length?(u=A[0],c=A[1],l=A[2],f=A[3]):(l=A[0],f=A[1],u=A[2],c=A[3]);var g=A[4];return[u,c,l,f,g]};X.prototype.diff_cleanupSemantic=function(r){for(var e=!1,t=[],i=0,n=null,a=0,o=0,s=0,A=0,u=0;a<r.length;)r[a][0]==be?(t[i++]=a,o=A,s=u,A=0,u=0,n=r[a][1]):(r[a][0]==gr?A+=r[a][1].length:u+=r[a][1].length,n&&n.length<=Math.max(o,s)&&n.length<=Math.max(A,u)&&(r.splice(t[i-1],0,new X.Diff(Ar,n)),r[t[i-1]+1][0]=gr,i--,i--,a=i>0?t[i-1]:-1,o=0,s=0,A=0,u=0,n=null,e=!0)),a++;for(e&&this.diff_cleanupMerge(r),this.diff_cleanupSemanticLossless(r),a=1;a<r.length;){if(r[a-1][0]==Ar&&r[a][0]==gr){var c=r[a-1][1],l=r[a][1],f=this.diff_commonOverlap_(c,l),g=this.diff_commonOverlap_(l,c);f>=g?(f>=c.length/2||f>=l.length/2)&&(r.splice(a,0,new X.Diff(be,l.substring(0,f))),r[a-1][1]=c.substring(0,c.length-f),r[a+1][1]=l.substring(f),a++):(g>=c.length/2||g>=l.length/2)&&(r.splice(a,0,new X.Diff(be,c.substring(0,g))),r[a-1][0]=gr,r[a-1][1]=l.substring(0,l.length-g),r[a+1][0]=Ar,r[a+1][1]=c.substring(g),a++),a++}a++}};X.prototype.diff_cleanupSemanticLossless=function(r){function e(g,h){if(!g||!h)return 6;var d=g.charAt(g.length-1),p=h.charAt(0),m=d.match(X.nonAlphaNumericRegex_),x=p.match(X.nonAlphaNumericRegex_),v=m&&d.match(X.whitespaceRegex_),E=x&&p.match(X.whitespaceRegex_),S=v&&d.match(X.linebreakRegex_),B=E&&p.match(X.linebreakRegex_),b=S&&g.match(X.blanklineEndRegex_),C=B&&h.match(X.blanklineStartRegex_);return b||C?5:S||B?4:m&&!v&&E?3:v||E?2:m||x?1:0}for(var t=1;t<r.length-1;){if(r[t-1][0]==be&&r[t+1][0]==be){var i=r[t-1][1],n=r[t][1],a=r[t+1][1],o=this.diff_commonSuffix(i,n);if(o){var s=n.substring(n.length-o);i=i.substring(0,i.length-o),n=s+n.substring(0,n.length-o),a=s+a}for(var A=i,u=n,c=a,l=e(i,n)+e(n,a);n.charAt(0)===a.charAt(0);){i+=n.charAt(0),n=n.substring(1)+a.charAt(0),a=a.substring(1);var f=e(i,n)+e(n,a);f>=l&&(l=f,A=i,u=n,c=a)}r[t-1][1]!=A&&(A?r[t-1][1]=A:(r.splice(t-1,1),t--),r[t][1]=u,c?r[t+1][1]=c:(r.splice(t+1,1),t--))}t++}};X.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;X.whitespaceRegex_=/\s/;X.linebreakRegex_=/[\r\n]/;X.blanklineEndRegex_=/\n\r?\n$/;X.blanklineStartRegex_=/^\r?\n\r?\n/;X.prototype.diff_cleanupEfficiency=function(r){for(var e=!1,t=[],i=0,n=null,a=0,o=!1,s=!1,A=!1,u=!1;a<r.length;)r[a][0]==be?(r[a][1].length<this.Diff_EditCost&&(A||u)?(t[i++]=a,o=A,s=u,n=r[a][1]):(i=0,n=null),A=u=!1):(r[a][0]==Ar?u=!0:A=!0,n&&(o&&s&&A&&u||n.length<this.Diff_EditCost/2&&o+s+A+u==3)&&(r.splice(t[i-1],0,new X.Diff(Ar,n)),r[t[i-1]+1][0]=gr,i--,n=null,o&&s?(A=u=!0,i=0):(i--,a=i>0?t[i-1]:-1,A=u=!1),e=!0)),a++;e&&this.diff_cleanupMerge(r)};X.prototype.diff_cleanupMerge=function(r){r.push(new X.Diff(be,""));for(var e=0,t=0,i=0,n="",a="",o;e<r.length;)switch(r[e][0]){case gr:i++,a+=r[e][1],e++;break;case Ar:t++,n+=r[e][1],e++;break;case be:t+i>1?(t!==0&&i!==0&&(o=this.diff_commonPrefix(a,n),o!==0&&(e-t-i>0&&r[e-t-i-1][0]==be?r[e-t-i-1][1]+=a.substring(0,o):(r.splice(0,0,new X.Diff(be,a.substring(0,o))),e++),a=a.substring(o),n=n.substring(o)),o=this.diff_commonSuffix(a,n),o!==0&&(r[e][1]=a.substring(a.length-o)+r[e][1],a=a.substring(0,a.length-o),n=n.substring(0,n.length-o))),e-=t+i,r.splice(e,t+i),n.length&&(r.splice(e,0,new X.Diff(Ar,n)),e++),a.length&&(r.splice(e,0,new X.Diff(gr,a)),e++),e++):e!==0&&r[e-1][0]==be?(r[e-1][1]+=r[e][1],r.splice(e,1)):e++,i=0,t=0,n="",a="";break}r[r.length-1][1]===""&&r.pop();var s=!1;for(e=1;e<r.length-1;)r[e-1][0]==be&&r[e+1][0]==be&&(r[e][1].substring(r[e][1].length-r[e-1][1].length)==r[e-1][1]?(r[e][1]=r[e-1][1]+r[e][1].substring(0,r[e][1].length-r[e-1][1].length),r[e+1][1]=r[e-1][1]+r[e+1][1],r.splice(e-1,1),s=!0):r[e][1].substring(0,r[e+1][1].length)==r[e+1][1]&&(r[e-1][1]+=r[e+1][1],r[e][1]=r[e][1].substring(r[e+1][1].length)+r[e+1][1],r.splice(e+1,1),s=!0)),e++;s&&this.diff_cleanupMerge(r)};X.prototype.diff_xIndex=function(r,e){var t=0,i=0,n=0,a=0,o;for(o=0;o<r.length&&(r[o][0]!==gr&&(t+=r[o][1].length),r[o][0]!==Ar&&(i+=r[o][1].length),!(t>e));o++)n=t,a=i;return r.length!=o&&r[o][0]===Ar?a:a+(e-n)};X.prototype.diff_prettyHtml=function(r){for(var e=[],t=/&/g,i=/</g,n=/>/g,a=/\n/g,o=0;o<r.length;o++){var s=r[o][0],A=r[o][1],u=A.replace(t,"&amp;").replace(i,"&lt;").replace(n,"&gt;").replace(a,"&para;<br>");switch(s){case gr:e[o]='<ins style="background:#e6ffe6;">'+u+"</ins>";break;case Ar:e[o]='<del style="background:#ffe6e6;">'+u+"</del>";break;case be:e[o]="<span>"+u+"</span>";break}}return e.join("")};X.prototype.diff_text1=function(r){for(var e=[],t=0;t<r.length;t++)r[t][0]!==gr&&(e[t]=r[t][1]);return e.join("")};X.prototype.diff_text2=function(r){for(var e=[],t=0;t<r.length;t++)r[t][0]!==Ar&&(e[t]=r[t][1]);return e.join("")};X.prototype.diff_levenshtein=function(r){for(var e=0,t=0,i=0,n=0;n<r.length;n++){var a=r[n][0],o=r[n][1];switch(a){case gr:t+=o.length;break;case Ar:i+=o.length;break;case be:e+=Math.max(t,i),t=0,i=0;break}}return e+=Math.max(t,i),e};X.prototype.diff_toDelta=function(r){for(var e=[],t=0;t<r.length;t++)switch(r[t][0]){case gr:e[t]="+"+encodeURI(r[t][1]);break;case Ar:e[t]="-"+r[t][1].length;break;case be:e[t]="="+r[t][1].length;break}return e.join(" ").replace(/%20/g," ")};X.prototype.diff_fromDelta=function(r,e){for(var t=[],i=0,n=0,a=e.split(/\t/g),o=0;o<a.length;o++){var s=a[o].substring(1);switch(a[o].charAt(0)){case"+":try{t[i++]=new X.Diff(gr,decodeURI(s))}catch(c){throw new Error("Illegal escape in diff_fromDelta: "+s)}break;case"-":case"=":var A=parseInt(s,10);if(isNaN(A)||A<0)throw new Error("Invalid number in diff_fromDelta: "+s);var u=r.substring(n,n+=A);a[o].charAt(0)=="="?t[i++]=new X.Diff(be,u):t[i++]=new X.Diff(Ar,u);break;default:if(a[o])throw new Error("Invalid diff operation in diff_fromDelta: "+a[o])}}if(n!=r.length)throw new Error("Delta length ("+n+") does not equal source text length ("+r.length+").");return t};X.prototype.match_main=function(r,e,t){if(r==null||e==null||t==null)throw new Error("Null input. (match_main)");return t=Math.max(0,Math.min(t,r.length)),r==e?0:r.length?r.substring(t,t+e.length)==e?t:this.match_bitap_(r,e,t):-1};X.prototype.match_bitap_=function(r,e,t){if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(e),n=this;function a(E,S){var B=E/e.length,b=Math.abs(t-S);return n.Match_Distance?B+b/n.Match_Distance:b?1:B}var o=this.Match_Threshold,s=r.indexOf(e,t);s!=-1&&(o=Math.min(a(0,s),o),s=r.lastIndexOf(e,t+e.length),s!=-1&&(o=Math.min(a(0,s),o)));var A=1<<e.length-1;s=-1;for(var u,c,l=e.length+r.length,f,g=0;g<e.length;g++){for(u=0,c=l;u<c;)a(g,t+c)<=o?u=c:l=c,c=Math.floor((l-u)/2+u);l=c;var h=Math.max(1,t-c+1),d=Math.min(t+c,r.length)+e.length,p=Array(d+2);p[d+1]=(1<<g)-1;for(var m=d;m>=h;m--){var x=i[r.charAt(m-1)];if(g===0?p[m]=(p[m+1]<<1|1)&x:p[m]=(p[m+1]<<1|1)&x|((f[m+1]|f[m])<<1|1)|f[m+1],p[m]&A){var v=a(g,m-1);if(v<=o)if(o=v,s=m-1,s>t)h=Math.max(1,2*t-s);else break}}if(a(g+1,t)>o)break;f=p}return s};X.prototype.match_alphabet_=function(r){for(var e={},t=0;t<r.length;t++)e[r.charAt(t)]=0;for(var t=0;t<r.length;t++)e[r.charAt(t)]|=1<<r.length-t-1;return e};X.prototype.patch_addContext_=function(r,e){if(e.length!=0){if(r.start2===null)throw Error("patch not initialized");for(var t=e.substring(r.start2,r.start2+r.length1),i=0;e.indexOf(t)!=e.lastIndexOf(t)&&t.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)i+=this.Patch_Margin,t=e.substring(r.start2-i,r.start2+r.length1+i);i+=this.Patch_Margin;var n=e.substring(r.start2-i,r.start2);n&&r.diffs.unshift(new X.Diff(be,n));var a=e.substring(r.start2+r.length1,r.start2+r.length1+i);a&&r.diffs.push(new X.Diff(be,a)),r.start1-=n.length,r.start2-=n.length,r.length1+=n.length+a.length,r.length2+=n.length+a.length}};X.prototype.patch_make=function(r,e,t){var i,n;if(typeof r=="string"&&typeof e=="string"&&typeof t=="undefined")i=r,n=this.diff_main(i,e,!0),n.length>2&&(this.diff_cleanupSemantic(n),this.diff_cleanupEfficiency(n));else if(r&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"&&typeof e=="undefined"&&typeof t=="undefined")n=r,i=this.diff_text1(n);else if(typeof r=="string"&&e&&(typeof e==="undefined"?"undefined":_type_of(e))=="object"&&typeof t=="undefined")i=r,n=e;else if(typeof r=="string"&&typeof e=="string"&&t&&(typeof t==="undefined"?"undefined":_type_of(t))=="object")i=r,n=t;else throw new Error("Unknown call format to patch_make.");if(n.length===0)return[];for(var a=[],o=new X.patch_obj,s=0,A=0,u=0,c=i,l=i,f=0;f<n.length;f++){var g=n[f][0],h=n[f][1];switch(!s&&g!==be&&(o.start1=A,o.start2=u),g){case gr:o.diffs[s++]=n[f],o.length2+=h.length,l=l.substring(0,u)+h+l.substring(u);break;case Ar:o.length1+=h.length,o.diffs[s++]=n[f],l=l.substring(0,u)+l.substring(u+h.length);break;case be:h.length<=2*this.Patch_Margin&&s&&n.length!=f+1?(o.diffs[s++]=n[f],o.length1+=h.length,o.length2+=h.length):h.length>=2*this.Patch_Margin&&s&&(this.patch_addContext_(o,c),a.push(o),o=new X.patch_obj,s=0,c=l,A=u);break}g!==gr&&(A+=h.length),g!==Ar&&(u+=h.length)}return s&&(this.patch_addContext_(o,c),a.push(o)),a};X.prototype.patch_deepCopy=function(r){for(var e=[],t=0;t<r.length;t++){var i=r[t],n=new X.patch_obj;n.diffs=[];for(var a=0;a<i.diffs.length;a++)n.diffs[a]=new X.Diff(i.diffs[a][0],i.diffs[a][1]);n.start1=i.start1,n.start2=i.start2,n.length1=i.length1,n.length2=i.length2,e[t]=n}return e};X.prototype.patch_apply=function(r,e){if(r.length==0)return[e,[]];r=this.patch_deepCopy(r);var t=this.patch_addPadding(r);e=t+e+t,this.patch_splitMax(r);for(var i=0,n=[],a=0;a<r.length;a++){var o=r[a].start2+i,s=this.diff_text1(r[a].diffs),A,u=-1;if(s.length>this.Match_MaxBits?(A=this.match_main(e,s.substring(0,this.Match_MaxBits),o),A!=-1&&(u=this.match_main(e,s.substring(s.length-this.Match_MaxBits),o+s.length-this.Match_MaxBits),(u==-1||A>=u)&&(A=-1))):A=this.match_main(e,s,o),A==-1)n[a]=!1,i-=r[a].length2-r[a].length1;else{n[a]=!0,i=A-o;var c;if(u==-1?c=e.substring(A,A+s.length):c=e.substring(A,u+this.Match_MaxBits),s==c)e=e.substring(0,A)+this.diff_text2(r[a].diffs)+e.substring(A+s.length);else{var l=this.diff_main(s,c,!1);if(s.length>this.Match_MaxBits&&this.diff_levenshtein(l)/s.length>this.Patch_DeleteThreshold)n[a]=!1;else{this.diff_cleanupSemanticLossless(l);for(var f=0,g,h=0;h<r[a].diffs.length;h++){var d=r[a].diffs[h];d[0]!==be&&(g=this.diff_xIndex(l,f)),d[0]===gr?e=e.substring(0,A+g)+d[1]+e.substring(A+g):d[0]===Ar&&(e=e.substring(0,A+g)+e.substring(A+this.diff_xIndex(l,f+d[1].length))),d[0]!==Ar&&(f+=d[1].length)}}}}}return e=e.substring(t.length,e.length-t.length),[e,n]};X.prototype.patch_addPadding=function(r){for(var e=this.Patch_Margin,t="",i=1;i<=e;i++)t+=String.fromCharCode(i);for(var i=0;i<r.length;i++)r[i].start1+=e,r[i].start2+=e;var n=r[0],a=n.diffs;if(a.length==0||a[0][0]!=be)a.unshift(new X.Diff(be,t)),n.start1-=e,n.start2-=e,n.length1+=e,n.length2+=e;else if(e>a[0][1].length){var o=e-a[0][1].length;a[0][1]=t.substring(a[0][1].length)+a[0][1],n.start1-=o,n.start2-=o,n.length1+=o,n.length2+=o}if(n=r[r.length-1],a=n.diffs,a.length==0||a[a.length-1][0]!=be)a.push(new X.Diff(be,t)),n.length1+=e,n.length2+=e;else if(e>a[a.length-1][1].length){var o=e-a[a.length-1][1].length;a[a.length-1][1]+=t.substring(0,o),n.length1+=o,n.length2+=o}return t};X.prototype.patch_splitMax=function(r){for(var e=this.Match_MaxBits,t=0;t<r.length;t++)if(!(r[t].length1<=e)){var i=r[t];r.splice(t--,1);for(var n=i.start1,a=i.start2,o="";i.diffs.length!==0;){var s=new X.patch_obj,A=!0;for(s.start1=n-o.length,s.start2=a-o.length,o!==""&&(s.length1=s.length2=o.length,s.diffs.push(new X.Diff(be,o)));i.diffs.length!==0&&s.length1<e-this.Patch_Margin;){var u=i.diffs[0][0],c=i.diffs[0][1];u===gr?(s.length2+=c.length,a+=c.length,s.diffs.push(i.diffs.shift()),A=!1):u===Ar&&s.diffs.length==1&&s.diffs[0][0]==be&&c.length>2*e?(s.length1+=c.length,n+=c.length,A=!1,s.diffs.push(new X.Diff(u,c)),i.diffs.shift()):(c=c.substring(0,e-s.length1-this.Patch_Margin),s.length1+=c.length,n+=c.length,u===be?(s.length2+=c.length,a+=c.length):A=!1,s.diffs.push(new X.Diff(u,c)),c==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(c.length))}o=this.diff_text2(s.diffs),o=o.substring(o.length-this.Patch_Margin);var l=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);l!==""&&(s.length1+=l.length,s.length2+=l.length,s.diffs.length!==0&&s.diffs[s.diffs.length-1][0]===be?s.diffs[s.diffs.length-1][1]+=l:s.diffs.push(new X.Diff(be,l))),A||r.splice(++t,0,s)}}};X.prototype.patch_toText=function(r){for(var e=[],t=0;t<r.length;t++)e[t]=r[t];return e.join("")};X.prototype.patch_fromText=function(r){var e=[];if(!r)return e;for(var t=r.split("\n"),i=0,n=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<t.length;){var a=t[i].match(n);if(!a)throw new Error("Invalid patch string: "+t[i]);var o=new X.patch_obj;for(e.push(o),o.start1=parseInt(a[1],10),a[2]===""?(o.start1--,o.length1=1):a[2]=="0"?o.length1=0:(o.start1--,o.length1=parseInt(a[2],10)),o.start2=parseInt(a[3],10),a[4]===""?(o.start2--,o.length2=1):a[4]=="0"?o.length2=0:(o.start2--,o.length2=parseInt(a[4],10)),i++;i<t.length;){var s=t[i].charAt(0);try{var A=decodeURI(t[i].substring(1))}catch(u){throw new Error("Illegal escape in patch_fromText: "+A)}if(s=="-")o.diffs.push(new X.Diff(Ar,A));else if(s=="+")o.diffs.push(new X.Diff(gr,A));else if(s==" ")o.diffs.push(new X.Diff(be,A));else{if(s=="@")break;if(s!=="")throw new Error('Invalid patch mode "'+s+'" in: '+A)}i++}}return e};X.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0};X.patch_obj.prototype.toString=function(){var r,e;this.length1===0?r=this.start1+",0":this.length1==1?r=this.start1+1:r=this.start1+1+","+this.length1,this.length2===0?e=this.start2+",0":this.length2==1?e=this.start2+1:e=this.start2+1+","+this.length2;for(var t=["@@ -"+r+" +"+e+" @@\n"],i,n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case gr:i="+";break;case Ar:i="-";break;case be:i=" ";break}t[n+1]=i+encodeURI(this.diffs[n][1])+"\n"}return t.join("").replace(/%20/g," ")};wc.exports=X;wc.exports.diff_match_patch=X;wc.exports.DIFF_DELETE=Ar;wc.exports.DIFF_INSERT=gr;wc.exports.DIFF_EQUAL=be});var d0=I(function(na){"use strict";var _Z=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",D$e=_Z+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",qZ="["+_Z+"]["+D$e+"]*",F$e=new RegExp("^"+qZ+"$"),k$e=function k$e(r,e){var t=[],i=e.exec(r);for(;i;){var n=[];n.startIndex=e.lastIndex-i[0].length;var a=i.length;for(var o=0;o<a;o++)n.push(i[o]);t.push(n),i=e.exec(r)}return t},R$e=function R$e(r){var e=F$e.exec(r);return!(e===null||typeof e=="undefined")};na.isExist=function(r){return typeof r!="undefined"};na.isEmptyObject=function(r){return Object.keys(r).length===0};na.merge=function(r,e,t){if(e){var i=Object.keys(e),n=i.length;for(var a=0;a<n;a++)t==="strict"?r[i[a]]=[e[i[a]]]:r[i[a]]=e[i[a]]}};na.getValue=function(r){return na.isExist(r)?r:""};na.isName=R$e;na.getAllMatches=k$e;na.nameRegexp=qZ});var $w=I(function(NZ){"use strict";var DZ=function DZ(r){return r===" "||r===" "||r==="\n"||r==="\r"};var FZ=function FZ(r,e){var t=e;for(;e<r.length;e++)if(r[e]=="?"||r[e]==" "){var i=r.substr(t,e-t);if(e>5&&i==="xml")return Rr("InvalidXml","XML declaration allowed only at the start of the document.",Ot(r,e));if(r[e]=="?"&&r[e+1]==">"){e++;break}else continue}return e};var kZ=function kZ(r,e){if(r.length>e+5&&r[e+1]==="-"&&r[e+2]==="-"){for(e+=3;e<r.length;e++)if(r[e]==="-"&&r[e+1]==="-"&&r[e+2]===">"){e+=2;break}}else if(r.length>e+8&&r[e+1]==="D"&&r[e+2]==="O"&&r[e+3]==="C"&&r[e+4]==="T"&&r[e+5]==="Y"&&r[e+6]==="P"&&r[e+7]==="E"){var t=1;for(e+=8;e<r.length;e++)if(r[e]==="<")t++;else if(r[e]===">"&&(t--,t===0))break}else if(r.length>e+9&&r[e+1]==="["&&r[e+2]==="C"&&r[e+3]==="D"&&r[e+4]==="A"&&r[e+5]==="T"&&r[e+6]==="A"&&r[e+7]==="["){for(e+=8;e<r.length;e++)if(r[e]==="]"&&r[e+1]==="]"&&r[e+2]===">"){e+=2;break}}return e};var P$e=function P$e(r,e){var t="",i="",n=!1;for(;e<r.length;e++){if(r[e]===O$e||r[e]===T$e)i===""?i=r[e]:i!==r[e]||(i="");else if(r[e]===">"&&i===""){n=!0;break}t+=r[e]}return i!==""?!1:{value:t,index:e,tagClosed:n}};var RZ=function RZ(r,e){var t=Zw.getAllMatches(r,M$e),i={};for(var n=0;n<t.length;n++){if(t[n][1].length===0)return Rr("InvalidAttr","Attribute '"+t[n][2]+"' has no space in starting.",Of(t[n]));if(t[n][3]!==void 0&&t[n][4]===void 0)return Rr("InvalidAttr","Attribute '"+t[n][2]+"' is without value.",Of(t[n]));if(t[n][3]===void 0&&!e.allowBooleanAttributes)return Rr("InvalidAttr","boolean attribute '"+t[n][2]+"' is not allowed.",Of(t[n]));var a=t[n][2];if(!L$e(a))return Rr("InvalidAttr","Attribute '"+a+"' is an invalid name.",Of(t[n]));if(!i.hasOwnProperty(a))i[a]=1;else return Rr("InvalidAttr","Attribute '"+a+"' is repeated.",Of(t[n]))}return!0};var U$e=function U$e(r,e){var t=/\d/;for(r[e]==="x"&&(e++,t=/[\da-fA-F]/);e<r.length;e++){if(r[e]===";")return e;if(!r[e].match(t))break}return-1};var G$e=function G$e(r,e){if(e++,r[e]===";")return-1;if(r[e]==="#")return e++,U$e(r,e);var t=0;for(;e<r.length;e++,t++)if(!(r[e].match(/\w/)&&t<20)){if(r[e]===";")break;return-1}return e};var Rr=function Rr(r,e,t){return{err:{code:r,msg:e,line:t.line||t,col:t.col}}};var L$e=function L$e(r){return Zw.isName(r)};var H$e=function H$e(r){return Zw.isName(r)};var Ot=function Ot(r,e){var t=r.substring(0,e).split(/\r?\n/);return{line:t.length,col:t[t.length-1].length+1}};var Of=function Of(r){return r.startIndex+r[1].length};var Zw=d0(),N$e={allowBooleanAttributes:!1,unpairedTags:[]};NZ.validate=function(r,e){e=Object.assign({},N$e,e);var t=[],i=!1,n=!1;r[0]==="\uFEFF"&&(r=r.substr(1));for(var a=0;a<r.length;a++)if(r[a]==="<"&&r[a+1]==="?"){if(a+=2,a=FZ(r,a),a.err)return a}else if(r[a]==="<"){var o=a;if(a++,r[a]==="!"){a=kZ(r,a);continue}else{var s=!1;r[a]==="/"&&(s=!0,a++);var A="";for(;a<r.length&&r[a]!==">"&&r[a]!==" "&&r[a]!==" "&&r[a]!=="\n"&&r[a]!=="\r";a++)A+=r[a];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),a--),!H$e(A)){var l=void 0;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Rr("InvalidTag",l,Ot(r,a))}var u=P$e(r,a);if(u===!1)return Rr("InvalidAttr","Attributes for '"+A+"' have open quote.",Ot(r,a));var c=u.value;if(a=u.index,c[c.length-1]==="/"){var l2=a-c.length;c=c.substring(0,c.length-1);var f=RZ(c,e);if(f===!0)i=!0;else return Rr(f.err.code,f.err.msg,Ot(r,l2+f.err.line))}else if(s)if(u.tagClosed){if(c.trim().length>0)return Rr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Ot(r,o));if(t.length===0)return Rr("InvalidTag","Closing tag '"+A+"' has not been opened.",Ot(r,o));{var l3=t.pop();if(A!==l3.tagName){var f2=Ot(r,l3.tagStartPos);return Rr("InvalidTag","Expected closing tag '"+l3.tagName+"' (opened in line "+f2.line+", col "+f2.col+") instead of closing tag '"+A+"'.",Ot(r,o))}t.length==0&&(n=!0)}}else return Rr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Ot(r,a));else{var l5=RZ(c,e);if(l5!==!0)return Rr(l5.err.code,l5.err.msg,Ot(r,a-c.length+l5.err.line));if(n===!0)return Rr("InvalidXml","Multiple possible root nodes found.",Ot(r,a));e.unpairedTags.indexOf(A)!==-1||t.push({tagName:A,tagStartPos:o}),i=!0}for(a++;a<r.length;a++)if(r[a]==="<")if(r[a+1]==="!"){a++,a=kZ(r,a);continue}else if(r[a+1]==="?"){if(a=FZ(r,++a),a.err)return a}else break;else if(r[a]==="&"){var l6=G$e(r,a);if(l6==-1)return Rr("InvalidChar","char '&' is not expected.",Ot(r,a));a=l6}else if(n===!0&&!DZ(r[a]))return Rr("InvalidXml","Extra text at the end",Ot(r,a));r[a]==="<"&&a--}}else{if(DZ(r[a]))continue;return Rr("InvalidChar","char '"+r[a]+"' is not expected.",Ot(r,a))}if(i){if(t.length==1)return Rr("InvalidTag","Unclosed tag '"+t[0].tagName+"'.",Ot(r,t[0].tagStartPos));if(t.length>0)return Rr("InvalidXml","Invalid '"+JSON.stringify(t.map(function(a){return a.tagName}),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Rr("InvalidXml","Start tag expected.",1);return!0};var O$e='"',T$e="'";var M$e=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g")});var TZ=I(function(e1){var OZ={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function tagValueProcessor(r,e){return e},attributeValueProcessor:function attributeValueProcessor(r,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function updateTag(r,e,t){return r}},W$e=function W$e(r){return Object.assign({},OZ,r)};e1.buildOptions=W$e;e1.defaultOptions=OZ});var MZ=I(function(LRr,PZ){"use strict";var r1=/*#__PURE__*/function(){function r1(e){_class_call_check(this,r1);this.tagname=e,this.child=[],this[":@"]={}}_create_class(r1,[{key:"add",value:function add(e,t){e==="__proto__"&&(e="#__proto__"),this.child.push(_define_property({},e,t))}},{key:"addChild",value:function addChild(e){var _obj;e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push((_obj={},_define_property(_obj,e.tagname,e.child),_define_property(_obj,":@",e[":@"]),_obj)):this.child.push(_define_property({},e.tagname,e.child))}}]);return r1}();PZ.exports=r1});var GZ=I(function(HRr,UZ){var K$e=function K$e(r,e){var t={};if(r[e+3]==="O"&&r[e+4]==="C"&&r[e+5]==="T"&&r[e+6]==="Y"&&r[e+7]==="P"&&r[e+8]==="E"){e=e+9;var i=1,n=!1,a=!1,o="";for(;e<r.length;e++)if(r[e]==="<"&&!a){if(n&&z$e(r,e)){e+=7;var s=void 0,A=void 0;var ref;ref=_sliced_to_array(V$e(r,e+1),3),s=ref[0],A=ref[1],e=ref[2],ref,A.indexOf("&")===-1&&(t[$$e(s)]={regx:RegExp("&".concat(s,";"),"g"),val:A})}else if(n&&j$e(r,e))e+=8;else if(n&&X$e(r,e))e+=8;else if(n&&Z$e(r,e))e+=9;else if(Y$e)a=!0;else throw new Error("Invalid DOCTYPE");i++,o=""}else if(r[e]===">"){if(a?r[e-1]==="-"&&r[e-2]==="-"&&(a=!1,i--):i--,i===0)break}else r[e]==="["?n=!0:o+=r[e];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:e}};var V$e=function V$e(r,e){var t="";for(;e<r.length&&r[e]!=="'"&&r[e]!=='"';e++)t+=r[e];if(t=t.trim(),t.indexOf(" ")!==-1)throw new Error("External entites are not supported");var i=r[e++],n="";for(;e<r.length&&r[e]!==i;e++)n+=r[e];return[t,n,e]};var Y$e=function Y$e(r,e){return r[e+1]==="!"&&r[e+2]==="-"&&r[e+3]==="-"};var z$e=function z$e(r,e){return r[e+1]==="!"&&r[e+2]==="E"&&r[e+3]==="N"&&r[e+4]==="T"&&r[e+5]==="I"&&r[e+6]==="T"&&r[e+7]==="Y"};var j$e=function j$e(r,e){return r[e+1]==="!"&&r[e+2]==="E"&&r[e+3]==="L"&&r[e+4]==="E"&&r[e+5]==="M"&&r[e+6]==="E"&&r[e+7]==="N"&&r[e+8]==="T"};var X$e=function X$e(r,e){return r[e+1]==="!"&&r[e+2]==="A"&&r[e+3]==="T"&&r[e+4]==="T"&&r[e+5]==="L"&&r[e+6]==="I"&&r[e+7]==="S"&&r[e+8]==="T"};var Z$e=function Z$e(r,e){return r[e+1]==="!"&&r[e+2]==="N"&&r[e+3]==="O"&&r[e+4]==="T"&&r[e+5]==="A"&&r[e+6]==="T"&&r[e+7]==="I"&&r[e+8]==="O"&&r[e+9]==="N"};var $$e=function $$e(r){if(J$e.isName(r))return r;throw new Error("Invalid entity name ".concat(r))};var J$e=d0();UZ.exports=K$e});var HZ=I(function(WRr,LZ){var ier=function ier(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e=Object.assign({},ter,e),!r||typeof r!="string")return r;var t=r.trim();if(e.skipLike!==void 0&&e.skipLike.test(t))return r;if(r==="0")return 0;if(e.hex&&eer.test(t))return aer(t,16);if(t.search(/[eE]/)!==-1){var i=t.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(i){if(e.leadingZeros)t=(i[1]||"")+i[3];else if(!(i[2]==="0"&&i[3][0]==="."))return r;return e.eNotation?Number(t):r}else return r}else{var i1=rer.exec(t);if(i1){var n=i1[1],a=i1[2],o=ner(i1[3]);if(!e.leadingZeros&&a.length>0&&n&&t[2]!==".")return r;if(!e.leadingZeros&&a.length>0&&!n&&t[1]!==".")return r;if(e.leadingZeros&&a===r)return 0;{var s=Number(t),A=""+s;return A.search(/[eE]/)!==-1?e.eNotation?s:r:t.indexOf(".")!==-1?A==="0"&&o===""||A===o||n&&A==="-"+o?s:r:a?o===A||n+o===A?s:r:t===A||t===n+A?s:r}}else return r}};var ner=function ner(r){return r&&r.indexOf(".")!==-1&&(r=r.replace(/0+$/,""),r==="."?r="0":r[0]==="."?r="0"+r:r[r.length-1]==="."&&(r=r.substr(0,r.length-1))),r};var aer=function aer(r,e){if(parseInt)return parseInt(r,e);if(Number.parseInt)return Number.parseInt(r,e);if(window&&window.parseInt)return window.parseInt(r,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")};var eer=/^[-+]?0x[a-fA-F0-9]+$/,rer=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,ter={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};LZ.exports=ier});var t1=I(function(JRr,WZ){var oer=function oer(r){return typeof r=="function"?r:Array.isArray(r)?function(e){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=r[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;if(typeof t=="string"&&e===t||_instanceof(t,RegExp)&&t.test(e))return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}:function(){return!1}};WZ.exports=oer});var VZ=I(function(KRr,KZ){"use strict";var uer=function uer(r){var e=Object.keys(r);for(var t=0;t<e.length;t++){var i=e[t];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:r[i]}}};var ler=function ler(r,e,t,i,n,a,o){if(r!==void 0&&(this.options.trimValues&&!i&&(r=r.trim()),r.length>0)){o||(r=this.replaceEntitiesValue(r));var s=this.options.tagValueProcessor(e,r,t,n,a);return s==null?r:(typeof s==="undefined"?"undefined":_type_of(s))!=(typeof r==="undefined"?"undefined":_type_of(r))||s!==r?s:this.options.trimValues?a1(r,this.options.parseTagValue,this.options.numberParseOptions):r.trim()===r?a1(r,this.options.parseTagValue,this.options.numberParseOptions):r}};var fer=function fer(r){if(this.options.removeNSPrefix){var e=r.split(":"),t=r.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(r=t+e[1])}return r};var der=function der(r,e,t){if(this.options.ignoreAttributes!==!0&&typeof r=="string"){var i=JZ.getAllMatches(r,ger),n=i.length,a={};for(var o=0;o<n;o++){var s=this.resolveNameSpace(i[o][1]);if(this.ignoreAttributesFn(s,e))continue;var A=i[o][4],u=this.options.attributeNamePrefix+s;if(s.length)if(this.options.transformAttributeName&&(u=this.options.transformAttributeName(u)),u==="__proto__"&&(u="#__proto__"),A!==void 0){this.options.trimValues&&(A=A.trim()),A=this.replaceEntitiesValue(A);var c=this.options.attributeValueProcessor(s,A,e);c==null?a[u]=A:(typeof c==="undefined"?"undefined":_type_of(c))!=(typeof A==="undefined"?"undefined":_type_of(A))||c!==A?a[u]=c:a[u]=a1(A,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[u]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){var o1={};return o1[this.options.attributesGroupName]=a,o1}return a}};var Ier=function Ier(r,e,t){var i=this.options.updateTag(e.tagname,t,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),r.addChild(e))};var xer=function xer(r,e,t,i){return r&&(i===void 0&&(i=e.child.length===0),r=this.parseTextData(r,e.tagname,t,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,i),r!==void 0&&r!==""&&e.add(this.options.textNodeName,r),r=""),r};var mer=function mer(r,e,t){var i="*."+t;for(var n in r){var a=r[n];if(i===a||e===a)return!0}return!1};var ver=function ver(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">";var i,n="";for(var a=e;a<r.length;a++){var o=r[a];if(i)o===i&&(i="");else if(o==='"'||o==="'")i=o;else if(o===t[0])if(t[1]){if(r[a+1]===t[1])return{data:n,index:a}}else return{data:n,index:a};else o===" "&&(o=" ");n+=o}};var Bs=function Bs(r,e,t,i){var n=r.indexOf(e,t);if(n===-1)throw new Error(i);return n+e.length-1};var n1=function n1(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:">";var n=ver(r,e+1,i);if(!n)return;var a=n.data,o=n.index,s=a.search(/\s/),A=a,u=!0;s!==-1&&(A=a.substring(0,s),a=a.substring(s+1).trimStart());var c=A;if(t){var l=A.indexOf(":");l!==-1&&(A=A.substr(l+1),u=A!==n.data.substr(l+1))}return{tagName:A,tagExp:a,closeIndex:o,attrExpPresent:u,rawTagName:c}};var Cer=function Cer(r,e,t){var i=t,n=1;for(;t<r.length;t++)if(r[t]==="<")if(r[t+1]==="/"){var a=Bs(r,">",t,"".concat(e," is not closed"));if(r.substring(t+2,a).trim()===e&&(n--,n===0))return{tagContent:r.substring(i,t),i:a};t=a}else if(r[t+1]==="?")t=Bs(r,"?>",t+1,"StopNode is not closed.");else if(r.substr(t+1,3)==="!--")t=Bs(r,"-->",t+3,"StopNode is not closed.");else if(r.substr(t+1,2)==="![")t=Bs(r,"]]>",t,"StopNode is not closed.")-2;else{var a1=n1(r,t,">");a1&&((a1&&a1.tagName)===e&&a1.tagExp[a1.tagExp.length-1]!=="/"&&n++,t=a1.closeIndex)}};var a1=function a1(r,e,t){if(e&&typeof r=="string"){var i=r.trim();return i==="true"?!0:i==="false"?!1:Aer(r,t)}else return JZ.isExist(r)?r:""};var JZ=d0(),Tf=MZ(),ser=GZ(),Aer=HZ(),cer=t1(),i1=function i1(e){_class_call_check(this,i1);this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:function(t,i){return String.fromCharCode(Number.parseInt(i,10))}},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:function(t,i){return String.fromCharCode(Number.parseInt(i,16))}}},this.addExternalEntities=uer,this.parseXml=her,this.parseTextData=ler,this.resolveNameSpace=fer,this.buildAttributesMap=der,this.isItStopNode=mer,this.replaceEntitiesValue=per,this.readStopNodeData=Cer,this.saveTextToParentTag=xer,this.addChild=Ier,this.ignoreAttributesFn=cer(this.options.ignoreAttributes)};var ger=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");var her=function her(r){r=r.replace(/\r\n?/g,"\n");var e=new Tf("!xml"),t=e,i="",n="";for(var a=0;a<r.length;a++)if(r[a]==="<")if(r[a+1]==="/"){var s=Bs(r,">",a,"Closing Tag is not closed."),A=r.substring(a+2,s).trim();if(this.options.removeNSPrefix){var l=A.indexOf(":");l!==-1&&(A=A.substr(l+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),t&&(i=this.saveTextToParentTag(i,t,n));var u=n.substring(n.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error("Unpaired tag can not be used as closing tag: </".concat(A,">"));var c=0;u&&this.options.unpairedTags.indexOf(u)!==-1?(c=n.lastIndexOf(".",n.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=n.lastIndexOf("."),n=n.substring(0,c),t=this.tagsNodeStack.pop(),i="",a=s}else if(r[a+1]==="?"){var s2=n1(r,a,!1,"?>");if(!s2)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,t,n),!(this.options.ignoreDeclaration&&s2.tagName==="?xml"||this.options.ignorePiTags)){var A2=new Tf(s2.tagName);A2.add(this.options.textNodeName,""),s2.tagName!==s2.tagExp&&s2.attrExpPresent&&(A2[":@"]=this.buildAttributesMap(s2.tagExp,n,s2.tagName)),this.addChild(t,A2,n)}a=s2.closeIndex+1}else if(r.substr(a+1,3)==="!--"){var s3=Bs(r,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){var A3=r.substring(a+4,s3-2);i=this.saveTextToParentTag(i,t,n),t.add(this.options.commentPropName,[_define_property({},this.options.textNodeName,A3)])}a=s3}else if(r.substr(a+1,2)==="!D"){var s4=ser(r,a);this.docTypeEntities=s4.entities,a=s4.i}else if(r.substr(a+1,2)==="!["){var s6=Bs(r,"]]>",a,"CDATA is not closed.")-2,A4=r.substring(a+9,s6);i=this.saveTextToParentTag(i,t,n);var u2=this.parseTextData(A4,t.tagname,n,!0,!1,!0,!0);u2==null&&(u2=""),this.options.cdataPropName?t.add(this.options.cdataPropName,[_define_property({},this.options.textNodeName,A4)]):t.add(this.options.textNodeName,u2),a=s6+2}else{var s7=n1(r,a,this.options.removeNSPrefix),A6=s7.tagName,u3=s7.rawTagName,c2=s7.tagExp,l2=s7.attrExpPresent,f=s7.closeIndex;this.options.transformTagName&&(A6=this.options.transformTagName(A6)),t&&i&&t.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,t,n,!1));var g=t;if(g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(t=this.tagsNodeStack.pop(),n=n.substring(0,n.lastIndexOf("."))),A6!==e.tagname&&(n+=n?"."+A6:A6),this.isItStopNode(this.options.stopNodes,n,A6)){var h="";if(c2.length>0&&c2.lastIndexOf("/")===c2.length-1)A6[A6.length-1]==="/"?(A6=A6.substr(0,A6.length-1),n=n.substr(0,n.length-1),c2=A6):c2=c2.substr(0,c2.length-1),a=s7.closeIndex;else if(this.options.unpairedTags.indexOf(A6)!==-1)a=s7.closeIndex;else{var p=this.readStopNodeData(r,u3,f+1);if(!p)throw new Error("Unexpected end of ".concat(u3));a=p.i,h=p.tagContent}var d=new Tf(A6);A6!==c2&&l2&&(d[":@"]=this.buildAttributesMap(c2,n,A6)),h&&(h=this.parseTextData(h,A6,n,!0,l2,!0,!0)),n=n.substr(0,n.lastIndexOf(".")),d.add(this.options.textNodeName,h),this.addChild(t,d,n)}else{if(c2.length>0&&c2.lastIndexOf("/")===c2.length-1){A6[A6.length-1]==="/"?(A6=A6.substr(0,A6.length-1),n=n.substr(0,n.length-1),c2=A6):c2=c2.substr(0,c2.length-1),this.options.transformTagName&&(A6=this.options.transformTagName(A6));var h2=new Tf(A6);A6!==c2&&l2&&(h2[":@"]=this.buildAttributesMap(c2,n,A6)),this.addChild(t,h2,n),n=n.substr(0,n.lastIndexOf("."))}else{var h3=new Tf(A6);this.tagsNodeStack.push(t),A6!==c2&&l2&&(h3[":@"]=this.buildAttributesMap(c2,n,A6)),this.addChild(t,h3,n),t=h3}i="",a=f}}else i+=r[a];return e.child};var per=function per(r){if(this.options.processEntities){for(var e in this.docTypeEntities){var t=this.docTypeEntities[e];r=r.replace(t.regx,t.val)}for(var e1 in this.lastEntities){var t3=this.lastEntities[e1];r=r.replace(t3.regex,t3.val)}if(this.options.htmlEntities)for(var e2 in this.htmlEntities){var t5=this.htmlEntities[e2];r=r.replace(t5.regex,t5.val)}r=r.replace(this.ampEntity.regex,this.ampEntity.val)}return r};KZ.exports=i1});var jZ=I(function(zZ){"use strict";var Ber=function Ber(r,e){return YZ(r,e)};var Eer=function Eer(r){var e=Object.keys(r);for(var t=0;t<e.length;t++){var i=e[t];if(i!==":@")return i}};var yer=function yer(r,e,t,i){if(e){var n=Object.keys(e),a=n.length;for(var o=0;o<a;o++){var s=n[o];i.isArray(s,t+"."+s,!0,!0)?r[s]=[e[s]]:r[s]=e[s]}}};var Qer=function Qer(r,e){var t=e.textNodeName,i=Object.keys(r).length;return!!(i===0||i===1&&(r[t]||typeof r[t]=="boolean"||r[t]===0))};function YZ(r,e,t){var i,n={};for(var a=0;a<r.length;a++){var o=r[a],s=Eer(o),A="";if(t===void 0?A=s:A=t+"."+s,s===e.textNodeName)i===void 0?i=o[s]:i+=""+o[s];else{if(s===void 0)continue;if(o[s]){var u=YZ(o[s],e,A),c=Qer(u,e);o[":@"]?yer(u,o[":@"],A,e):Object.keys(u).length===1&&u[e.textNodeName]!==void 0&&!e.alwaysCreateTextNode?u=u[e.textNodeName]:Object.keys(u).length===0&&(e.alwaysCreateTextNode?u[e.textNodeName]="":u=""),n[s]!==void 0&&n.hasOwnProperty(s)?(Array.isArray(n[s])||(n[s]=[n[s]]),n[s].push(u)):e.isArray(s,A,c)?n[s]=[u]:n[s]=u}}}return typeof i=="string"?i.length>0&&(n[e.textNodeName]=i):i!==void 0&&(n[e.textNodeName]=i),n}zZ.prettify=Ber});var ZZ=I(function(YRr,XZ){var _TZ=TZ(),ber=_TZ.buildOptions,wer=VZ(),_jZ=jZ(),Ser=_jZ.prettify,_er=$w(),o1=/*#__PURE__*/function(){"use strict";function o1(e){_class_call_check(this,o1);this.externalEntities={},this.options=ber(e)}_create_class(o1,[{key:"parse",value:function parse(e,t){if(typeof e!="string")if(e.toString)e=e.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});var a=_er.validate(e,t);if(a!==!0)throw Error("".concat(a.err.msg,":").concat(a.err.line,":").concat(a.err.col))}var i=new wer(this.options);i.addExternalEntities(this.externalEntities);var n=i.parseXml(e);return this.options.preserveOrder||n===void 0?n:Ser(n,this.options)}},{key:"addEntity",value:function addEntity(e,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(e.indexOf("&")!==-1||e.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}]);return o1}();XZ.exports=o1});var i$=I(function(zRr,t$){var Der=function Der(r,e){var t="";return e.format&&e.indentBy.length>0&&(t=qer),e$(r,e,"",t)};var Fer=function Fer(r){var e=Object.keys(r);for(var t=0;t<e.length;t++){var i=e[t];if(r.hasOwnProperty(i)&&i!==":@")return i}};var $Z=function $Z(r,e){var t="";if(r&&!e.ignoreAttributes)for(var i in r){if(!r.hasOwnProperty(i))continue;var n=e.attributeValueProcessor(i,r[i]);n=r$(n,e),n===!0&&e.suppressBooleanAttributes?t+=" ".concat(i.substr(e.attributeNamePrefix.length)):t+=" ".concat(i.substr(e.attributeNamePrefix.length),'="').concat(n,'"')}return t};var ker=function ker(r,e){r=r.substr(0,r.length-e.textNodeName.length-1);var t=r.substr(r.lastIndexOf(".")+1);for(var i in e.stopNodes)if(e.stopNodes[i]===r||e.stopNodes[i]==="*."+t)return!0;return!1};var r$=function r$(r,e){if(r&&r.length>0&&e.processEntities)for(var t=0;t<e.entities.length;t++){var i=e.entities[t];r=r.replace(i.regex,i.val)}return r};var qer="\n";function e$(r,e,t,i){var n="",a=!1;for(var o=0;o<r.length;o++){var s=r[o],A=Fer(s);if(A===void 0)continue;var u="";if(t.length===0?u=A:u="".concat(t,".").concat(A),A===e.textNodeName){var h=s[A];ker(u,e)||(h=e.tagValueProcessor(A,h),h=r$(h,e)),a&&(n+=i),n+=h,a=!1;continue}else if(A===e.cdataPropName){a&&(n+=i),n+="<![CDATA[".concat(s[A][0][e.textNodeName],"]]>"),a=!1;continue}else if(A===e.commentPropName){n+=i+"<!--".concat(s[A][0][e.textNodeName],"-->"),a=!0;continue}else if(A[0]==="?"){var h2=$Z(s[":@"],e),d=A==="?xml"?"":i,p=s[A][0][e.textNodeName];p=p.length!==0?" "+p:"",n+=d+"<".concat(A).concat(p).concat(h2,"?>"),a=!0;continue}var c=i;c!==""&&(c+=e.indentBy);var l=$Z(s[":@"],e),f=i+"<".concat(A).concat(l),g=e$(s[A],e,u,c);e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?n+=f+">":n+=f+"/>":(!g||g.length===0)&&e.suppressEmptyNode?n+=f+"/>":g&&g.endsWith(">")?n+=f+">".concat(g).concat(i,"</").concat(A,">"):(n+=f+">",g&&i!==""&&(g.includes("/>")||g.includes("</"))?n+=i+e.indentBy+g+i:n+=g,n+="</".concat(A,">")),a=!0}return n}t$.exports=Der});var a$=I(function(jRr,n$){"use strict";var mo=function mo(r){this.options=Object.assign({},Oer,r),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=Ner(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Mer),this.processTextOrObjNode=Ter,this.options.format?(this.indentate=Per,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")};var Ter=function Ter(r,e,t,i){var n=this.j2x(r,t+1,i.concat(e));return r[this.options.textNodeName]!==void 0&&Object.keys(r).length===1?this.buildTextValNode(r[this.options.textNodeName],e,n.attrStr,t):this.buildObjectNode(n.val,e,n.attrStr,t)};var Per=function Per(r){return this.options.indentBy.repeat(r)};var Mer=function Mer(r){return r.startsWith(this.options.attributeNamePrefix)&&r!==this.options.textNodeName?r.substr(this.attrPrefixLen):!1};var Rer=i$(),Ner=t1(),Oer={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function tagValueProcessor(r,e){return e},attributeValueProcessor:function attributeValueProcessor(r,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};mo.prototype.build=function(r){return this.options.preserveOrder?Rer(r,this.options):(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(r=_define_property({},this.options.arrayNodeName,r)),this.j2x(r,0,[]).val)};mo.prototype.j2x=function(r,e,t){var i="",n="",a=t.join(".");for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o))if(typeof r[o]=="undefined")this.isAttribute(o)&&(n+="");else if(r[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?n+="":o[0]==="?"?n+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(_instanceof(r[o],Date))n+=this.buildTextValNode(r[o],o,"",e);else if(_type_of(r[o])!="object"){var s=this.isAttribute(o);if(s&&!this.ignoreAttributesFn(s,a))i+=this.buildAttrPairStr(s,""+r[o]);else if(!s)if(o===this.options.textNodeName){var A=this.options.tagValueProcessor(o,""+r[o]);n+=this.replaceEntitiesValue(A)}else n+=this.buildTextValNode(r[o],o,"",e)}else if(Array.isArray(r[o])){var s2=r[o].length,A2="",u="";for(var c=0;c<s2;c++){var l=r[o][c];if(typeof l!="undefined")if(l===null)o[0]==="?"?n+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if((typeof l==="undefined"?"undefined":_type_of(l))=="object")if(this.options.oneListGroup){var f=this.j2x(l,e+1,t.concat(o));A2+=f.val,this.options.attributesGroupName&&l.hasOwnProperty(this.options.attributesGroupName)&&(u+=f.attrStr)}else A2+=this.processTextOrObjNode(l,o,e,t);else if(this.options.oneListGroup){var f2=this.options.tagValueProcessor(o,l);f2=this.replaceEntitiesValue(f2),A2+=f2}else A2+=this.buildTextValNode(l,o,"",e)}this.options.oneListGroup&&(A2=this.buildObjectNode(A2,o,u,e)),n+=A2}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){var s3=Object.keys(r[o]),A3=s3.length;for(var u2=0;u2<A3;u2++)i+=this.buildAttrPairStr(s3[u2],""+r[o][s3[u2]])}else n+=this.processTextOrObjNode(r[o],o,e,t);return{attrStr:i,val:n}};mo.prototype.buildAttrPairStr=function(r,e){return e=this.options.attributeValueProcessor(r,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+r:" "+r+'="'+e+'"'};mo.prototype.buildObjectNode=function(r,e,t,i){if(r==="")return e[0]==="?"?this.indentate(i)+"<"+e+t+"?"+this.tagEndChar:this.indentate(i)+"<"+e+t+this.closeTag(e)+this.tagEndChar;{var n="</"+e+this.tagEndChar,a="";return e[0]==="?"&&(a="?",n=""),(t||t==="")&&r.indexOf("<")===-1?this.indentate(i)+"<"+e+t+a+">"+r+n:this.options.commentPropName!==!1&&e===this.options.commentPropName&&a.length===0?this.indentate(i)+"<!--".concat(r,"-->")+this.newLine:this.indentate(i)+"<"+e+t+a+this.tagEndChar+r+this.indentate(i)+n}};mo.prototype.closeTag=function(r){var e="";return this.options.unpairedTags.indexOf(r)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e="></".concat(r),e};mo.prototype.buildTextValNode=function(r,e,t,i){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(i)+"<![CDATA[".concat(r,"]]>")+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(i)+"<!--".concat(r,"-->")+this.newLine;if(e[0]==="?")return this.indentate(i)+"<"+e+t+"?"+this.tagEndChar;{var n=this.options.tagValueProcessor(e,r);return n=this.replaceEntitiesValue(n),n===""?this.indentate(i)+"<"+e+t+this.closeTag(e)+this.tagEndChar:this.indentate(i)+"<"+e+t+">"+n+"</"+e+this.tagEndChar}};mo.prototype.replaceEntitiesValue=function(r){if(r&&r.length>0&&this.options.processEntities)for(var e=0;e<this.options.entities.length;e++){var t=this.options.entities[e];r=r.replace(t.regex,t.val)}return r};n$.exports=mo});var h0=I(function(XRr,o$){"use strict";var Uer=$w(),Ger=ZZ(),Ler=a$();o$.exports={XMLParser:Ger,XMLValidator:Uer,XMLBuilder:Ler}});var C1=I(function(Y4r,fee){"use strict";var m1=function m1(r){for(var e=[],t=0;t<r.length;t++){var i=r[t];e.push(Wc[i])}return e.sort(function(a,o){return o.val-a.val}),e};var v1=function v1(r){if(r=="compatibility"&&(r="jedec"),r=="decimal"&&(r="metric"),!/^(binary|metric|jedec)/.test(r))throw Error("bytes.js: invalid mode passed in: "+r);return r};var $rr=function $rr(r,e){return typeof r=="string"?lee(r,e):typeof r=="number"?uee(r,e):null};var uee=function uee(r,e){if(!Number.isFinite(r))return null;var t=Math.abs(r),i=e&&e.thousandsSeparator||"",n=e&&e.unitSeparator||"",a=e&&e.decimalPlaces!==void 0?e.decimalPlaces:2,o=Boolean(e&&e.fixedDecimals),s=e&&e.unit,A=e&&e.mode||"metric";A=v1(e.mode);var u=etr(A),c;s!==void 0?c=rtr(Wc,s,A):c=ttr(u,t);var l=r/c.val,f=l.toFixed(a),g=c.name;return o||(f=f.replace(Yrr,"$1")),i&&(f=f.replace(Vrr,i)),f+n+g};var etr=function etr(r){if(r=="metric")return zrr;if(r=="jedec")return Xrr;if(r=="binary")return jrr};var rtr=function rtr(r,e,t){var i;if(e=e.toLowerCase(),(t=="compatibility"||t=="jedec")&&(i=Wc["_"+e]),i===void 0&&(i=Wc[e]),i===void 0)throw Error("byte.js: unit not found: "+e);return i};var ttr=function ttr(r,e){for(var t=0;t<r.length;t++){var i=r[t];if(e>=i.val||t>=r.length-1)return i}};var lee=function lee(r,e){if(typeof r=="number"&&!isNaN(r))return r;if(typeof r!="string")return null;var t=e&&e.mode||"metric";t=v1(t);var i=Zrr.exec(r),n,a;if(!i)return null;n=parseFloat(i[1]),a=i[4],a===void 0&&(a="b"),a=a.toLowerCase();var o;return t=="jedec"&&(o=Wc["_"+a]),o===void 0&&(o=Wc[a]),Math.floor(o.val*n)};fee.exports=cee("metric");var Vrr=/\B(?=(\d{3})+(?!\d))/g,Yrr=/(?:\.0*|(\.[^0]+)0+)$/,Wc={b:{val:1,longName:"byte",name:"B"},kb:{val:Math.pow(1e3,1),longName:"kilobyte",name:"kB"},mb:{val:Math.pow(1e3,2),longName:"megabyte",name:"MB"},gb:{val:Math.pow(1e3,3),longName:"gigabyte",name:"GB"},tb:{val:Math.pow(1e3,4),longName:"terabyte",name:"TB"},pb:{val:Math.pow(1e3,5),longName:"petabyte",name:"PB"},eb:{val:Math.pow(1e3,6),longName:"exabyte",name:"EB"},zb:{val:Math.pow(1e3,7),longName:"zettabyte",name:"ZB"},yb:{val:Math.pow(1e3,8),longName:"yottabyte",name:"YB"},kib:{val:Math.pow(1024,1),longName:"kibibyte",name:"KiB"},mib:{val:Math.pow(1024,2),longName:"mebibyte",name:"MiB"},gib:{val:Math.pow(1024,3),longName:"gibibyte",name:"GiB"},tib:{val:Math.pow(1024,4),longName:"tebibyte",name:"TiB"},pib:{val:Math.pow(1024,5),longName:"pebibyte",name:"PiB"},eib:{val:Math.pow(1024,6),longName:"exbibyte",name:"EiB"},zib:{val:Math.pow(1024,7),longName:"zebibyte",name:"ZiB"},yib:{val:Math.pow(1024,8),longName:"yobibyte",name:"YiB"},_kb:{val:Math.pow(1024,1),longName:"kilobyte",name:"kB"},_mb:{val:Math.pow(1024,2),longName:"megabyte",name:"MB"},_gb:{val:Math.pow(1024,3),longName:"gigabyte",name:"GB"},_tb:{val:Math.pow(1024,4),longName:"terabyte",name:"TB"}};var zrr=m1(["b","kb","mb","gb","tb","pb","eb","zb","yb"]),jrr=m1(["b","kib","mib","gib","tib","pib","eib","zib","yib"]),Xrr=m1(["b","_kb","_mb","_gb","_tb"]),Zrr=/^((-|\+)?(\d+(?:\.\d+)?)) *((k|m|g|t|p|e|z|y)?i?(b))?$/i;function cee(r){r=v1(r);function e(i){return i=i!==void 0?i:{},i.mode===void 0&&(i.mode=r),i}function t(i,n){return $rr(i,e(n))}return t.format=function(n,a){return uee(n,e(a))},t.parse=function(n,a){return lee(n,e(a))},t.withDefaultMode=cee,t}});var xee=I(function(pOr,pee){pee.exports=function(r,e){if(typeof r!="string")throw new TypeError("Expected a string");for(var t=String(r),i="",n=e?!!e.extended:!1,a=e?!!e.globstar:!1,o=!1,s=e&&typeof e.flags=="string"?e.flags:"",A,u=0,c=t.length;u<c;u++)switch(A=t[u],A){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":i+="\\"+A;break;case"?":if(n){i+=".";break}case"[":case"]":if(n){i+=A;break}case"{":if(n){o=!0,i+="(";break}case"}":if(n){o=!1,i+=")";break}case",":if(o){i+="|";break}i+="\\"+A;break;case"*":for(var l=t[u-1],f=1;t[u+1]==="*";)f++,u++;var g=t[u+1];if(!a)i+=".*";else{var h=f>1&&(l==="/"||l===void 0)&&(g==="/"||g===void 0);h?(i+="((?:[^/]*(?:/|$))*)",u++):i+="([^/]*)"}break;default:i+=A}return(!s||!~s.indexOf("g"))&&(i="^"+i+"$"),new RegExp(i,s)}});var la=I(function(F1){"use strict";F1.load=function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var i,n,a;for(i in e)a=e[i],t[i]=(n=r[i])!=null?n:a;return t};F1.overwrite=function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var i,n;for(i in r)n=r[i],e[i]!==void 0&&(t[i]=n);return t}});var k1=I(function(E8r,Oee){"use strict";var Nee;Nee=/*#__PURE__*/function(){function Nee(e,t){_class_call_check(this,Nee);this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}_create_class(Nee,[{key:"push",value:function push(e){var t;this.length++,typeof this.incr=="function"&&this.incr(),t={value:e,prev:this._last,next:null},this._last!=null?(this._last.next=t,this._last=t):this._first=this._last=t}},{key:"shift",value:function shift(){var e;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),e=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,e}},{key:"first",value:function first(){if(this._first!=null)return this._first.value}},{key:"getArray",value:function getArray(){var e,t,i;for(e=this._first,i=[];e!=null;)i.push((t=e,e=e.next,t.value));return i}},{key:"forEachShift",value:function forEachShift(e){var t;for(t=this.shift();t!=null;)e(t),t=this.shift()}},{key:"debug",value:function debug(){var e,t,i,n,a;for(e=this._first,a=[];e!=null;)a.push((t=e,e=e.next,{value:t.value,prev:(i=t.prev)!=null?i.value:void 0,next:(n=t.next)!=null?n.value:void 0}));return a}}]);return Nee}();Oee.exports=Nee});var ws=I(function(Q8r,Uee){"use strict";var Tee=function Tee(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var Pee=function Pee(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){Tee(a,i,n,o,s,"next",A)}function s(A){Tee(a,i,n,o,s,"throw",A)}o(void 0)})}};var Mee;Mee=/*#__PURE__*/function(){function Mee(e){var _this=this;var _this1=this;_class_call_check(this,Mee);if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=function(t,i){return _this._addListener(t,"many",i)},this.instance.once=function(t,i){return _this._addListener(t,"once",i)},this.instance.removeAllListeners=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return t!=null?delete _this1._events[t]:_this1._events={}}}_create_class(Mee,[{key:"_addListener",value:function _addListener(e,t,i){var n;return(n=this._events)[e]==null&&(n[e]=[]),this._events[e].push({cb:i,status:t}),this.instance}},{key:"listenerCount",value:function listenerCount(e){return this._events[e]!=null?this._events[e].length:0}},{key:"trigger",value:function trigger(e){for(var _len=arguments.length,t=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){t[_key-1]=arguments[_key]}var i=this;return Pee(function(){var n,a,_tmp,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,4,,5]);e!=="debug"&&i.trigger("debug","Event triggered: ".concat(e),t);if(!(i._events[e]==null))return[3,1];_tmp=void 0;return[3,3];case 1:i._events[e]=i._events[e].filter(function(o){return o.status!=="none"}),a=i._events[e].map(function(){var _$o=Pee(function(s){var A,u,_s1,_tmp,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(s.status!=="none"))return[3,6];s.status==="once"&&(s.status="none");_state.label=1;case 1:_state.trys.push([1,5,,6]);u=typeof s.cb=="function"?(_s1=s).cb.apply(_s1,_to_consumable_array(t)):void 0;if(!(typeof(u!=null?u.then:void 0)=="function"))return[3,3];return[4,u];case 2:_tmp=_state.sent();return[3,4];case 3:_tmp=u;_state.label=4;case 4:return[2,_tmp];case 5:c=_state.sent();return[2,(A=c,i.trigger("error",A),null)];case 6:return[2]}})});return function(s){return _$o.apply(this,arguments)}}());return[4,Promise.all(a)];case 2:_tmp=_state.sent().find(function(o){return o!=null});_state.label=3;case 3:return[2,_tmp];case 4:o=_state.sent();return[2,(n=o,i.trigger("error",n),null)];case 5:return[2]}})})()}}]);return Mee}();Uee.exports=Mee});var Jee=I(function(w8r,Wee){"use strict";var Gee,Lee,Hee;Gee=k1();Lee=ws();Hee=/*#__PURE__*/function(){function Hee(e){_class_call_check(this,Hee);var t;this.Events=new Lee(this),this._length=0,this._lists=(function(){var _this=this;var i,n,a;for(a=[],t=i=1,n=e;1<=n?i<=n:i>=n;t=1<=n?++i:--i)a.push(new Gee(function(){return _this.incr()},function(){return _this.decr()}));return a}).call(this)}_create_class(Hee,[{key:"incr",value:function incr(){if(this._length++===0)return this.Events.trigger("leftzero")}},{key:"decr",value:function decr(){if(--this._length===0)return this.Events.trigger("zero")}},{key:"push",value:function push(e){return this._lists[e.options.priority].push(e)}},{key:"queued",value:function queued(e){return e!=null?this._lists[e].length:this._length}},{key:"shiftAll",value:function shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}},{key:"getFirst",value:function getFirst(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._lists;var t,i,n;for(t=0,i=e.length;t<i;t++)if(n=e[t],n.length>0)return n;return[]}},{key:"shiftLastFrom",value:function shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}}]);return Hee}();Wee.exports=Hee});var Vc=I(function(_8r,Vee){"use strict";var Kee;Kee=/*#__PURE__*/function(Error1){_inherits(Kee,Error1);function Kee(){_class_call_check(this,Kee);return _call_super(this,Kee,arguments)}return Kee}(_wrap_native_super(Error));Vee.exports=Kee});var ere=I(function(D8r,$ee){"use strict";var Yee=function Yee(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var zee=function zee(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){Yee(a,i,n,o,s,"next",A)}function s(A){Yee(a,i,n,o,s,"throw",A)}o(void 0)})}};var O0,jee,Xee,R1,Zee;R1=10;jee=5;Zee=la();O0=Vc();Xee=/*#__PURE__*/function(){function Xee(e,t,i,n,a,o,s,A){var _this=this;_class_call_check(this,Xee);this.task=e,this.args=t,this.rejectOnDrop=a,this.Events=o,this._states=s,this.Promise=A,this.options=Zee.load(i,n),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===n.id&&(this.options.id="".concat(this.options.id,"-").concat(this._randomIndex())),this.promise=new this.Promise(function(u,c){_this._resolve=u,_this._reject=c}),this.retryCount=0}_create_class(Xee,[{key:"_sanitizePriority",value:function _sanitizePriority(e){var t;return t=~~e!==e?jee:e,t<0?0:t>R1-1?R1-1:t}},{key:"_randomIndex",value:function _randomIndex(){return Math.random().toString(36).slice(2)}},{key:"doDrop",value:function doDrop(){var _ref=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=_ref.error,tmp=_ref.message,t=tmp===void 0?"This job has been dropped by Bottleneck":tmp;return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e!=null?e:new O0(t)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}},{key:"_assertStatus",value:function _assertStatus(e){var t;if(t=this._states.jobStatus(this.options.id),!(t===e||e==="DONE"&&t===null))throw new O0("Invalid job status ".concat(t,", expected ").concat(e,". Please open an issue at https://github.com/SGrondin/bottleneck/issues"))}},{key:"doReceive",value:function doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}},{key:"doQueue",value:function doQueue(e,t){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}},{key:"doRun",value:function doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}},{key:"doExecute",value:function doExecute(e,t,i,n){var a=this;return zee(function(){var o,s,A,_e1,_a,u;return _ts_generator(this,function(_state){switch(_state.label){case 0:a.retryCount===0?(a._assertStatus("RUNNING"),a._states.next(a.options.id)):a._assertStatus("EXECUTING"),s={args:a.args,options:a.options,retryCount:a.retryCount},a.Events.trigger("executing",s);_state.label=1;case 1:_state.trys.push([1,5,,6]);return[4,e!=null?(_e1=e).schedule.apply(_e1,[a.options,a.task].concat(_to_consumable_array(a.args))):(_a=a).task.apply(_a,_to_consumable_array(a.args))];case 2:if(!(A=_state.sent(),t()))return[3,4];a.doDone(s);return[4,n(a.options,s)];case 3:return[2,(_state.sent(),a._assertStatus("DONE"),a._resolve(A))];case 4:return[3,6];case 5:u=_state.sent();return[2,(o=u,a._onFailure(o,s,t,i,n))];case 6:return[2]}})})()}},{key:"doExpire",value:function doExpire(e,t,i){var n,a;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),a={args:this.args,options:this.options,retryCount:this.retryCount},n=new O0("This job timed out after ".concat(this.options.expiration," ms.")),this._onFailure(n,a,e,t,i)}},{key:"_onFailure",value:function _onFailure(e,t,i,n,a){var o=this;return zee(function(){var s,A,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!i())return[3,5];return[4,o.Events.trigger("failed",e,t)];case 1:s=_state.sent();if(!(s!=null))return[3,2];_tmp=(A=~~s,o.Events.trigger("retry","Retrying ".concat(o.options.id," after ").concat(A," ms"),t),o.retryCount++,n(A));return[3,4];case 2:o.doDone(t);return[4,a(o.options,t)];case 3:_tmp=(_state.sent(),o._assertStatus("DONE"),o._reject(e));_state.label=4;case 4:return[2,_tmp];case 5:return[2]}})})()}},{key:"doDone",value:function doDone(e){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",e)}}]);return Xee}();$ee.exports=Xee});var are=I(function(k8r,nre){"use strict";var rre=function rre(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var li=function li(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){rre(a,i,n,o,s,"next",A)}function s(A){rre(a,i,n,o,s,"throw",A)}o(void 0)})}};var tre,ire,N1;N1=la();tre=Vc();ire=/*#__PURE__*/function(){function ire(e,t,i){_class_call_check(this,ire);this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),N1.load(i,i,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_create_class(ire,[{key:"_startHeartbeat",value:function _startHeartbeat(){var _this=this;var e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(function(){var t,i,n,a,o;if(a=Date.now(),_this.storeOptions.reservoirRefreshInterval!=null&&a>=_this._lastReservoirRefresh+_this.storeOptions.reservoirRefreshInterval&&(_this._lastReservoirRefresh=a,_this.storeOptions.reservoir=_this.storeOptions.reservoirRefreshAmount,_this.instance._drainAll(_this.computeCapacity())),_this.storeOptions.reservoirIncreaseInterval!=null&&a>=_this._lastReservoirIncrease+_this.storeOptions.reservoirIncreaseInterval){var s=_this.storeOptions;if(t=s.reservoirIncreaseAmount,n=s.reservoirIncreaseMaximum,o=s.reservoir,_this._lastReservoirIncrease=a,i=n!=null?Math.min(t,n-o):t,i>0)return _this.storeOptions.reservoir+=i,_this.instance._drainAll(_this.computeCapacity())}},this.heartbeatInterval)).unref=="function"?e.unref():void 0:clearInterval(this.heartbeat)}},{key:"__publish__",value:function __publish__(e){var t=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),t.instance.Events.trigger("message",e.toString()))]}})})()}},{key:"__disconnect__",value:function __disconnect__(e){var t=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),clearInterval(t.heartbeat),t.Promise.resolve())]}})})()}},{key:"yieldLoop",value:function yieldLoop(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new this.Promise(function(t,i){return setTimeout(t,e)})}},{key:"computePenalty",value:function computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}},{key:"__updateSettings__",value:function __updateSettings__(e){var t=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),N1.overwrite(e,e,t.storeOptions),t._startHeartbeat(),t.instance._drainAll(t.computeCapacity()),!0)]}})})()}},{key:"__running__",value:function __running__(){var e=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.yieldLoop()];case 1:return[2,(_state.sent(),e._running)]}})})()}},{key:"__queued__",value:function __queued__(){var e=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.yieldLoop()];case 1:return[2,(_state.sent(),e.instance.queued())]}})})()}},{key:"__done__",value:function __done__(){var e=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.yieldLoop()];case 1:return[2,(_state.sent(),e._done)]}})})()}},{key:"__groupCheck__",value:function __groupCheck__(e){var t=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),t._nextRequest+t.timeout<e)]}})})()}},{key:"computeCapacity",value:function computeCapacity(){var e,t,i=this.storeOptions;return e=i.maxConcurrent,t=i.reservoir,e!=null&&t!=null?Math.min(e-this._running,t):e!=null?e-this._running:t!=null?t:null}},{key:"conditionsCheck",value:function conditionsCheck(e){var t;return t=this.computeCapacity(),t==null||e<=t}},{key:"__incrementReservoir__",value:function __incrementReservoir__(e){var t=this;return li(function(){var i;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),i=t.storeOptions.reservoir+=e,t.instance._drainAll(t.computeCapacity()),i)]}})})()}},{key:"__currentReservoir__",value:function __currentReservoir__(){var e=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.yieldLoop()];case 1:return[2,(_state.sent(),e.storeOptions.reservoir)]}})})()}},{key:"isBlocked",value:function isBlocked(e){return this._unblockTime>=e}},{key:"check",value:function check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}},{key:"__check__",value:function __check__(e){var t=this;return li(function(){var i;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),i=Date.now(),t.check(e,i))]}})})()}},{key:"__register__",value:function __register__(e,t,i){var n=this;return li(function(){var a,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,n.yieldLoop()];case 1:return[2,(_state.sent(),a=Date.now(),n.conditionsCheck(t)?(n._running+=t,n.storeOptions.reservoir!=null&&(n.storeOptions.reservoir-=t),o=Math.max(n._nextRequest-a,0),n._nextRequest=a+o+n.storeOptions.minTime,{success:!0,wait:o,reservoir:n.storeOptions.reservoir}):{success:!1})]}})})()}},{key:"strategyIsBlock",value:function strategyIsBlock(){return this.storeOptions.strategy===3}},{key:"__submit__",value:function __submit__(e,t){var i=this;return li(function(){var n,a,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,i.yieldLoop()];case 1:if(_state.sent(),i.storeOptions.maxConcurrent!=null&&t>i.storeOptions.maxConcurrent)throw new tre("Impossible to add a job having a weight of ".concat(t," to a limiter having a maxConcurrent setting of ").concat(i.storeOptions.maxConcurrent));return[2,(a=Date.now(),o=i.storeOptions.highWater!=null&&e===i.storeOptions.highWater&&!i.check(t,a),n=i.strategyIsBlock()&&(o||i.isBlocked(a)),n&&(i._unblockTime=a+i.computePenalty(),i._nextRequest=i._unblockTime+i.storeOptions.minTime,i.instance._dropAllQueued()),{reachedHWM:o,blocked:n,strategy:i.storeOptions.strategy})]}})})()}},{key:"__free__",value:function __free__(e,t){var i=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,i.yieldLoop()];case 1:return[2,(_state.sent(),i._running-=t,i._done+=t,i.instance._drainAll(i.computeCapacity()),{running:i._running})]}})})()}}]);return ire}();nre.exports=ire});var ore=I(function(R8r,vtr){vtr.exports={"blacklist_client.lua":"local blacklist = ARGV[num_static_argv + 1]\n\nif redis.call('zscore', client_last_seen_key, blacklist) then\n redis.call('zadd', client_last_seen_key, 0, blacklist)\nend\n\n\nreturn {}\n","check.lua":"local weight = tonumber(ARGV[num_static_argv + 1])\n\nlocal capacity = process_tick(now, false)['capacity']\nlocal nextRequest = tonumber(redis.call('hget', settings_key, 'nextRequest'))\n\nreturn conditions_check(capacity, weight) and nextRequest - now <= 0\n","conditions_check.lua":"local conditions_check = function (capacity, weight)\n return capacity == nil or weight <= capacity\nend\n","current_reservoir.lua":"return process_tick(now, false)['reservoir']\n","done.lua":"process_tick(now, false)\n\nreturn tonumber(redis.call('hget', settings_key, 'done'))\n","free.lua":"local index = ARGV[num_static_argv + 1]\n\nredis.call('zadd', job_expirations_key, 0, index)\n\nreturn process_tick(now, false)['running']\n","get_time.lua":"redis.replicate_commands()\n\nlocal get_time = function ()\n local time = redis.call('time')\n\n return tonumber(time[1]..string.sub(time[2], 1, 3))\nend\n","group_check.lua":"return not (redis.call('exists', settings_key) == 1)\n","heartbeat.lua":"process_tick(now, true)\n","increment_reservoir.lua":"local incr = tonumber(ARGV[num_static_argv + 1])\n\nredis.call('hincrby', settings_key, 'reservoir', incr)\n\nlocal reservoir = process_tick(now, true)['reservoir']\n\nlocal groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))\nrefresh_expiration(0, 0, groupTimeout)\n\nreturn reservoir\n","init.lua":"local clear = tonumber(ARGV[num_static_argv + 1])\nlocal limiter_version = ARGV[num_static_argv + 2]\nlocal num_local_argv = num_static_argv + 2\n\nif clear == 1 then\n redis.call('del', unpack(KEYS))\nend\n\nif redis.call('exists', settings_key) == 0 then\n -- Create\n local args = {'hmset', settings_key}\n\n for i = num_local_argv + 1, #ARGV do\n table.insert(args, ARGV[i])\n end\n\n redis.call(unpack(args))\n redis.call('hmset', settings_key,\n 'nextRequest', now,\n 'lastReservoirRefresh', now,\n 'lastReservoirIncrease', now,\n 'running', 0,\n 'done', 0,\n 'unblockTime', 0,\n 'capacityPriorityCounter', 0\n )\n\nelse\n -- Apply migrations\n local settings = redis.call('hmget', settings_key,\n 'id',\n 'version'\n )\n local id = settings[1]\n local current_version = settings[2]\n\n if current_version ~= limiter_version then\n local version_digits = {}\n for k, v in string.gmatch(current_version, \"([^.]+)\") do\n table.insert(version_digits, tonumber(k))\n end\n\n -- 2.10.0\n if version_digits[2] < 10 then\n redis.call('hsetnx', settings_key, 'reservoirRefreshInterval', '')\n redis.call('hsetnx', settings_key, 'reservoirRefreshAmount', '')\n redis.call('hsetnx', settings_key, 'lastReservoirRefresh', '')\n redis.call('hsetnx', settings_key, 'done', 0)\n redis.call('hset', settings_key, 'version', '2.10.0')\n end\n\n -- 2.11.1\n if version_digits[2] < 11 or (version_digits[2] == 11 and version_digits[3] < 1) then\n if redis.call('hstrlen', settings_key, 'lastReservoirRefresh') == 0 then\n redis.call('hmset', settings_key,\n 'lastReservoirRefresh', now,\n 'version', '2.11.1'\n )\n end\n end\n\n -- 2.14.0\n if version_digits[2] < 14 then\n local old_running_key = 'b_'..id..'_running'\n local old_executing_key = 'b_'..id..'_executing'\n\n if redis.call('exists', old_running_key) == 1 then\n redis.call('rename', old_running_key, job_weights_key)\n end\n if redis.call('exists', old_executing_key) == 1 then\n redis.call('rename', old_executing_key, job_expirations_key)\n end\n redis.call('hset', settings_key, 'version', '2.14.0')\n end\n\n -- 2.15.2\n if version_digits[2] < 15 or (version_digits[2] == 15 and version_digits[3] < 2) then\n redis.call('hsetnx', settings_key, 'capacityPriorityCounter', 0)\n redis.call('hset', settings_key, 'version', '2.15.2')\n end\n\n -- 2.17.0\n if version_digits[2] < 17 then\n redis.call('hsetnx', settings_key, 'clientTimeout', 10000)\n redis.call('hset', settings_key, 'version', '2.17.0')\n end\n\n -- 2.18.0\n if version_digits[2] < 18 then\n redis.call('hsetnx', settings_key, 'reservoirIncreaseInterval', '')\n redis.call('hsetnx', settings_key, 'reservoirIncreaseAmount', '')\n redis.call('hsetnx', settings_key, 'reservoirIncreaseMaximum', '')\n redis.call('hsetnx', settings_key, 'lastReservoirIncrease', now)\n redis.call('hset', settings_key, 'version', '2.18.0')\n end\n\n end\n\n process_tick(now, false)\nend\n\nlocal groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))\nrefresh_expiration(0, 0, groupTimeout)\n\nreturn {}\n","process_tick.lua":"local process_tick = function (now, always_publish)\n\n local compute_capacity = function (maxConcurrent, running, reservoir)\n if maxConcurrent ~= nil and reservoir ~= nil then\n return math.min((maxConcurrent - running), reservoir)\n elseif maxConcurrent ~= nil then\n return maxConcurrent - running\n elseif reservoir ~= nil then\n return reservoir\n else\n return nil\n end\n end\n\n local settings = redis.call('hmget', settings_key,\n 'id',\n 'maxConcurrent',\n 'running',\n 'reservoir',\n 'reservoirRefreshInterval',\n 'reservoirRefreshAmount',\n 'lastReservoirRefresh',\n 'reservoirIncreaseInterval',\n 'reservoirIncreaseAmount',\n 'reservoirIncreaseMaximum',\n 'lastReservoirIncrease',\n 'capacityPriorityCounter',\n 'clientTimeout'\n )\n local id = settings[1]\n local maxConcurrent = tonumber(settings[2])\n local running = tonumber(settings[3])\n local reservoir = tonumber(settings[4])\n local reservoirRefreshInterval = tonumber(settings[5])\n local reservoirRefreshAmount = tonumber(settings[6])\n local lastReservoirRefresh = tonumber(settings[7])\n local reservoirIncreaseInterval = tonumber(settings[8])\n local reservoirIncreaseAmount = tonumber(settings[9])\n local reservoirIncreaseMaximum = tonumber(settings[10])\n local lastReservoirIncrease = tonumber(settings[11])\n local capacityPriorityCounter = tonumber(settings[12])\n local clientTimeout = tonumber(settings[13])\n\n local initial_capacity = compute_capacity(maxConcurrent, running, reservoir)\n\n --\n -- Process 'running' changes\n --\n local expired = redis.call('zrangebyscore', job_expirations_key, '-inf', '('..now)\n\n if #expired > 0 then\n redis.call('zremrangebyscore', job_expirations_key, '-inf', '('..now)\n\n local flush_batch = function (batch, acc)\n local weights = redis.call('hmget', job_weights_key, unpack(batch))\n redis.call('hdel', job_weights_key, unpack(batch))\n local clients = redis.call('hmget', job_clients_key, unpack(batch))\n redis.call('hdel', job_clients_key, unpack(batch))\n\n -- Calculate sum of removed weights\n for i = 1, #weights do\n acc['total'] = acc['total'] + (tonumber(weights[i]) or 0)\n end\n\n -- Calculate sum of removed weights by client\n local client_weights = {}\n for i = 1, #clients do\n local removed = tonumber(weights[i]) or 0\n if removed > 0 then\n acc['client_weights'][clients[i]] = (acc['client_weights'][clients[i]] or 0) + removed\n end\n end\n end\n\n local acc = {\n ['total'] = 0,\n ['client_weights'] = {}\n }\n local batch_size = 1000\n\n -- Compute changes to Zsets and apply changes to Hashes\n for i = 1, #expired, batch_size do\n local batch = {}\n for j = i, math.min(i + batch_size - 1, #expired) do\n table.insert(batch, expired[j])\n end\n\n flush_batch(batch, acc)\n end\n\n -- Apply changes to Zsets\n if acc['total'] > 0 then\n redis.call('hincrby', settings_key, 'done', acc['total'])\n running = tonumber(redis.call('hincrby', settings_key, 'running', -acc['total']))\n end\n\n for client, weight in pairs(acc['client_weights']) do\n redis.call('zincrby', client_running_key, -weight, client)\n end\n end\n\n --\n -- Process 'reservoir' changes\n --\n local reservoirRefreshActive = reservoirRefreshInterval ~= nil and reservoirRefreshAmount ~= nil\n if reservoirRefreshActive and now >= lastReservoirRefresh + reservoirRefreshInterval then\n reservoir = reservoirRefreshAmount\n redis.call('hmset', settings_key,\n 'reservoir', reservoir,\n 'lastReservoirRefresh', now\n )\n end\n\n local reservoirIncreaseActive = reservoirIncreaseInterval ~= nil and reservoirIncreaseAmount ~= nil\n if reservoirIncreaseActive and now >= lastReservoirIncrease + reservoirIncreaseInterval then\n local num_intervals = math.floor((now - lastReservoirIncrease) / reservoirIncreaseInterval)\n local incr = reservoirIncreaseAmount * num_intervals\n if reservoirIncreaseMaximum ~= nil then\n incr = math.min(incr, reservoirIncreaseMaximum - (reservoir or 0))\n end\n if incr > 0 then\n reservoir = (reservoir or 0) + incr\n end\n redis.call('hmset', settings_key,\n 'reservoir', reservoir,\n 'lastReservoirIncrease', lastReservoirIncrease + (num_intervals * reservoirIncreaseInterval)\n )\n end\n\n --\n -- Clear unresponsive clients\n --\n local unresponsive = redis.call('zrangebyscore', client_last_seen_key, '-inf', (now - clientTimeout))\n local unresponsive_lookup = {}\n local terminated_clients = {}\n for i = 1, #unresponsive do\n unresponsive_lookup[unresponsive[i]] = true\n if tonumber(redis.call('zscore', client_running_key, unresponsive[i])) == 0 then\n table.insert(terminated_clients, unresponsive[i])\n end\n end\n if #terminated_clients > 0 then\n redis.call('zrem', client_running_key, unpack(terminated_clients))\n redis.call('hdel', client_num_queued_key, unpack(terminated_clients))\n redis.call('zrem', client_last_registered_key, unpack(terminated_clients))\n redis.call('zrem', client_last_seen_key, unpack(terminated_clients))\n end\n\n --\n -- Broadcast capacity changes\n --\n local final_capacity = compute_capacity(maxConcurrent, running, reservoir)\n\n if always_publish or (initial_capacity ~= nil and final_capacity == nil) then\n -- always_publish or was not unlimited, now unlimited\n redis.call('publish', 'b_'..id, 'capacity:'..(final_capacity or ''))\n\n elseif initial_capacity ~= nil and final_capacity ~= nil and final_capacity > initial_capacity then\n -- capacity was increased\n -- send the capacity message to the limiter having the lowest number of running jobs\n -- the tiebreaker is the limiter having not registered a job in the longest time\n\n local lowest_concurrency_value = nil\n local lowest_concurrency_clients = {}\n local lowest_concurrency_last_registered = {}\n local client_concurrencies = redis.call('zrange', client_running_key, 0, -1, 'withscores')\n\n for i = 1, #client_concurrencies, 2 do\n local client = client_concurrencies[i]\n local concurrency = tonumber(client_concurrencies[i+1])\n\n if (\n lowest_concurrency_value == nil or lowest_concurrency_value == concurrency\n ) and (\n not unresponsive_lookup[client]\n ) and (\n tonumber(redis.call('hget', client_num_queued_key, client)) > 0\n ) then\n lowest_concurrency_value = concurrency\n table.insert(lowest_concurrency_clients, client)\n local last_registered = tonumber(redis.call('zscore', client_last_registered_key, client))\n table.insert(lowest_concurrency_last_registered, last_registered)\n end\n end\n\n if #lowest_concurrency_clients > 0 then\n local position = 1\n local earliest = lowest_concurrency_last_registered[1]\n\n for i,v in ipairs(lowest_concurrency_last_registered) do\n if v < earliest then\n position = i\n earliest = v\n end\n end\n\n local next_client = lowest_concurrency_clients[position]\n redis.call('publish', 'b_'..id,\n 'capacity-priority:'..(final_capacity or '')..\n ':'..next_client..\n ':'..capacityPriorityCounter\n )\n redis.call('hincrby', settings_key, 'capacityPriorityCounter', '1')\n else\n redis.call('publish', 'b_'..id, 'capacity:'..(final_capacity or ''))\n end\n end\n\n return {\n ['capacity'] = final_capacity,\n ['running'] = running,\n ['reservoir'] = reservoir\n }\nend\n","queued.lua":"local clientTimeout = tonumber(redis.call('hget', settings_key, 'clientTimeout'))\nlocal valid_clients = redis.call('zrangebyscore', client_last_seen_key, (now - clientTimeout), 'inf')\nlocal client_queued = redis.call('hmget', client_num_queued_key, unpack(valid_clients))\n\nlocal sum = 0\nfor i = 1, #client_queued do\n sum = sum + tonumber(client_queued[i])\nend\n\nreturn sum\n","refresh_expiration.lua":"local refresh_expiration = function (now, nextRequest, groupTimeout)\n\n if groupTimeout ~= nil then\n local ttl = (nextRequest + groupTimeout) - now\n\n for i = 1, #KEYS do\n redis.call('pexpire', KEYS[i], ttl)\n end\n end\n\nend\n","refs.lua":"local settings_key = KEYS[1]\nlocal job_weights_key = KEYS[2]\nlocal job_expirations_key = KEYS[3]\nlocal job_clients_key = KEYS[4]\nlocal client_running_key = KEYS[5]\nlocal client_num_queued_key = KEYS[6]\nlocal client_last_registered_key = KEYS[7]\nlocal client_last_seen_key = KEYS[8]\n\nlocal now = tonumber(ARGV[1])\nlocal client = ARGV[2]\n\nlocal num_static_argv = 2\n","register.lua":"local index = ARGV[num_static_argv + 1]\nlocal weight = tonumber(ARGV[num_static_argv + 2])\nlocal expiration = tonumber(ARGV[num_static_argv + 3])\n\nlocal state = process_tick(now, false)\nlocal capacity = state['capacity']\nlocal reservoir = state['reservoir']\n\nlocal settings = redis.call('hmget', settings_key,\n 'nextRequest',\n 'minTime',\n 'groupTimeout'\n)\nlocal nextRequest = tonumber(settings[1])\nlocal minTime = tonumber(settings[2])\nlocal groupTimeout = tonumber(settings[3])\n\nif conditions_check(capacity, weight) then\n\n redis.call('hincrby', settings_key, 'running', weight)\n redis.call('hset', job_weights_key, index, weight)\n if expiration ~= nil then\n redis.call('zadd', job_expirations_key, now + expiration, index)\n end\n redis.call('hset', job_clients_key, index, client)\n redis.call('zincrby', client_running_key, weight, client)\n redis.call('hincrby', client_num_queued_key, client, -1)\n redis.call('zadd', client_last_registered_key, now, client)\n\n local wait = math.max(nextRequest - now, 0)\n local newNextRequest = now + wait + minTime\n\n if reservoir == nil then\n redis.call('hset', settings_key,\n 'nextRequest', newNextRequest\n )\n else\n reservoir = reservoir - weight\n redis.call('hmset', settings_key,\n 'reservoir', reservoir,\n 'nextRequest', newNextRequest\n )\n end\n\n refresh_expiration(now, newNextRequest, groupTimeout)\n\n return {true, wait, reservoir}\n\nelse\n return {false}\nend\n","register_client.lua":"local queued = tonumber(ARGV[num_static_argv + 1])\n\n-- Could have been re-registered concurrently\nif not redis.call('zscore', client_last_seen_key, client) then\n redis.call('zadd', client_running_key, 0, client)\n redis.call('hset', client_num_queued_key, client, queued)\n redis.call('zadd', client_last_registered_key, 0, client)\nend\n\nredis.call('zadd', client_last_seen_key, now, client)\n\nreturn {}\n","running.lua":"return process_tick(now, false)['running']\n","submit.lua":"local queueLength = tonumber(ARGV[num_static_argv + 1])\nlocal weight = tonumber(ARGV[num_static_argv + 2])\n\nlocal capacity = process_tick(now, false)['capacity']\n\nlocal settings = redis.call('hmget', settings_key,\n 'id',\n 'maxConcurrent',\n 'highWater',\n 'nextRequest',\n 'strategy',\n 'unblockTime',\n 'penalty',\n 'minTime',\n 'groupTimeout'\n)\nlocal id = settings[1]\nlocal maxConcurrent = tonumber(settings[2])\nlocal highWater = tonumber(settings[3])\nlocal nextRequest = tonumber(settings[4])\nlocal strategy = tonumber(settings[5])\nlocal unblockTime = tonumber(settings[6])\nlocal penalty = tonumber(settings[7])\nlocal minTime = tonumber(settings[8])\nlocal groupTimeout = tonumber(settings[9])\n\nif maxConcurrent ~= nil and weight > maxConcurrent then\n return redis.error_reply('OVERWEIGHT:'..weight..':'..maxConcurrent)\nend\n\nlocal reachedHWM = (highWater ~= nil and queueLength == highWater\n and not (\n conditions_check(capacity, weight)\n and nextRequest - now <= 0\n )\n)\n\nlocal blocked = strategy == 3 and (reachedHWM or unblockTime >= now)\n\nif blocked then\n local computedPenalty = penalty\n if computedPenalty == nil then\n if minTime == 0 then\n computedPenalty = 5000\n else\n computedPenalty = 15 * minTime\n end\n end\n\n local newNextRequest = now + computedPenalty + minTime\n\n redis.call('hmset', settings_key,\n 'unblockTime', now + computedPenalty,\n 'nextRequest', newNextRequest\n )\n\n local clients_queued_reset = redis.call('hkeys', client_num_queued_key)\n local queued_reset = {}\n for i = 1, #clients_queued_reset do\n table.insert(queued_reset, clients_queued_reset[i])\n table.insert(queued_reset, 0)\n end\n redis.call('hmset', client_num_queued_key, unpack(queued_reset))\n\n redis.call('publish', 'b_'..id, 'blocked:')\n\n refresh_expiration(now, newNextRequest, groupTimeout)\nend\n\nif not blocked and not reachedHWM then\n redis.call('hincrby', client_num_queued_key, client, 1)\nend\n\nreturn {reachedHWM, blocked, strategy}\n","update_settings.lua":"local args = {'hmset', settings_key}\n\nfor i = num_static_argv + 1, #ARGV do\n table.insert(args, ARGV[i])\nend\n\nredis.call(unpack(args))\n\nprocess_tick(now, true)\n\nlocal groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))\nrefresh_expiration(0, 0, groupTimeout)\n\nreturn {}\n","validate_client.lua":"if not redis.call('zscore', client_last_seen_key, client) then\n return redis.error_reply('UNKNOWN_CLIENT')\nend\n\nredis.call('zadd', client_last_seen_key, now, client)\n","validate_keys.lua":"if not (redis.call('exists', settings_key) == 1) then\n return redis.error_reply('SETTINGS_KEY_NOT_FOUND')\nend\n"}});var M0=I(function(Hr){"use strict";var T0,wr,P0;wr=ore();T0={refs:wr["refs.lua"],validate_keys:wr["validate_keys.lua"],validate_client:wr["validate_client.lua"],refresh_expiration:wr["refresh_expiration.lua"],process_tick:wr["process_tick.lua"],conditions_check:wr["conditions_check.lua"],get_time:wr["get_time.lua"]};Hr.allKeys=function(r){return["b_".concat(r,"_settings"),"b_".concat(r,"_job_weights"),"b_".concat(r,"_job_expirations"),"b_".concat(r,"_job_clients"),"b_".concat(r,"_client_running"),"b_".concat(r,"_client_num_queued"),"b_".concat(r,"_client_last_registered"),"b_".concat(r,"_client_last_seen")]};P0={init:{keys:Hr.allKeys,headers:["process_tick"],refresh_expiration:!0,code:wr["init.lua"]},group_check:{keys:Hr.allKeys,headers:[],refresh_expiration:!1,code:wr["group_check.lua"]},register_client:{keys:Hr.allKeys,headers:["validate_keys"],refresh_expiration:!1,code:wr["register_client.lua"]},blacklist_client:{keys:Hr.allKeys,headers:["validate_keys","validate_client"],refresh_expiration:!1,code:wr["blacklist_client.lua"]},heartbeat:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:wr["heartbeat.lua"]},update_settings:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:wr["update_settings.lua"]},running:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:wr["running.lua"]},queued:{keys:Hr.allKeys,headers:["validate_keys","validate_client"],refresh_expiration:!1,code:wr["queued.lua"]},done:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:wr["done.lua"]},check:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!1,code:wr["check.lua"]},submit:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!0,code:wr["submit.lua"]},register:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!0,code:wr["register.lua"]},free:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:wr["free.lua"]},current_reservoir:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:wr["current_reservoir.lua"]},increment_reservoir:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:wr["increment_reservoir.lua"]}};Hr.names=Object.keys(P0);Hr.keys=function(r,e){return P0[r].keys(e)};Hr.payload=function(r){var e;return e=P0[r],Array.prototype.concat(T0.refs,e.headers.map(function(t){return T0[t]}),e.refresh_expiration?T0.refresh_expiration:"",e.code).join("\n")}});var U0=I(function(exports,module){"use strict";var asyncGeneratorStep=function asyncGeneratorStep(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var _asyncToGenerator=function _asyncToGenerator(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){asyncGeneratorStep(a,i,n,o,s,"next",A)}function s(A){asyncGeneratorStep(a,i,n,o,s,"throw",A)}o(void 0)})}};var Events,RedisConnection,Scripts,parser;parser=la();Events=ws();Scripts=M0();RedisConnection=(function(){var RedisConnection=/*#__PURE__*/function(){function RedisConnection(){var _this=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,RedisConnection);parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("redis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.client==null&&(this.client=this.Redis.createClient(this.clientOptions)),this.subscriber=this.client.duplicate(),this.limiters={},this.shas={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(function(){return _this._loadScripts()}).then(function(){return{client:_this.client,subscriber:_this.subscriber}})}_create_class(RedisConnection,[{key:"_setup",value:function _setup(r,e){var _this=this;return r.setMaxListeners(0),new this.Promise(function(t,i){return r.on("error",function(n){return _this.Events.trigger("error",n)}),e&&r.on("message",function(n,a){var o;return(o=_this.limiters[n])!=null?o._store.onMessage(n,a):void 0}),r.ready?t():r.once("ready",t)})}},{key:"_loadScript",value:function _loadScript(r){var _this=this;return new this.Promise(function(e,t){var i;return i=Scripts.payload(r),_this.client.multi([["script","load",i]]).exec(function(n,a){return n!=null?t(n):(_this.shas[r]=a[0],e(a[0]))})})}},{key:"_loadScripts",value:function _loadScripts(){var _this=this;return this.Promise.all(Scripts.names.map(function(r){return _this._loadScript(r)}))}},{key:"__runCommand__",value:function __runCommand__(r){var e=this;return _asyncToGenerator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.ready];case 1:return[2,(_state.sent(),new e.Promise(function(t,i){return e.client.multi([r]).exec_atomic(function(n,a){return n!=null?i(n):t(a[0])})}))]}})})()}},{key:"__addLimiter__",value:function __addLimiter__(r){var _this=this;return this.Promise.all([r.channel(),r.channel_client()].map(function(e){return new _this.Promise(function(t,i){var n;return n=function(a){if(a===e)return _this.subscriber.removeListener("subscribe",n),_this.limiters[e]=r,t()},_this.subscriber.on("subscribe",n),_this.subscriber.subscribe(e)})}))}},{key:"__removeLimiter__",value:function __removeLimiter__(r){var e=this;return this.Promise.all([r.channel(),r.channel_client()].map(function(){var t=_asyncToGenerator(function(i){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_tmp=e.terminated;if(_tmp)return[3,2];return[4,new e.Promise(function(n,a){return e.subscriber.unsubscribe(i,function(o,s){if(o!=null)return a(o);if(s===i)return n()})})];case 1:_tmp=_state.sent();_state.label=2;case 2:return[2,(_tmp,delete e.limiters[i])]}})});return function(i){return t.apply(this,arguments)}}()))}},{key:"__scriptArgs__",value:function __scriptArgs__(r,e,t,i){var n;return n=Scripts.keys(r,e),[this.shas[r],n.length].concat(n,t,i)}},{key:"__scriptFn__",value:function __scriptFn__(r){return this.client.evalsha.bind(this.client)}},{key:"disconnect",value:function disconnect(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;var e,t,i,n;for(n=Object.keys(this.limiters),e=0,i=n.length;e<i;e++)t=n[e],clearInterval(this.limiters[t]._store.heartbeat);return this.limiters={},this.terminated=!0,this.client.end(r),this.subscriber.end(r),this.Promise.resolve()}}]);return RedisConnection}();return RedisConnection.prototype.datastore="redis",RedisConnection.prototype.defaults={Redis:null,clientOptions:{},client:null,Promise:Promise,Events:null},RedisConnection}).call(void 0);module.exports=RedisConnection});var G0=I(function(exports,module){"use strict";var _slicedToArray=function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_nonIterableRest()};var _nonIterableRest=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var _iterableToArrayLimit=function _iterableToArrayLimit(r,e){var t=[],i=!0,n=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));i=!0);}catch(A){n=!0,a=A}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw a}}return t};var _arrayWithHoles=function _arrayWithHoles(r){if(Array.isArray(r))return r};var asyncGeneratorStep=function asyncGeneratorStep(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var _asyncToGenerator=function _asyncToGenerator(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){asyncGeneratorStep(a,i,n,o,s,"next",A)}function s(A){asyncGeneratorStep(a,i,n,o,s,"throw",A)}o(void 0)})}};var Events,IORedisConnection,Scripts,parser;parser=la();Events=ws();Scripts=M0();IORedisConnection=(function(){var IORedisConnection=/*#__PURE__*/function(){function IORedisConnection(){var _this=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,IORedisConnection);parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("ioredis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.clusterNodes!=null?(this.client=new this.Redis.Cluster(this.clusterNodes,this.clientOptions),this.subscriber=new this.Redis.Cluster(this.clusterNodes,this.clientOptions)):this.client!=null&&this.client.duplicate==null?this.subscriber=new this.Redis.Cluster(this.client.startupNodes,this.client.options):(this.client==null&&(this.client=new this.Redis(this.clientOptions)),this.subscriber=this.client.duplicate()),this.limiters={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(function(){return _this._loadScripts(),{client:_this.client,subscriber:_this.subscriber}})}_create_class(IORedisConnection,[{key:"_setup",value:function _setup(r,e){var _this=this;return r.setMaxListeners(0),new this.Promise(function(t,i){return r.on("error",function(n){return _this.Events.trigger("error",n)}),e&&r.on("message",function(n,a){var o;return(o=_this.limiters[n])!=null?o._store.onMessage(n,a):void 0}),r.status==="ready"?t():r.once("ready",t)})}},{key:"_loadScripts",value:function _loadScripts(){var _this=this;return Scripts.names.forEach(function(r){return _this.client.defineCommand(r,{lua:Scripts.payload(r)})})}},{key:"__runCommand__",value:function __runCommand__(r){var e=this;return _asyncToGenerator(function(){var t,i,n,a,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.ready];case 1:_state.sent();return[4,e.client.pipeline([r]).exec()];case 2:n=_state.sent(),a=_slicedToArray(n,1),o=_slicedToArray(a[0],2);return[2,(t=o[0],i=o[1],i)]}})})()}},{key:"__addLimiter__",value:function __addLimiter__(r){var _this=this;return this.Promise.all([r.channel(),r.channel_client()].map(function(e){return new _this.Promise(function(t,i){return _this.subscriber.subscribe(e,function(){return _this.limiters[e]=r,t()})})}))}},{key:"__removeLimiter__",value:function __removeLimiter__(r){var e=this;return[r.channel(),r.channel_client()].forEach(function(){var t=_asyncToGenerator(function(i){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_tmp=e.terminated;if(_tmp)return[3,2];return[4,e.subscriber.unsubscribe(i)];case 1:_tmp=_state.sent();_state.label=2;case 2:return[2,(_tmp,delete e.limiters[i])]}})});return function(i){return t.apply(this,arguments)}}())}},{key:"__scriptArgs__",value:function __scriptArgs__(r,e,t,i){var n;return n=Scripts.keys(r,e),[n.length].concat(n,t,i)}},{key:"__scriptFn__",value:function __scriptFn__(r){return this.client[r].bind(this.client)}},{key:"disconnect",value:function disconnect(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;var e,t,i,n;for(n=Object.keys(this.limiters),e=0,i=n.length;e<i;e++)t=n[e],clearInterval(this.limiters[t]._store.heartbeat);return this.limiters={},this.terminated=!0,r?this.Promise.all([this.client.quit(),this.subscriber.quit()]):(this.client.disconnect(),this.subscriber.disconnect(),this.Promise.resolve())}}]);return IORedisConnection}();return IORedisConnection.prototype.datastore="ioredis",IORedisConnection.prototype.defaults={Redis:null,clientOptions:{},clusterNodes:null,client:null,Promise:Promise,Events:null},IORedisConnection}).call(void 0);module.exports=IORedisConnection});var gre=I(function(T8r,fre){"use strict";var L0=function L0(r,e){return Etr(r)||Btr(r,e)||Ctr()};var Ctr=function Ctr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var Btr=function Btr(r,e){var t=[],i=!0,n=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));i=!0);}catch(A){n=!0,a=A}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw a}}return t};var Etr=function Etr(r){if(Array.isArray(r))return r};var sre=function sre(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var Qn=function Qn(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){sre(a,i,n,o,s,"next",A)}function s(A){sre(a,i,n,o,s,"throw",A)}o(void 0)})}};var Are,cre,ure,lre,O1;O1=la();Are=Vc();ure=U0();cre=G0();lre=/*#__PURE__*/function(){function lre(e,t,i){var _this=this;_class_call_check(this,lre);this.instance=e,this.storeOptions=t,this.originalId=this.instance.id,this.clientId=this.instance._randomIndex(),O1.load(i,i,this),this.clients={},this.capacityPriorityCounters={},this.sharedConnection=this.connection!=null,this.connection==null&&(this.connection=this.instance.datastore==="redis"?new ure({Redis:this.Redis,clientOptions:this.clientOptions,Promise:this.Promise,Events:this.instance.Events}):this.instance.datastore==="ioredis"?new cre({Redis:this.Redis,clientOptions:this.clientOptions,clusterNodes:this.clusterNodes,Promise:this.Promise,Events:this.instance.Events}):void 0),this.instance.connection=this.connection,this.instance.datastore=this.connection.datastore,this.ready=this.connection.ready.then(function(n){return _this.clients=n,_this.runScript("init",_this.prepareInitSettings(_this.clearDatastore))}).then(function(){return _this.connection.__addLimiter__(_this.instance)}).then(function(){return _this.runScript("register_client",[_this.instance.queued()])}).then(function(){var n;return typeof(n=_this.heartbeat=setInterval(function(){return _this.runScript("heartbeat",[]).catch(function(a){return _this.instance.Events.trigger("error",a)})},_this.heartbeatInterval)).unref=="function"&&n.unref(),_this.clients})}_create_class(lre,[{key:"__publish__",value:function __publish__(e){var t=this;return Qn(function(){var i,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.ready];case 1:n=_state.sent();return[2,(i=n.client,i.publish(t.instance.channel(),"message:".concat(e.toString())))]}})})()}},{key:"onMessage",value:function onMessage(e,t){var i=this;return Qn(function(){var n,a,o,s,A,u,c,l,f,g,h,d,p,_tmp,m;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,10,,11]);c=t.indexOf(":");h=[t.slice(0,c),t.slice(c+1)];if(!(g=h[0],o=h[1],g==="capacity"))return[3,2];return[4,i.instance._drainAll(o.length>0?~~o:void 0)];case 1:return[2,_state.sent()];case 2:if(!(g==="capacity-priority"))return[3,7];d=o.split(":"),p=L0(d,3);f=p[0],l=p[1],a=p[2],n=f.length>0?~~f:void 0;if(!(l===i.clientId))return[3,5];return[4,i.instance._drainAll(n)];case 3:s=_state.sent(),u=n!=null?n-(s||0):"";return[4,i.clients.client.publish(i.instance.channel(),"capacity-priority:".concat(u,"::").concat(a))];case 4:_tmp=_state.sent();return[3,6];case 5:_tmp=l===""?(clearTimeout(i.capacityPriorityCounters[a]),delete i.capacityPriorityCounters[a],i.instance._drainAll(n)):i.capacityPriorityCounters[a]=setTimeout(Qn(function(){var _$m,x;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);delete i.capacityPriorityCounters[a];return[4,i.runScript("blacklist_client",[l])];case 1:_state.sent();return[4,i.instance._drainAll(n)];case 2:return[2,_state.sent()];case 3:x=_state.sent();return[2,(_$m=x,i.instance.Events.trigger("error",_$m))];case 4:return[2]}})}),1e3);_state.label=6;case 6:return[2,_tmp];case 7:if(g==="message")return[2,i.instance.Events.trigger("message",o)];if(!(g==="blocked"))return[3,9];return[4,i.instance._dropAllQueued()];case 8:return[2,_state.sent()];case 9:return[3,11];case 10:m=_state.sent();return[2,(A=m,i.instance.Events.trigger("error",A))];case 11:return[2]}})})()}},{key:"__disconnect__",value:function __disconnect__(e){return clearInterval(this.heartbeat),this.sharedConnection?this.connection.__removeLimiter__(this.instance):this.connection.disconnect(e)}},{key:"runScript",value:function runScript(e,t){var i=this;return Qn(function(){var _this,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_tmp=e==="init"||e==="register_client";if(_tmp)return[3,2];return[4,i.ready];case 1:_tmp=_state.sent();_state.label=2;case 2:return[2,(_tmp,new i.Promise(function(n,a){var o,s;return o=[Date.now(),i.clientId].concat(t),i.instance.Events.trigger("debug","Calling Redis script: ".concat(e,".lua"),o),s=i.connection.__scriptArgs__(e,i.originalId,o,function(A,u){return A!=null?a(A):n(u)}),i.connection.__scriptFn__(e).apply(_this,_to_consumable_array(s))}).catch(function(n){return n.message==="SETTINGS_KEY_NOT_FOUND"?e==="heartbeat"?i.Promise.resolve():i.runScript("init",i.prepareInitSettings(!1)).then(function(){return i.runScript(e,t)}):n.message==="UNKNOWN_CLIENT"?i.runScript("register_client",[i.instance.queued()]).then(function(){return i.runScript(e,t)}):i.Promise.reject(n)}))]}})})()}},{key:"prepareArray",value:function prepareArray(e){var t,i,n,a;for(n=[],t=0,i=e.length;t<i;t++)a=e[t],n.push(a!=null?a.toString():"");return n}},{key:"prepareObject",value:function prepareObject(e){var t,i,n;t=[];for(i in e)n=e[i],t.push(i,n!=null?n.toString():"");return t}},{key:"prepareInitSettings",value:function prepareInitSettings(e){var t;return t=this.prepareObject(Object.assign({},this.storeOptions,{id:this.originalId,version:this.instance.version,groupTimeout:this.timeout,clientTimeout:this.clientTimeout})),t.unshift(e?1:0,this.instance.version),t}},{key:"convertBool",value:function convertBool(e){return!!e}},{key:"__updateSettings__",value:function __updateSettings__(e){var t=this;return Qn(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.runScript("update_settings",t.prepareObject(e))];case 1:return[2,(_state.sent(),O1.overwrite(e,e,t.storeOptions))]}})})()}},{key:"__running__",value:function __running__(){return this.runScript("running",[])}},{key:"__queued__",value:function __queued__(){return this.runScript("queued",[])}},{key:"__done__",value:function __done__(){return this.runScript("done",[])}},{key:"__groupCheck__",value:function __groupCheck__(){var e=this;return Qn(function(){var _2;return _ts_generator(this,function(_state){switch(_state.label){case 0:_2=e.convertBool;return[4,e.runScript("group_check",[])];case 1:return[2,_2.apply(e,[_state.sent()])]}})})()}},{key:"__incrementReservoir__",value:function __incrementReservoir__(e){return this.runScript("increment_reservoir",[e])}},{key:"__currentReservoir__",value:function __currentReservoir__(){return this.runScript("current_reservoir",[])}},{key:"__check__",value:function __check__(e){var t=this;return Qn(function(){var _2;return _ts_generator(this,function(_state){switch(_state.label){case 0:_2=t.convertBool;return[4,t.runScript("check",t.prepareArray([e]))];case 1:return[2,_2.apply(t,[_state.sent()])]}})})()}},{key:"__register__",value:function __register__(e,t,i){var n=this;return Qn(function(){var a,o,s,A,u;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,n.runScript("register",n.prepareArray([e,t,i]))];case 1:A=_state.sent(),u=L0(A,3);return[2,(o=u[0],s=u[1],a=u[2],{success:n.convertBool(o),wait:s,reservoir:a})]}})})()}},{key:"__submit__",value:function __submit__(e,t){var i=this;return Qn(function(){var n,a,o,s,A,u,c,l,h,f,g;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,i.runScript("submit",i.prepareArray([e,t]))];case 1:c=_state.sent(),l=L0(c,3);return[2,(A=l[0],n=l[1],u=l[2],{reachedHWM:i.convertBool(A),blocked:i.convertBool(n),strategy:u})];case 2:h=_state.sent();if(a=h,a.message.indexOf("OVERWEIGHT")===0){f=a.message.split(":"),g=L0(f,3);throw s=g[0],t=g[1],o=g[2],new Are("Impossible to add a job having a weight of ".concat(t," to a limiter having a maxConcurrent setting of ").concat(o))}else throw a;return[3,3];case 3:return[2]}})})()}},{key:"__free__",value:function __free__(e,t){var i=this;return Qn(function(){var n;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,i.runScript("free",i.prepareArray([e]))];case 1:return[2,(n=_state.sent(),{running:n})]}})})()}}]);return lre}();fre.exports=lre});var pre=I(function(M8r,Ire){"use strict";var dre,hre;dre=Vc();hre=/*#__PURE__*/function(){function hre(e){_class_call_check(this,hre);this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}_create_class(hre,[{key:"next",value:function next(e){var t,i;if(t=this._jobs[e],i=t+1,t!=null&&i<this.status.length)return this.counts[t]--,this.counts[i]++,this._jobs[e]++;if(t!=null)return this.counts[t]--,delete this._jobs[e]}},{key:"start",value:function start(e){var t;return t=0,this._jobs[e]=t,this.counts[t]++}},{key:"remove",value:function remove(e){var t;return t=this._jobs[e],t!=null&&(this.counts[t]--,delete this._jobs[e]),t!=null}},{key:"jobStatus",value:function jobStatus(e){var t;return(t=this.status[this._jobs[e]])!=null?t:null}},{key:"statusJobs",value:function statusJobs(e){var t,i,n,a,o;if(e!=null){if(i=this.status.indexOf(e),i<0)throw new dre("status must be one of ".concat(this.status.join(", ")));n=this._jobs,a=[];for(t in n)o=n[t],o===i&&a.push(t);return a}else return Object.keys(this._jobs)}},{key:"statusCounts",value:function statusCounts(){var _this=this;return this.counts.reduce(function(e,t,i){return e[_this.status[i]]=t,e},{})}}]);return hre}();Ire.exports=hre});var Ere=I(function(G8r,Bre){"use strict";var xre=function xre(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var mre=function mre(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){xre(a,i,n,o,s,"next",A)}function s(A){xre(a,i,n,o,s,"throw",A)}o(void 0)})}};var vre,Cre;vre=k1();Cre=/*#__PURE__*/function(){function Cre(e,t){_class_call_check(this,Cre);this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new vre}_create_class(Cre,[{key:"isEmpty",value:function isEmpty(){return this._queue.length===0}},{key:"_tryToRun",value:function _tryToRun(){var e=this;return mre(function(){var t,i,n,a,o,s,A,u;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(e._running<1&&e._queue.length>0))return[3,2];e._running++;u=e._queue.shift();A=u.task,t=u.args,o=u.resolve,a=u.reject;return[4,mre(function(){var c;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,A.apply(void 0,_to_consumable_array(t))];case 1:return[2,(s=_state.sent(),function(){return o(s)})];case 2:c=_state.sent();return[2,(n=c,function(){return a(n)})];case 3:return[2]}})})()];case 1:return[2,(i=_state.sent(),e._running--,e._tryToRun(),i())];case 2:return[2]}})})()}},{key:"schedule",value:function schedule(e){for(var _len=arguments.length,t=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){t[_key-1]=arguments[_key]}var i,n,a;return a=n=null,i=new this.Promise(function(o,s){return a=o,n=s}),this._queue.push({task:e,args:t,resolve:a,reject:n}),this._tryToRun(),i}}]);return Cre}();Bre.exports=Cre});var yre=I(function(L8r,ytr){ytr.exports={version:"2.19.5"}});var Fre=I(function(H8r,Dre){"use strict";var Qtr=function Qtr(r,e){return Str(r)||wtr(r,e)||btr()};var btr=function btr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var wtr=function wtr(r,e){var t=[],i=!0,n=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));i=!0);}catch(A){n=!0,a=A}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw a}}return t};var Str=function Str(r){if(Array.isArray(r))return r};var Qre=function Qre(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var T1=function T1(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){Qre(a,i,n,o,s,"next",A)}function s(A){Qre(a,i,n,o,s,"throw",A)}o(void 0)})}};var bre,wre,Sre,_re,qre,H0;H0=la();bre=ws();_re=U0();Sre=G0();qre=M0();wre=(function(){var r=/*#__PURE__*/function(){function r(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,r);this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=t,H0.load(this.limiterOptions,this.defaults,this),this.Events=new bre(this),this.instances={},this.Bottleneck=P1(),this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new _re(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new Sre(Object.assign({},this.limiterOptions,{Events:this.Events}))))}_create_class(r,[{key:"key",value:function key(){var _this=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";var i;return(i=this.instances[t])!=null?i:function(){var n;return n=_this.instances[t]=new _this.Bottleneck(Object.assign(_this.limiterOptions,{id:"".concat(_this.id,"-").concat(t),timeout:_this.timeout,connection:_this.connection})),_this.Events.trigger("created",n,t),n}()}},{key:"deleteKey",value:function deleteKey(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";var i=this;return T1(function(){var n,a,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:a=i.instances[t];_tmp=i.connection;if(!_tmp)return[3,2];return[4,i.connection.__runCommand__(["del"].concat(_to_consumable_array(qre.allKeys("".concat(i.id,"-").concat(t)))))];case 1:_tmp=n=_state.sent();_state.label=2;case 2:_tmp;_tmp1=a!=null;if(!_tmp1)return[3,4];delete i.instances[t];return[4,a.disconnect()];case 3:_tmp1=_state.sent();_state.label=4;case 4:return[2,(_tmp1,a!=null||n>0)]}})})()}},{key:"limiters",value:function limiters(){var t,i,n,a;i=this.instances,n=[];for(t in i)a=i[t],n.push({key:t,limiter:a});return n}},{key:"keys",value:function keys(){return Object.keys(this.instances)}},{key:"clusterKeys",value:function clusterKeys(){var t=this;return T1(function(){var i,n,a,o,s,A,u,c,l,f,g;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(t.connection==null)return[2,t.Promise.resolve(t.keys())];A=[],i=null,l="b_".concat(t.id,"-").length,n=9;_state.label=1;case 1:if(!(i!==0))return[3,4];return[4,t.connection.__runCommand__(["scan",i!=null?i:0,"match","b_".concat(t.id,"-*_settings"),"count",1e4])];case 2:f=_state.sent(),g=Qtr(f,2);for(c=g[0],a=g[1],i=~~c,o=0,u=a.length;o<u;o++)s=a[o],A.push(s.slice(l,-n));_state.label=3;case 3:return[3,1];case 4:return[2,A]}})})()}},{key:"_startAutoCleanup",value:function _startAutoCleanup(){var t=this,i;return clearInterval(this.interval),typeof(i=this.interval=setInterval(T1(function(){var n,a,o,s,A,u,_tmp,_tmp1,_tmp2,_i1,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:A=Date.now(),o=t.instances,s=[];_tmp=o;_tmp1=[];for(_tmp2 in _tmp)_tmp1.push(_tmp2);_i1=0;_state.label=1;case 1:if(!(_i1<_tmp1.length))return[3,6];_tmp2=_tmp1[_i1];if(!(_tmp2 in _tmp))return[3,5];a=_tmp2;u=o[a];_state.label=2;case 2:_state.trys.push([2,4,,5]);return[4,u._store.__groupCheck__(A)];case 3:_state.sent()?s.push(t.deleteKey(a)):s.push(void 0);return[3,5];case 4:c=_state.sent();n=c,s.push(u.Events.trigger("error",n));return[3,5];case 5:_i1++;return[3,1];case 6:return[2,s]}})}),this.timeout/2)).unref=="function"?i.unref():void 0}},{key:"updateSettings",value:function updateSettings(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(H0.overwrite(t,this.defaults,this),H0.overwrite(t,t,this.limiterOptions),t.timeout!=null)return this._startAutoCleanup()}},{key:"disconnect",value:function disconnect(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;var i;if(!this.sharedConnection)return(i=this.connection)!=null?i.disconnect(t):void 0}}]);return r}();return r.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"},r}).call(void 0);Dre.exports=wre});var Tre=I(function(W8r,Ore){"use strict";var kre,Rre,Nre;Nre=la();Rre=ws();kre=(function(){var r=/*#__PURE__*/function(){function r(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,r);this.options=t,Nre.load(this.options,this.defaults,this),this.Events=new Rre(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_create_class(r,[{key:"_resetPromise",value:function _resetPromise(){var _this=this;return this._promise=new this.Promise(function(t,i){return _this._resolve=t})}},{key:"_flush",value:function _flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}},{key:"add",value:function add(t){var _this=this;var i;return this._arr.push(t),i=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(function(){return _this._flush()},this.maxTime)),i}}]);return r}();return r.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise},r}).call(void 0);Ore.exports=kre});var P1=I(function(J8r,zre){"use strict";var Pre=function Pre(r,e){return Lre(r)||_tr(r,e)||Gre()};var _tr=function _tr(r,e){var t=[],i=!0,n=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));i=!0);}catch(A){n=!0,a=A}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw a}}return t};var W0=function W0(r){return Lre(r)||qtr(r)||Gre()};var Gre=function Gre(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var qtr=function qtr(r){if(Symbol.iterator in Object(r)||Object.prototype.toString.call(r)==="[object Arguments]")return Array.from(r)};var Lre=function Lre(r){if(Array.isArray(r))return r};var Mre=function Mre(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var M1=function M1(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){Mre(a,i,n,o,s,"next",A)}function s(A){Mre(a,i,n,o,s,"throw",A)}o(void 0)})}};var Hre,Wre,U1,G1,Jre,L1,Kre,Vre,Yre,H1,bn,Ure=[].splice;L1=10;Wre=5;bn=la();Kre=Jee();G1=ere();Jre=are();Vre=gre();U1=ws();Yre=pre();H1=Ere();Hre=(function(){var r=/*#__PURE__*/function(){function r(){var _this=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var _len=arguments.length,i=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){i[_key-1]=arguments[_key]}_class_call_check(this,r);var n,a;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,i),bn.load(t,this.instanceDefaults,this),this._queues=new Kre(L1),this._scheduled={},this._states=new Yre(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new U1(this),this._submitLock=new H1("submit",this.Promise),this._registerLock=new H1("register",this.Promise),a=bn.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return n=bn.load(t,this.redisStoreDefaults,{}),new Vre(this,a,n);if(this.datastore==="local")return n=bn.load(t,this.localStoreDefaults,{}),new Jre(this,a,n);throw new r.prototype.BottleneckError("Invalid datastore type: ".concat(this.datastore))}).call(this),this._queues.on("leftzero",function(){var o;return(o=_this._store.heartbeat)!=null&&typeof o.ref=="function"?o.ref():void 0}),this._queues.on("zero",function(){var o;return(o=_this._store.heartbeat)!=null&&typeof o.unref=="function"?o.unref():void 0})}_create_class(r,[{key:"_validateOptions",value:function _validateOptions(t,i){if(!(t!=null&&(typeof t==="undefined"?"undefined":_type_of(t))=="object"&&i.length===0))throw new r.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}},{key:"ready",value:function ready(){return this._store.ready}},{key:"clients",value:function clients(){return this._store.clients}},{key:"channel",value:function channel(){return"b_".concat(this.id)}},{key:"channel_client",value:function channel_client(){return"b_".concat(this.id,"_").concat(this._store.clientId)}},{key:"publish",value:function publish(t){return this._store.__publish__(t)}},{key:"disconnect",value:function disconnect(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this._store.__disconnect__(t)}},{key:"chain",value:function chain(t){return this._limiter=t,this}},{key:"queued",value:function queued(t){return this._queues.queued(t)}},{key:"clusterQueued",value:function clusterQueued(){return this._store.__queued__()}},{key:"empty",value:function empty(){return this.queued()===0&&this._submitLock.isEmpty()}},{key:"running",value:function running(){return this._store.__running__()}},{key:"done",value:function done(){return this._store.__done__()}},{key:"jobStatus",value:function jobStatus(t){return this._states.jobStatus(t)}},{key:"jobs",value:function jobs(t){return this._states.statusJobs(t)}},{key:"counts",value:function counts(){return this._states.statusCounts()}},{key:"_randomIndex",value:function _randomIndex(){return Math.random().toString(36).slice(2)}},{key:"check",value:function check(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;return this._store.__check__(t)}},{key:"_clearGlobalState",value:function _clearGlobalState(t){return this._scheduled[t]!=null?(clearTimeout(this._scheduled[t].expiration),delete this._scheduled[t],!0):!1}},{key:"_free",value:function _free(t,i,n,a){var o=this;return M1(function(){var s,A,u,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,o._store.__free__(t,n.weight)];case 1:u=_state.sent();if(A=u.running,o.Events.trigger("debug","Freed ".concat(n.id),a),A===0&&o.empty())return[2,o.Events.trigger("idle")];return[3,3];case 2:c=_state.sent();return[2,(s=c,o.Events.trigger("error",s))];case 3:return[2]}})})()}},{key:"_run",value:function _run(t,i,n){var _this=this;var a,o,s;return i.doRun(),a=this._clearGlobalState.bind(this,t),s=this._run.bind(this,t,i),o=this._free.bind(this,t,i),this._scheduled[t]={timeout:setTimeout(function(){return i.doExecute(_this._limiter,a,s,o)},n),expiration:i.options.expiration!=null?setTimeout(function(){return i.doExpire(a,s,o)},n+i.options.expiration):void 0,job:i}}},{key:"_drainOne",value:function _drainOne(t){var _this=this;return this._registerLock.schedule(function(){var i,n,a,o,s;if(_this.queued()===0)return _this.Promise.resolve(null);s=_this._queues.getFirst();var A=a=s.first();return o=A.options,i=A.args,t!=null&&o.weight>t?_this.Promise.resolve(null):(_this.Events.trigger("debug","Draining ".concat(o.id),{args:i,options:o}),n=_this._randomIndex(),_this._store.__register__(n,o.weight,o.expiration).then(function(param){var u=param.success,c=param.wait,l=param.reservoir;var f;return _this.Events.trigger("debug","Drained ".concat(o.id),{success:u,args:i,options:o}),u?(s.shift(),f=_this.empty(),f&&_this.Events.trigger("empty"),l===0&&_this.Events.trigger("depleted",f),_this._run(n,a,c),_this.Promise.resolve(o.weight)):_this.Promise.resolve(null)}))})}},{key:"_drainAll",value:function _drainAll(t){var _this=this;var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._drainOne(t).then(function(n){var a;return n!=null?(a=t!=null?t-n:t,_this._drainAll(a,i+n)):_this.Promise.resolve(i)}).catch(function(n){return _this.Events.trigger("error",n)})}},{key:"_dropAllQueued",value:function _dropAllQueued(t){return this._queues.shiftAll(function(i){return i.doDrop({message:t})})}},{key:"stop",value:function stop(){var _this=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var i,n;return t=bn.load(t,this.stopDefaults),n=function(a){var o;return o=function(){var s;return s=_this._states.counts,s[0]+s[1]+s[2]+s[3]===a},new _this.Promise(function(s,A){return o()?s():_this.on("done",function(){if(o())return _this.removeAllListeners("done"),s()})})},i=t.dropWaitingJobs?(this._run=function i(a,o){return o.doDrop({message:t.dropErrorMessage})},this._drainOne=function(){return _this.Promise.resolve(null)},this._registerLock.schedule(function(){return _this._submitLock.schedule(function(){var a,o,s;o=_this._scheduled;for(a in o)s=o[a],_this.jobStatus(s.job.options.id)==="RUNNING"&&(clearTimeout(s.timeout),clearTimeout(s.expiration),s.job.doDrop({message:t.dropErrorMessage}));return _this._dropAllQueued(t.dropErrorMessage),n(0)})})):this.schedule({priority:L1-1,weight:0},function(){return n(1)}),this._receive=function(a){return a._reject(new r.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=function(){return _this.Promise.reject(new r.prototype.BottleneckError("stop() has already been called"))},i}},{key:"_addToQueue",value:function _addToQueue(t){var i=this;return M1(function(){var n,a,o,s,A,u,c,l,f,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:n=t.args,s=t.options;_state.label=1;case 1:_state.trys.push([1,3,,4]);return[4,i._store.__submit__(i.queued(),s.weight)];case 2:l=_state.sent();A=l.reachedHWM,a=l.blocked,c=l.strategy;return[3,4];case 3:f=_state.sent();return[2,(o=f,i.Events.trigger("debug","Could not queue ".concat(s.id),{args:n,options:s,error:o}),t.doDrop({error:o}),!1)];case 4:if(!a)return[3,5];_tmp=(t.doDrop(),!0);return[3,9];case 5:if(!(A&&(u=c===r.prototype.strategy.LEAK?i._queues.shiftLastFrom(s.priority):c===r.prototype.strategy.OVERFLOW_PRIORITY?i._queues.shiftLastFrom(s.priority+1):c===r.prototype.strategy.OVERFLOW?t:void 0,u!=null&&u.doDrop(),u==null||c===r.prototype.strategy.OVERFLOW)))return[3,6];_tmp1=(u==null&&t.doDrop(),A);return[3,8];case 6:t.doQueue(A,a),i._queues.push(t);return[4,i._drainAll()];case 7:_tmp1=(_state.sent(),A);_state.label=8;case 8:_tmp=_tmp1;_state.label=9;case 9:return[2,_tmp]}})})()}},{key:"_receive",value:function _receive(t){return this._states.jobStatus(t.options.id)!=null?(t._reject(new r.prototype.BottleneckError("A job with the same id already exists (id=".concat(t.options.id,")"))),!1):(t.doReceive(),this._submitLock.schedule(this._addToQueue,t))}},{key:"submit",value:function submit(){for(var _len=arguments.length,t=new Array(_len),_key=0;_key<_len;_key++){t[_key]=arguments[_key]}var _this=this;var i,n,a,o,s,A,u;if(typeof t[0]=="function"){var c,l,f,g;s=t,c=s,l=W0(c),n=l[0],t=l.slice(1),f=Ure.call(t,-1),g=Pre(f,1),i=g[0],o=bn.load({},this.jobDefaults)}else{var h,d,p,m;A=t,h=A,d=W0(h),o=d[0],n=d[1],t=d.slice(2),p=Ure.call(t,-1),m=Pre(p,1),i=m[0],o=bn.load(o,this.jobDefaults)}return u=function(){for(var _len=arguments.length,x=new Array(_len),_key=0;_key<_len;_key++){x[_key]=arguments[_key]}return new _this.Promise(function(v,E){return n.apply(void 0,_to_consumable_array(x).concat([function(){for(var _len=arguments.length,S=new Array(_len),_key=0;_key<_len;_key++){S[_key]=arguments[_key]}return(S[0]!=null?E:v)(S)}]))})},a=new G1(u,t,o,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),a.promise.then(function(x){return typeof i=="function"?i.apply(void 0,_to_consumable_array(x)):void 0}).catch(function(x){return Array.isArray(x)?typeof i=="function"?i.apply(void 0,_to_consumable_array(x)):void 0:typeof i=="function"?i(x):void 0}),this._receive(a)}},{key:"schedule",value:function schedule(){for(var _len=arguments.length,t=new Array(_len),_key=0;_key<_len;_key++){t[_key]=arguments[_key]}var i,n,a;if(typeof t[0]=="function"){var o=t,s=W0(o);a=s[0],t=s.slice(1),n={}}else{var A=t,u=W0(A);n=u[0],a=u[1],t=u.slice(2)}return i=new G1(a,t,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(i),i.promise}},{key:"wrap",value:function wrap(t){var i,n;return i=this.schedule.bind(this),n=function n(){for(var _len=arguments.length,o=new Array(_len),_key=0;_key<_len;_key++){o[_key]=arguments[_key]}return i.apply(void 0,[t.bind(this)].concat(_to_consumable_array(o)))},n.withOptions=function(a){for(var _len=arguments.length,o=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){o[_key-1]=arguments[_key]}return i.apply(void 0,[a,t].concat(_to_consumable_array(o)))},n}},{key:"updateSettings",value:function updateSettings(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var i=this;return M1(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,i._store.__updateSettings__(bn.overwrite(t,i.storeDefaults))];case 1:return[2,(_state.sent(),bn.overwrite(t,i.instanceDefaults,i),i)]}})})()}},{key:"currentReservoir",value:function currentReservoir(){return this._store.__currentReservoir__()}},{key:"incrementReservoir",value:function incrementReservoir(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this._store.__incrementReservoir__(t)}}]);return r}();return r.default=r,r.Events=U1,r.version=r.prototype.version=yre().version,r.strategy=r.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},r.BottleneckError=r.prototype.BottleneckError=Vc(),r.Group=r.prototype.Group=Fre(),r.RedisConnection=r.prototype.RedisConnection=U0(),r.IORedisConnection=r.prototype.IORedisConnection=G0(),r.Batcher=r.prototype.Batcher=Tre(),r.prototype.jobDefaults={priority:Wre,weight:1,expiration:null,id:"<no-id>"},r.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:r.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},r.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250},r.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},r.prototype.instanceDefaults={datastore:"local",connection:null,id:"<no-id>",rejectOnDrop:!0,trackDoneStatus:!1,Promise:Promise},r.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},r}).call(void 0);zre.exports=Hre});var Xre=I(function(K8r,jre){"use strict";jre.exports=P1()});var ktr={};cie(ktr,{default:function(){return ex}});module.exports=uie(ktr);var KMr=Le(fS()),VMr=Le(vK());var CK,hWe=(CK=globalThis.process)!=null?CK:{cwd:function cwd(){return"/"}};globalThis.process=hWe;var CV=Le(QK()),BV=require("obsidian");var Ei=require("obsidian");var PA=require("obsidian"),bK="https://dav.jianguoyun.com/nsdav",os="https://dav.jianguoyun.com/dav",wK="1.1.3";var pWe="0.13.26",xWe="0.14.6";var SK=!PA.Platform.isAndroidApp&&(0,PA.requireApiVersion)(pWe)||PA.Platform.isAndroidApp&&(0,PA.requireApiVersion)(xWe),_K=!1;var mt={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},hb={silent:{level:-1},fatal:{level:mt.fatal},error:{level:mt.error},warn:{level:mt.warn},log:{level:mt.log},info:{level:mt.info},success:{level:mt.success},fail:{level:mt.fail},ready:{level:mt.info},start:{level:mt.info},box:{level:mt.info},debug:{level:mt.debug},trace:{level:mt.trace},verbose:{level:mt.verbose}};function fb(r){if(r===null||(typeof r==="undefined"?"undefined":_type_of(r))!="object")return!1;var e=Object.getPrototypeOf(r);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in r?!1:Symbol.toStringTag in r?Object.prototype.toString.call(r)==="[object Module]":!0}function Ib(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".",i=arguments.length>3?arguments[3]:void 0;if(!fb(e))return Ib(r,{},t,i);var n=Object.assign({},e);for(var a in r){if(a==="__proto__"||a==="constructor")continue;var o=r[a];o!=null&&(i&&i(n,a,o,t)||(Array.isArray(o)&&Array.isArray(n[a])?n[a]=_to_consumable_array(o).concat(_to_consumable_array(n[a])):fb(o)&&fb(n[a])?n[a]=Ib(o,n[a],(t?"".concat(t,"."):"")+a.toString(),i):n[a]=o))}return n}function mWe(r){return function(){for(var _len=arguments.length,e=new Array(_len),_key=0;_key<_len;_key++){e[_key]=arguments[_key]}return e.reduce(function(t,i){return Ib(t,i,"",r)},{})}}var vWe=mWe();function CWe(r){return Object.prototype.toString.call(r)==="[object Object]"}function BWe(r){return!(!CWe(r)||!r.message&&!r.args||r.stack)}var gb=!1,qK=[],Mr=/*#__PURE__*/function(){"use strict";function Mr1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,Mr1);Ze(this,"options");Ze(this,"_lastLog");Ze(this,"_mockFn");var t=e.types||hb;this.options=vWe(_object_spread_props(_object_spread({},e),{defaults:_object_spread({},e.defaults),level:db(e.level,t),reporters:_to_consumable_array(e.reporters||[])}),{types:hb,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(var i in t){var n=_object_spread({type:i},this.options.defaults,t[i]);this[i]=this._wrapLogFn(n),this[i].raw=this._wrapLogFn(n,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}_create_class(Mr1,[{key:"level",get:function get(){return this.options.level},set:function set(e){this.options.level=db(e,this.options.types,this.options.level)}},{key:"prompt",value:function prompt1(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}},{key:"create",value:function create(e){var t=new Mr(_object_spread({},this.options,e));return this._mockFn&&t.mockTypes(this._mockFn),t}},{key:"withDefaults",value:function withDefaults(e){return this.create(_object_spread_props(_object_spread({},this.options),{defaults:_object_spread({},this.options.defaults,e)}))}},{key:"withTag",value:function withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}},{key:"addReporter",value:function addReporter(e){return this.options.reporters.push(e),this}},{key:"removeReporter",value:function removeReporter(e){if(e){var t=this.options.reporters.indexOf(e);if(t!==-1)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}},{key:"setReporters",value:function setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}},{key:"wrapAll",value:function wrapAll(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function restoreAll(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function wrapConsole(){for(var e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}},{key:"restoreConsole",value:function restoreConsole(){for(var e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}},{key:"wrapStd",value:function wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}},{key:"_wrapStream",value:function _wrapStream(e,t){var _this=this;e&&(e.__write||(e.__write=e.write),e.write=function(i){_this[t].raw(String(i).trim())})}},{key:"restoreStd",value:function restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}},{key:"_restoreStream",value:function _restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}},{key:"pauseLogs",value:function pauseLogs(){gb=!0}},{key:"resumeLogs",value:function resumeLogs(){gb=!1;var e=qK.splice(0);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;t[0]._logFn(t[1],t[2])}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}},{key:"mockTypes",value:function mockTypes(e){var t=e||this.options.mockFn;if(this._mockFn=t,typeof t=="function")for(var i in this.options.types)this[i]=t(i,this.options.types[i])||this[i],this[i].raw=this[i]}},{key:"_wrapLogFn",value:function _wrapLogFn(e,t){var _this=this;return function(){for(var _len=arguments.length,i=new Array(_len),_key=0;_key<_len;_key++){i[_key]=arguments[_key]}if(gb){qK.push([_this,e,i,t]);return}return _this._logFn(e,i,t)}}},{key:"_logFn",value:function _logFn(e,t,i){var _this=this;if((e.level||0)>this.level)return!1;var n=_object_spread_props(_object_spread({date:new Date,args:[]},e),{level:db(e.level,this.options.types)});!i&&t.length===1&&BWe(t[0])?Object.assign(n,t[0]):n.args=_to_consumable_array(t),n.message&&(n.args.unshift(n.message),delete n.message),n.additional&&(Array.isArray(n.additional)||(n.additional=n.additional.split("\n")),n.args.push("\n"+n.additional.join("\n")),delete n.additional),n.type=typeof n.type=="string"?n.type.toLowerCase():"log",n.tag=typeof n.tag=="string"?n.tag:"";var a=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;var A=(_this._lastLog.count||0)-_this.options.throttleMin;if(_this._lastLog.object&&A>0){var u=_to_consumable_array(_this._lastLog.object.args);A>1&&u.push("(repeated ".concat(A," times)")),_this._log(_object_spread_props(_object_spread({},_this._lastLog.object),{args:u})),_this._lastLog.count=1}s&&(_this._lastLog.object=n,_this._log(n))};clearTimeout(this._lastLog.timeout);var o=this._lastLog.time&&n.date?n.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=n.date,o<this.options.throttle)try{var s=JSON.stringify([n.type,n.tag,n.args]),A=this._lastLog.serialized===s;if(this._lastLog.serialized=s,A&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(a,this.options.throttle);return}}catch(s){}a(!0)}},{key:"_log",value:function _log(e){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=this.options.reporters[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;t.log(e,{options:this.options})}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}}]);return Mr1}();function db(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3;return r===void 0?t:typeof r=="number"?r:e[r]&&e[r].level!==void 0?e[r].level:t}Mr.prototype.add=Mr.prototype.addReporter;Mr.prototype.remove=Mr.prototype.removeReporter;Mr.prototype.clear=Mr.prototype.removeReporter;Mr.prototype.withScope=Mr.prototype.withTag;Mr.prototype.mock=Mr.prototype.mockTypes;Mr.prototype.pause=Mr.prototype.pauseLogs;Mr.prototype.resume=Mr.prototype.resumeLogs;function DK(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Mr(r)}var pb=/*#__PURE__*/function(){"use strict";function pb1(e){_class_call_check(this,pb1);Ze(this,"options");Ze(this,"defaultColor");Ze(this,"levelColorMap");Ze(this,"typeColorMap");this.options=_object_spread({},e),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_create_class(pb1,[{key:"_getLogFn",value:function _getLogFn(e){return e<1?console.__error||console.error:e===1?console.__warn||console.warn:console.__log||console.log}},{key:"log",value:function log(e){var t=this._getLogFn(e.level),i=e.type==="log"?"":e.type,n=e.tag||"",o="\n background: ".concat(this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n "),s="%c".concat([n,i].filter(Boolean).join(":"));typeof e.args[0]=="string"?t.apply(void 0,["".concat(s,"%c ").concat(e.args[0]),o,""].concat(_to_consumable_array(e.args.slice(1)))):t.apply(void 0,[s,o].concat(_to_consumable_array(e.args)))}}]);return pb1}();function xb(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return DK(_object_spread({reporters:r.reporters||[new pb({})],prompt:function prompt1(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.type==="confirm"?Promise.resolve(confirm(t)):Promise.resolve(prompt(t))}},r))}var _mr=xb();var EWe=xb({level:mt.verbose,formatOptions:{date:!0,colors:!1}}),z=EWe;var yWe=function(){return Ei.Platform.isWin?"Windows":Ei.Platform.isMacOS?"macOS":Ei.Platform.isLinux?"Linux":Ei.Platform.isAndroidApp?"Android":Ei.Platform.isIosApp?"iOS":"Unknown"},QWe=function(){return Ei.Platform.isTablet?"Tablet":Ei.Platform.isPhone?"Phone":Ei.Platform.isDesktopApp?"Desktop":Ei.Platform.isMobileApp?"Mobile":"Unknown"},Mmr="Obsidian (".concat(yWe(),"; ").concat(QWe(),"; ObsidianNutstoreSync/").concat(wK,")"),mb=/*#__PURE__*/function(Error1){"use strict";_inherits(mb1,Error1);function mb1(t){_class_call_check(this,mb1);var _this;_this=_call_super(this,mb1,["".concat(t.status,": ").concat(t.text)]);_this.res=t;return _this}return mb1}(_wrap_native_super(Error));function gn(r){return _async_to_generator(function(){var e,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:e=typeof r=="string"?{url:r,throw:!1}:_object_spread_props(_object_spread({},r),{throw:!1,headers:_object_spread({},r.headers||{})});return[4,(0,Ei.requestUrl)(e)];case 1:t=_state.sent();if(t.status>=400&&(z.error(t),typeof r=="string"||r.throw!==!1))throw new mb(t);return[2,t]}})})()}var bWe={2:function(r){var e=function e(n,a,o){_instanceof(n,RegExp)&&(n=t(n,o)),_instanceof(a,RegExp)&&(a=t(a,o));var s=i(n,a,o);return s&&{start:s[0],end:s[1],pre:o.slice(0,s[0]),body:o.slice(s[0]+n.length,s[1]),post:o.slice(s[1]+a.length)}};var t=function t(n,a){var o=a.match(n);return o?o[0]:null};var i=function i(n,a,o){var s,A,u,c,l,f=o.indexOf(n),g=o.indexOf(a,f+1),h=f;if(f>=0&&g>0){for(s=[],u=o.length;h>=0&&!l;)h==f?(s.push(h),f=o.indexOf(n,h+1)):s.length==1?l=[s.pop(),g]:((A=s.pop())<u&&(u=A,c=g),g=o.indexOf(a,h+1)),h=f<g&&f>=0?f:g;s.length&&(l=[u,c])}return l};r.exports=e,e.range=i},101:function(r,e,t){var i;r=t.nmd(r),function(n){var a=(r&&r.exports,(typeof global==="undefined"?"undefined":_type_of(global))=="object"&&global);a.global!==a&&a.window;var o=function o(l){this.message=l};(o.prototype=new Error).name="InvalidCharacterError";var s=function s(l){throw new o(l)},A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,c={encode:function encode(l){l=String(l),/[^\0-\xFF]/.test(l)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var f,g,h,d,p=l.length%3,m="",x=-1,v=l.length-p;++x<v;)f=l.charCodeAt(x)<<16,g=l.charCodeAt(++x)<<8,h=l.charCodeAt(++x),m+=A.charAt((d=f+g+h)>>18&63)+A.charAt(d>>12&63)+A.charAt(d>>6&63)+A.charAt(63&d);return p==2?(f=l.charCodeAt(x)<<8,g=l.charCodeAt(++x),m+=A.charAt((d=f+g)>>10)+A.charAt(d>>4&63)+A.charAt(d<<2&63)+"="):p==1&&(d=l.charCodeAt(x),m+=A.charAt(d>>2)+A.charAt(d<<4&63)+"=="),m},decode:function decode(l){var f=(l=String(l).replace(u,"")).length;f%4==0&&(f=(l=l.replace(/==?$/,"")).length),(f%4==1||/[^+a-zA-Z0-9/]/.test(l))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var g,h,d=0,p="",m=-1;++m<f;)h=A.indexOf(l.charAt(m)),g=d%4?64*g+h:h,d++%4&&(p+=String.fromCharCode(255&g>>(-2*d&6)));return p},version:"1.0.0"};(i=(function(){return c}).call(e,t,e,r))===void 0||(r.exports=i)}()},172:function(r,e){e.d=function(t){if(!t)return 0;for(var i=(t=t.toString()).length,n=t.length;n--;){var a=t.charCodeAt(n);56320<=a&&a<=57343&&n--,127<a&&a<=2047?i++:2047<a&&a<=65535&&(i+=2)}return i}},526:function(r){var e={utf8:{stringToBytes:function stringToBytes(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function bytesToString(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function stringToBytes(t){for(var i=[],n=0;n<t.length;n++)i.push(255&t.charCodeAt(n));return i},bytesToString:function bytesToString(t){for(var i=[],n=0;n<t.length;n++)i.push(String.fromCharCode(t[n]));return i.join("")}}};r.exports=e},298:function(r){var e,t;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function rotl(i,n){return i<<n|i>>>32-n},rotr:function rotr(i,n){return i<<32-n|i>>>n},endian:function endian(i){if(i.constructor==Number)return 0xff00ff&t.rotl(i,8)|0xff00ff00&t.rotl(i,24);for(var n=0;n<i.length;n++)i[n]=t.endian(i[n]);return i},randomBytes:function randomBytes(i){for(var n=[];i>0;i--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function bytesToWords(i){for(var n=[],a=0,o=0;a<i.length;a++,o+=8)n[o>>>5]|=i[a]<<24-o%32;return n},wordsToBytes:function wordsToBytes(i){for(var n=[],a=0;a<32*i.length;a+=8)n.push(i[a>>>5]>>>24-a%32&255);return n},bytesToHex:function bytesToHex(i){for(var n=[],a=0;a<i.length;a++)n.push((i[a]>>>4).toString(16)),n.push((15&i[a]).toString(16));return n.join("")},hexToBytes:function hexToBytes(i){for(var n=[],a=0;a<i.length;a+=2)n.push(parseInt(i.substr(a,2),16));return n},bytesToBase64:function bytesToBase64(i){for(var n=[],a=0;a<i.length;a+=3)for(var o=i[a]<<16|i[a+1]<<8|i[a+2],s=0;s<4;s++)8*a+6*s<=8*i.length?n.push(e.charAt(o>>>6*(3-s)&63)):n.push("=");return n.join("")},base64ToBytes:function base64ToBytes(i){i=i.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],a=0,o=0;a<i.length;o=++a%4)o!=0&&n.push((e.indexOf(i.charAt(a-1))&Math.pow(2,-2*o+8)-1)<<2*o|e.indexOf(i.charAt(a))>>>6-2*o);return n}},r.exports=t},635:function(r,e,t){var i=t(31),n=t(338),a=t(221);r.exports={XMLParser:n,XMLValidator:i,XMLBuilder:a}},118:function(r){r.exports=function(e){return typeof e=="function"?e:Array.isArray(e)?function(t){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var i=_step.value;if(typeof i=="string"&&t===i||_instanceof(i,RegExp)&&i.test(t))return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}:function(){return!1}}},705:function(r,e){var t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+t+"]["+t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",n=new RegExp("^"+i+"$");e.isExist=function(a){return a!==void 0},e.isEmptyObject=function(a){return Object.keys(a).length===0},e.merge=function(a,o,s){if(o){var A=Object.keys(o),u=A.length;for(var c=0;c<u;c++)a[A[c]]=s==="strict"?[o[A[c]]]:o[A[c]]}},e.getValue=function(a){return e.isExist(a)?a:""},e.isName=function(a){return n.exec(a)!=null},e.getAllMatches=function(a,o){var s=[],A=o.exec(a);for(;A;){var u=[];u.startIndex=o.lastIndex-A[0].length;var c=A.length;for(var l=0;l<c;l++)u.push(A[l]);s.push(u),A=o.exec(a)}return s},e.nameRegexp=i},31:function(r,e,t){var a=function a(x){return x===" "||x===" "||x==="\n"||x==="\r"};var o=function o(x,v){var E=v;for(;v<x.length;v++)if(!(x[v]!="?"&&x[v]!=" ")){var S=x.substr(E,v-E);if(v>5&&S==="xml")return h("InvalidXml","XML declaration allowed only at the start of the document.",p(x,v));if(x[v]=="?"&&x[v+1]==">"){v++;break}}return v};var s=function s(x,v){if(x.length>v+5&&x[v+1]==="-"&&x[v+2]==="-"){for(v+=3;v<x.length;v++)if(x[v]==="-"&&x[v+1]==="-"&&x[v+2]===">"){v+=2;break}}else if(x.length>v+8&&x[v+1]==="D"&&x[v+2]==="O"&&x[v+3]==="C"&&x[v+4]==="T"&&x[v+5]==="Y"&&x[v+6]==="P"&&x[v+7]==="E"){var E=1;for(v+=8;v<x.length;v++)if(x[v]==="<")E++;else if(x[v]===">"&&(E--,E===0))break}else if(x.length>v+9&&x[v+1]==="["&&x[v+2]==="C"&&x[v+3]==="D"&&x[v+4]==="A"&&x[v+5]==="T"&&x[v+6]==="A"&&x[v+7]==="["){for(v+=8;v<x.length;v++)if(x[v]==="]"&&x[v+1]==="]"&&x[v+2]===">"){v+=2;break}}return v};var c=function c(x,v){var E="",S="",B=!1;for(;v<x.length;v++){if(x[v]===A||x[v]===u)S===""?S=x[v]:S!==x[v]||(S="");else if(x[v]===">"&&S===""){B=!0;break}E+=x[v]}return S===""&&{value:E,index:v,tagClosed:B}};var f=function f(x,v){var E=i.getAllMatches(x,l),S={};for(var B=0;B<E.length;B++){if(E[B][1].length===0)return h("InvalidAttr","Attribute '"+E[B][2]+"' has no space in starting.",m(E[B]));if(E[B][3]!==void 0&&E[B][4]===void 0)return h("InvalidAttr","Attribute '"+E[B][2]+"' is without value.",m(E[B]));if(E[B][3]===void 0&&!v.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+E[B][2]+"' is not allowed.",m(E[B]));var b=E[B][2];if(!d(b))return h("InvalidAttr","Attribute '"+b+"' is an invalid name.",m(E[B]));if(S.hasOwnProperty(b))return h("InvalidAttr","Attribute '"+b+"' is repeated.",m(E[B]));S[b]=1}return!0};var g=function g(x,v){if(x[++v]===";")return-1;if(x[v]==="#")return function(S,B){var b=/\d/;for(S[B]==="x"&&(B++,b=/[\da-fA-F]/);B<S.length;B++){if(S[B]===";")return B;if(!S[B].match(b))break}return-1}(x,++v);var E=0;for(;v<x.length;v++,E++)if(!(x[v].match(/\w/)&&E<20)){if(x[v]===";")break;return-1}return v};var h=function h(x,v,E){return{err:{code:x,msg:v,line:E.line||E,col:E.col}}};var d=function d(x){return i.isName(x)};var p=function p(x,v){var E=x.substring(0,v).split(/\r?\n/);return{line:E.length,col:E[E.length-1].length+1}};var m=function m(x){return x.startIndex+x[1].length};var i=t(705),n={allowBooleanAttributes:!1,unpairedTags:[]};e.validate=function(x,v){v=Object.assign({},n,v);var E=[],S=!1,B=!1;x[0]==="\uFEFF"&&(x=x.substr(1));for(var C=0;C<x.length;C++)if(x[C]==="<"&&x[C+1]==="?"){if(C+=2,C=o(x,C),C.err)return C}else{if(x[C]!=="<"){if(a(x[C]))continue;return h("InvalidChar","char '"+x[C]+"' is not expected.",p(x,C))}{var y=C;if(C++,x[C]==="!"){C=s(x,C);continue}{var q=!1;x[C]==="/"&&(q=!0,C++);var w="";for(;C<x.length&&x[C]!==">"&&x[C]!==" "&&x[C]!==" "&&x[C]!=="\n"&&x[C]!=="\r";C++)w+=x[C];if(w=w.trim(),w[w.length-1]==="/"&&(w=w.substring(0,w.length-1),C--),b=w,!i.isName(b)){var M=void 0;return M=w.trim().length===0?"Invalid space after '<'.":"Tag '"+w+"' is an invalid name.",h("InvalidTag",M,p(x,C))}var N=c(x,C);if(N===!1)return h("InvalidAttr","Attributes for '"+w+"' have open quote.",p(x,C));var F=N.value;if(C=N.index,F[F.length-1]==="/"){var M1=C-F.length;F=F.substring(0,F.length-1);var U=f(F,v);if(U!==!0)return h(U.err.code,U.err.msg,p(x,M1+U.err.line));S=!0}else if(q){if(!N.tagClosed)return h("InvalidTag","Closing tag '"+w+"' doesn't have proper closing.",p(x,C));if(F.trim().length>0)return h("InvalidTag","Closing tag '"+w+"' can't have attributes or invalid starting.",p(x,y));if(E.length===0)return h("InvalidTag","Closing tag '"+w+"' has not been opened.",p(x,y));{var M2=E.pop();if(w!==M2.tagName){var U1=p(x,M2.tagStartPos);return h("InvalidTag","Expected closing tag '"+M2.tagName+"' (opened in line "+U1.line+", col "+U1.col+") instead of closing tag '"+w+"'.",p(x,y))}E.length==0&&(B=!0)}}else{var M3=f(F,v);if(M3!==!0)return h(M3.err.code,M3.err.msg,p(x,C-F.length+M3.err.line));if(B===!0)return h("InvalidXml","Multiple possible root nodes found.",p(x,C));v.unpairedTags.indexOf(w)!==-1||E.push({tagName:w,tagStartPos:y}),S=!0}for(C++;C<x.length;C++)if(x[C]==="<"){if(x[C+1]==="!"){C++,C=s(x,C);continue}if(x[C+1]!=="?")break;if(C=o(x,++C),C.err)return C}else if(x[C]==="&"){var M4=g(x,C);if(M4==-1)return h("InvalidChar","char '&' is not expected.",p(x,C));C=M4}else if(B===!0&&!a(x[C]))return h("InvalidXml","Extra text at the end",p(x,C));x[C]==="<"&&C--}}}var b;return S?E.length==1?h("InvalidTag","Unclosed tag '"+E[0].tagName+"'.",p(x,E[0].tagStartPos)):!(E.length>0)||h("InvalidXml","Invalid '"+JSON.stringify(E.map(function(C){return C.tagName}),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):h("InvalidXml","Start tag expected.",1)};var A='"',u="'";var l=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g")},221:function(r,e,t){var o=function o(c){this.options=Object.assign({},a,c),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=n(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=u),this.processTextOrObjNode=s,this.options.format?(this.indentate=A,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")};var s=function s(c,l,f,g){var h=this.j2x(c,f+1,g.concat(l));return c[this.options.textNodeName]!==void 0&&Object.keys(c).length===1?this.buildTextValNode(c[this.options.textNodeName],l,h.attrStr,f):this.buildObjectNode(h.val,l,h.attrStr,f)};var A=function A(c){return this.options.indentBy.repeat(c)};var u=function u(c){return!(!c.startsWith(this.options.attributeNamePrefix)||c===this.options.textNodeName)&&c.substr(this.attrPrefixLen)};var i=t(87),n=t(118),a={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function tagValueProcessor(c,l){return l},attributeValueProcessor:function attributeValueProcessor(c,l){return l},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};o.prototype.build=function(c){return this.options.preserveOrder?i(c,this.options):(Array.isArray(c)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(c=_define_property({},this.options.arrayNodeName,c)),this.j2x(c,0,[]).val)},o.prototype.j2x=function(c,l,f){var g="",h="",d=f.join(".");for(var p in c)if(Object.prototype.hasOwnProperty.call(c,p))if(c[p]===void 0)this.isAttribute(p)&&(h+="");else if(c[p]===null)this.isAttribute(p)?h+="":p[0]==="?"?h+=this.indentate(l)+"<"+p+"?"+this.tagEndChar:h+=this.indentate(l)+"<"+p+"/"+this.tagEndChar;else if(_instanceof(c[p],Date))h+=this.buildTextValNode(c[p],p,"",l);else if(_type_of(c[p])!="object"){var m=this.isAttribute(p);if(m&&!this.ignoreAttributesFn(m,d))g+=this.buildAttrPairStr(m,""+c[p]);else if(!m)if(p===this.options.textNodeName){var x=this.options.tagValueProcessor(p,""+c[p]);h+=this.replaceEntitiesValue(x)}else h+=this.buildTextValNode(c[p],p,"",l)}else if(Array.isArray(c[p])){var m1=c[p].length,x2="",v="";for(var E=0;E<m1;E++){var S=c[p][E];if(S!==void 0)if(S===null)p[0]==="?"?h+=this.indentate(l)+"<"+p+"?"+this.tagEndChar:h+=this.indentate(l)+"<"+p+"/"+this.tagEndChar;else if((typeof S==="undefined"?"undefined":_type_of(S))=="object")if(this.options.oneListGroup){var B=this.j2x(S,l+1,f.concat(p));x2+=B.val,this.options.attributesGroupName&&S.hasOwnProperty(this.options.attributesGroupName)&&(v+=B.attrStr)}else x2+=this.processTextOrObjNode(S,p,l,f);else if(this.options.oneListGroup){var B2=this.options.tagValueProcessor(p,S);B2=this.replaceEntitiesValue(B2),x2+=B2}else x2+=this.buildTextValNode(S,p,"",l)}this.options.oneListGroup&&(x2=this.buildObjectNode(x2,p,v,l)),h+=x2}else if(this.options.attributesGroupName&&p===this.options.attributesGroupName){var m2=Object.keys(c[p]),x3=m2.length;for(var v1=0;v1<x3;v1++)g+=this.buildAttrPairStr(m2[v1],""+c[p][m2[v1]])}else h+=this.processTextOrObjNode(c[p],p,l,f);return{attrStr:g,val:h}},o.prototype.buildAttrPairStr=function(c,l){return l=this.options.attributeValueProcessor(c,""+l),l=this.replaceEntitiesValue(l),this.options.suppressBooleanAttributes&&l==="true"?" "+c:" "+c+'="'+l+'"'},o.prototype.buildObjectNode=function(c,l,f,g){if(c==="")return l[0]==="?"?this.indentate(g)+"<"+l+f+"?"+this.tagEndChar:this.indentate(g)+"<"+l+f+this.closeTag(l)+this.tagEndChar;{var h="</"+l+this.tagEndChar,d="";return l[0]==="?"&&(d="?",h=""),!f&&f!==""||c.indexOf("<")!==-1?this.options.commentPropName!==!1&&l===this.options.commentPropName&&d.length===0?this.indentate(g)+"<!--".concat(c,"-->")+this.newLine:this.indentate(g)+"<"+l+f+d+this.tagEndChar+c+this.indentate(g)+h:this.indentate(g)+"<"+l+f+d+">"+c+h}},o.prototype.closeTag=function(c){var l="";return this.options.unpairedTags.indexOf(c)!==-1?this.options.suppressUnpairedNode||(l="/"):l=this.options.suppressEmptyNode?"/":"></".concat(c),l},o.prototype.buildTextValNode=function(c,l,f,g){if(this.options.cdataPropName!==!1&&l===this.options.cdataPropName)return this.indentate(g)+"<![CDATA[".concat(c,"]]>")+this.newLine;if(this.options.commentPropName!==!1&&l===this.options.commentPropName)return this.indentate(g)+"<!--".concat(c,"-->")+this.newLine;if(l[0]==="?")return this.indentate(g)+"<"+l+f+"?"+this.tagEndChar;{var h=this.options.tagValueProcessor(l,c);return h=this.replaceEntitiesValue(h),h===""?this.indentate(g)+"<"+l+f+this.closeTag(l)+this.tagEndChar:this.indentate(g)+"<"+l+f+">"+h+"</"+l+this.tagEndChar}},o.prototype.replaceEntitiesValue=function(c){if(c&&c.length>0&&this.options.processEntities)for(var l=0;l<this.options.entities.length;l++){var f=this.options.entities[l];c=c.replace(f.regex,f.val)}return c},r.exports=o},87:function(r){var t=function t(o){var s=Object.keys(o);for(var A=0;A<s.length;A++){var u=s[A];if(o.hasOwnProperty(u)&&u!==":@")return u}};var i=function i(o,s){var A="";if(o&&!s.ignoreAttributes)for(var u in o){if(!o.hasOwnProperty(u))continue;var c=s.attributeValueProcessor(u,o[u]);c=a(c,s),c===!0&&s.suppressBooleanAttributes?A+=" ".concat(u.substr(s.attributeNamePrefix.length)):A+=" ".concat(u.substr(s.attributeNamePrefix.length),'="').concat(c,'"')}return A};var n=function n(o,s){var A=(o=o.substr(0,o.length-s.textNodeName.length-1)).substr(o.lastIndexOf(".")+1);for(var u in s.stopNodes)if(s.stopNodes[u]===o||s.stopNodes[u]==="*."+A)return!0;return!1};var a=function a(o,s){if(o&&o.length>0&&s.processEntities)for(var A=0;A<s.entities.length;A++){var u=s.entities[A];o=o.replace(u.regex,u.val)}return o};function e(o,s,A,u){var c="",l=!1;for(var f=0;f<o.length;f++){var g=o[f],h=t(g);if(h===void 0)continue;var d="";if(d=A.length===0?h:"".concat(A,".").concat(h),h===s.textNodeName){var v=g[h];n(d,s)||(v=s.tagValueProcessor(h,v),v=a(v,s)),l&&(c+=u),c+=v,l=!1;continue}if(h===s.cdataPropName){l&&(c+=u),c+="<![CDATA[".concat(g[h][0][s.textNodeName],"]]>"),l=!1;continue}if(h===s.commentPropName){c+=u+"<!--".concat(g[h][0][s.textNodeName],"-->"),l=!0;continue}if(h[0]==="?"){var v1=i(g[":@"],s),E=h==="?xml"?"":u,S=g[h][0][s.textNodeName];S=S.length!==0?" "+S:"",c+=E+"<".concat(h).concat(S).concat(v1,"?>"),l=!0;continue}var p=u;p!==""&&(p+=s.indentBy);var m=u+"<".concat(h).concat(i(g[":@"],s)),x=e(g[h],s,d,p);s.unpairedTags.indexOf(h)!==-1?s.suppressUnpairedNode?c+=m+">":c+=m+"/>":x&&x.length!==0||!s.suppressEmptyNode?x&&x.endsWith(">")?c+=m+">".concat(x).concat(u,"</").concat(h,">"):(c+=m+">",x&&u!==""&&(x.includes("/>")||x.includes("</"))?c+=u+s.indentBy+x+u:c+=x,c+="</".concat(h,">")):c+=m+"/>",l=!0}return c}r.exports=function(o,s){var A="";return s.format&&s.indentBy.length>0&&(A="\n"),e(o,s,"",A)}},193:function(r,e,t){var n=function n(l,f){var g="";for(;f<l.length&&l[f]!=="'"&&l[f]!=='"';f++)g+=l[f];if(g=g.trim(),g.indexOf(" ")!==-1)throw new Error("External entites are not supported");var h=l[f++],d="";for(;f<l.length&&l[f]!==h;f++)d+=l[f];return[g,d,f]};var a=function a(l,f){return l[f+1]==="!"&&l[f+2]==="-"&&l[f+3]==="-"};var o=function o(l,f){return l[f+1]==="!"&&l[f+2]==="E"&&l[f+3]==="N"&&l[f+4]==="T"&&l[f+5]==="I"&&l[f+6]==="T"&&l[f+7]==="Y"};var s=function s(l,f){return l[f+1]==="!"&&l[f+2]==="E"&&l[f+3]==="L"&&l[f+4]==="E"&&l[f+5]==="M"&&l[f+6]==="E"&&l[f+7]==="N"&&l[f+8]==="T"};var A=function A(l,f){return l[f+1]==="!"&&l[f+2]==="A"&&l[f+3]==="T"&&l[f+4]==="T"&&l[f+5]==="L"&&l[f+6]==="I"&&l[f+7]==="S"&&l[f+8]==="T"};var u=function u(l,f){return l[f+1]==="!"&&l[f+2]==="N"&&l[f+3]==="O"&&l[f+4]==="T"&&l[f+5]==="A"&&l[f+6]==="T"&&l[f+7]==="I"&&l[f+8]==="O"&&l[f+9]==="N"};var c=function c(l){if(i.isName(l))return l;throw new Error("Invalid entity name ".concat(l))};var i=t(705);r.exports=function(l,f){var g={};if(l[f+3]!=="O"||l[f+4]!=="C"||l[f+5]!=="T"||l[f+6]!=="Y"||l[f+7]!=="P"||l[f+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{f+=9;var h=1,d=!1,p=!1,m="";for(;f<l.length;f++)if(l[f]!=="<"||p)if(l[f]===">"){if(p?l[f-1]==="-"&&l[f-2]==="-"&&(p=!1,h--):h--,h===0)break}else l[f]==="["?d=!0:m+=l[f];else{if(d&&o(l,f)){var x=void 0,v=void 0;var ref;f+=7,ref=_sliced_to_array(n(l,f+1),3),x=ref[0],v=ref[1],f=ref[2],ref,v.indexOf("&")===-1&&(g[c(x)]={regx:RegExp("&".concat(x,";"),"g"),val:v})}else if(d&&s(l,f))f+=8;else if(d&&A(l,f))f+=8;else if(d&&u(l,f))f+=9;else{if(!a)throw new Error("Invalid DOCTYPE");p=!0}h++,m=""}if(h!==0)throw new Error("Unclosed DOCTYPE")}return{entities:g,i:f}}},63:function(r,e){var t={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function tagValueProcessor(i,n){return n},attributeValueProcessor:function attributeValueProcessor(i,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function updateTag(i,n,a){return i}};e.buildOptions=function(i){return Object.assign({},t,i)},e.defaultOptions=t},299:function(r,e,t){var A=function A(B){var b=Object.keys(B);for(var C=0;C<b.length;C++){var y=b[C];this.lastEntities[y]={regex:new RegExp("&"+y+";","g"),val:B[y]}}};var u=function u(B,b,C,y,q,w,N){if(B!==void 0&&(this.options.trimValues&&!y&&(B=B.trim()),B.length>0)){N||(B=this.replaceEntitiesValue(B));var F=this.options.tagValueProcessor(b,B,C,q,w);return F==null?B:(typeof F==="undefined"?"undefined":_type_of(F))!=(typeof B==="undefined"?"undefined":_type_of(B))||F!==B?F:this.options.trimValues||B.trim()===B?S(B,this.options.parseTagValue,this.options.numberParseOptions):B}};var c=function c(B){if(this.options.removeNSPrefix){var b=B.split(":"),C=B.charAt(0)==="/"?"/":"";if(b[0]==="xmlns")return"";b.length===2&&(B=C+b[1])}return B};var f=function f(B,b,C){if(this.options.ignoreAttributes!==!0&&typeof B=="string"){var y=i.getAllMatches(B,l),q=y.length,w={};for(var N=0;N<q;N++){var F=this.resolveNameSpace(y[N][1]);if(this.ignoreAttributesFn(F,b))continue;var M=y[N][4],U=this.options.attributeNamePrefix+F;if(F.length)if(this.options.transformAttributeName&&(U=this.options.transformAttributeName(U)),U==="__proto__"&&(U="#__proto__"),M!==void 0){this.options.trimValues&&(M=M.trim()),M=this.replaceEntitiesValue(M);var G=this.options.attributeValueProcessor(F,M,b);w[U]=G==null?M:(typeof G==="undefined"?"undefined":_type_of(G))!=(typeof M==="undefined"?"undefined":_type_of(M))||G!==M?G:S(M,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(w[U]=!0)}if(!Object.keys(w).length)return;if(this.options.attributesGroupName){var N1={};return N1[this.options.attributesGroupName]=w,N1}return w}};var h=function h(B,b,C){var y=this.options.updateTag(b.tagname,C,b[":@"]);y===!1||(typeof y=="string"&&(b.tagname=y),B.addChild(b))};var p=function p(B,b,C,y){return B&&(y===void 0&&(y=Object.keys(b.child).length===0),(B=this.parseTextData(B,b.tagname,C,!1,!!b[":@"]&&Object.keys(b[":@"]).length!==0,y))!==void 0&&B!==""&&b.add(this.options.textNodeName,B),B=""),B};var m=function m(B,b,C){var y="*."+C;for(var q in B){var w=B[q];if(y===w||b===w)return!0}return!1};var x=function x(B,b,C,y){var q=B.indexOf(b,C);if(q===-1)throw new Error(y);return q+b.length-1};var v=function v(B,b,C){var y=function(G,K){var ce,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",Ce="";for(var L=K;L<G.length;L++){var Ae=G[L];if(ce)Ae===ce&&(ce="");else if(Ae==='"'||Ae==="'")ce=Ae;else if(Ae===J[0]){if(!J[1])return{data:Ce,index:L};if(G[L+1]===J[1])return{data:Ce,index:L}}else Ae===" "&&(Ae=" ");Ce+=Ae}}(B,b+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!y)return;var q=y.data,w=y.index,N=q.search(/\s/),F=q,M=!0;N!==-1&&(F=q.substring(0,N),q=q.substring(N+1).trimStart());var U=F;if(C){var G=F.indexOf(":");G!==-1&&(F=F.substr(G+1),M=F!==y.data.substr(G+1))}return{tagName:F,tagExp:q,closeIndex:w,attrExpPresent:M,rawTagName:U}};var E=function E(B,b,C){var y=C,q=1;for(;C<B.length;C++)if(B[C]==="<")if(B[C+1]==="/"){var w=x(B,">",C,"".concat(b," is not closed"));if(B.substring(C+2,w).trim()===b&&(q--,q===0))return{tagContent:B.substring(y,C),i:w};C=w}else if(B[C+1]==="?")C=x(B,"?>",C+1,"StopNode is not closed.");else if(B.substr(C+1,3)==="!--")C=x(B,"-->",C+3,"StopNode is not closed.");else if(B.substr(C+1,2)==="![")C=x(B,"]]>",C,"StopNode is not closed.")-2;else{var w2=v(B,C,">");w2&&((w2&&w2.tagName)===b&&w2.tagExp[w2.tagExp.length-1]!=="/"&&q++,C=w2.closeIndex)}};var S=function S(B,b,C){if(b&&typeof B=="string"){var y=B.trim();return y==="true"||y!=="false"&&o(B,C)}return i.isExist(B)?B:""};var i=t(705),n=t(365),a=t(193),o=t(494),s=t(118);var l=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");var g=function g(B){B=B.replace(/\r\n?/g,"\n");var b=new n("!xml"),C=b,y="",q="";for(var w=0;w<B.length;w++)if(B[w]==="<")if(B[w+1]==="/"){var N=x(B,">",w,"Closing Tag is not closed."),F=B.substring(w+2,N).trim();if(this.options.removeNSPrefix){var G=F.indexOf(":");G!==-1&&(F=F.substr(G+1))}this.options.transformTagName&&(F=this.options.transformTagName(F)),C&&(y=this.saveTextToParentTag(y,C,q));var M=q.substring(q.lastIndexOf(".")+1);if(F&&this.options.unpairedTags.indexOf(F)!==-1)throw new Error("Unpaired tag can not be used as closing tag: </".concat(F,">"));var U=0;M&&this.options.unpairedTags.indexOf(M)!==-1?(U=q.lastIndexOf(".",q.lastIndexOf(".")-1),this.tagsNodeStack.pop()):U=q.lastIndexOf("."),q=q.substring(0,U),C=this.tagsNodeStack.pop(),y="",w=N}else if(B[w+1]==="?"){var N1=v(B,w,!1,"?>");if(!N1)throw new Error("Pi Tag is not closed.");if(y=this.saveTextToParentTag(y,C,q),!(this.options.ignoreDeclaration&&N1.tagName==="?xml"||this.options.ignorePiTags)){var F1=new n(N1.tagName);F1.add(this.options.textNodeName,""),N1.tagName!==N1.tagExp&&N1.attrExpPresent&&(F1[":@"]=this.buildAttributesMap(N1.tagExp,q,N1.tagName)),this.addChild(C,F1,q)}w=N1.closeIndex+1}else if(B.substr(w+1,3)==="!--"){var N3=x(B,"-->",w+4,"Comment is not closed.");if(this.options.commentPropName){var F2=B.substring(w+4,N3-2);y=this.saveTextToParentTag(y,C,q),C.add(this.options.commentPropName,[_define_property({},this.options.textNodeName,F2)])}w=N3}else if(B.substr(w+1,2)==="!D"){var N4=a(B,w);this.docTypeEntities=N4.entities,w=N4.i}else if(B.substr(w+1,2)==="!["){var N5=x(B,"]]>",w,"CDATA is not closed.")-2,F3=B.substring(w+9,N5);y=this.saveTextToParentTag(y,C,q);var M1=this.parseTextData(F3,C.tagname,q,!0,!1,!0,!0);M1==null&&(M1=""),this.options.cdataPropName?C.add(this.options.cdataPropName,[_define_property({},this.options.textNodeName,F3)]):C.add(this.options.textNodeName,M1),w=N5+2}else{var N6=v(B,w,this.options.removeNSPrefix),F5=N6.tagName,M2=N6.rawTagName,U1=N6.tagExp,G1=N6.attrExpPresent,K=N6.closeIndex;this.options.transformTagName&&(F5=this.options.transformTagName(F5)),C&&y&&C.tagname!=="!xml"&&(y=this.saveTextToParentTag(y,C,q,!1));var ce=C;if(ce&&this.options.unpairedTags.indexOf(ce.tagname)!==-1&&(C=this.tagsNodeStack.pop(),q=q.substring(0,q.lastIndexOf("."))),F5!==b.tagname&&(q+=q?"."+F5:F5),this.isItStopNode(this.options.stopNodes,q,F5)){var J="";if(U1.length>0&&U1.lastIndexOf("/")===U1.length-1)F5[F5.length-1]==="/"?(F5=F5.substr(0,F5.length-1),q=q.substr(0,q.length-1),U1=F5):U1=U1.substr(0,U1.length-1),w=N6.closeIndex;else if(this.options.unpairedTags.indexOf(F5)!==-1)w=N6.closeIndex;else{var L=this.readStopNodeData(B,M2,K+1);if(!L)throw new Error("Unexpected end of ".concat(M2));w=L.i,J=L.tagContent}var Ce=new n(F5);F5!==U1&&G1&&(Ce[":@"]=this.buildAttributesMap(U1,q,F5)),J&&(J=this.parseTextData(J,F5,q,!0,G1,!0,!0)),q=q.substr(0,q.lastIndexOf(".")),Ce.add(this.options.textNodeName,J),this.addChild(C,Ce,q)}else{if(U1.length>0&&U1.lastIndexOf("/")===U1.length-1){F5[F5.length-1]==="/"?(F5=F5.substr(0,F5.length-1),q=q.substr(0,q.length-1),U1=F5):U1=U1.substr(0,U1.length-1),this.options.transformTagName&&(F5=this.options.transformTagName(F5));var J3=new n(F5);F5!==U1&&G1&&(J3[":@"]=this.buildAttributesMap(U1,q,F5)),this.addChild(C,J3,q),q=q.substr(0,q.lastIndexOf("."))}else{var J4=new n(F5);this.tagsNodeStack.push(C),F5!==U1&&G1&&(J4[":@"]=this.buildAttributesMap(U1,q,F5)),this.addChild(C,J4,q),C=J4}y="",w=K}}else y+=B[w];return b.child};var d=function d(B){if(this.options.processEntities){for(var b in this.docTypeEntities){var C=this.docTypeEntities[b];B=B.replace(C.regx,C.val)}for(var b3 in this.lastEntities){var C2=this.lastEntities[b3];B=B.replace(C2.regex,C2.val)}if(this.options.htmlEntities)for(var b4 in this.htmlEntities){var C3=this.htmlEntities[b4];B=B.replace(C3.regex,C3.val)}B=B.replace(this.ampEntity.regex,this.ampEntity.val)}return B};r.exports=function _class(B){"use strict";_class_call_check(this,_class);this.options=B,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:function(b,C){return String.fromCharCode(Number.parseInt(C,10))}},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:function(b,C){return String.fromCharCode(Number.parseInt(C,16))}}},this.addExternalEntities=A,this.parseXml=g,this.parseTextData=u,this.resolveNameSpace=c,this.buildAttributesMap=f,this.isItStopNode=m,this.replaceEntitiesValue=d,this.readStopNodeData=E,this.saveTextToParentTag=p,this.addChild=h,this.ignoreAttributesFn=s(this.options.ignoreAttributes)}},338:function(r,e,t){var _t=t(63),i=_t.buildOptions,n=t(299),_t1=t(728),a=_t1.prettify,o=t(31);r.exports=/*#__PURE__*/function(){"use strict";function _class(s){_class_call_check(this,_class);this.externalEntities={},this.options=i(s)}_create_class(_class,[{key:"parse",value:function parse(s,A){if(typeof s!="string"){if(!s.toString)throw new Error("XML data is accepted in String or Bytes[] form.");s=s.toString()}if(A){A===!0&&(A={});var l=o.validate(s,A);if(l!==!0)throw Error("".concat(l.err.msg,":").concat(l.err.line,":").concat(l.err.col))}var u=new n(this.options);u.addExternalEntities(this.externalEntities);var c=u.parseXml(s);return this.options.preserveOrder||c===void 0?c:a(c,this.options)}},{key:"addEntity",value:function addEntity(s,A){if(A.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(s.indexOf("&")!==-1||s.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(A==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[s]=A}}]);return _class}()},728:function(r,e){var i=function i(o){var s=Object.keys(o);for(var A=0;A<s.length;A++){var u=s[A];if(u!==":@")return u}};var n=function n(o,s,A,u){if(s){var c=Object.keys(s),l=c.length;for(var f=0;f<l;f++){var g=c[f];u.isArray(g,A+"."+g,!0,!0)?o[g]=[s[g]]:o[g]=s[g]}}};var a=function a(o,s){var A=s.textNodeName,u=Object.keys(o).length;return u===0||!(u!==1||!o[A]&&typeof o[A]!="boolean"&&o[A]!==0)};function t(o,s,A){var u,c={};for(var l=0;l<o.length;l++){var f=o[l],g=i(f),h="";if(h=A===void 0?g:A+"."+g,g===s.textNodeName)u===void 0?u=f[g]:u+=""+f[g];else{if(g===void 0)continue;if(f[g]){var d=t(f[g],s,h),p=a(d,s);f[":@"]?n(d,f[":@"],h,s):Object.keys(d).length!==1||d[s.textNodeName]===void 0||s.alwaysCreateTextNode?Object.keys(d).length===0&&(s.alwaysCreateTextNode?d[s.textNodeName]="":d=""):d=d[s.textNodeName],c[g]!==void 0&&c.hasOwnProperty(g)?(Array.isArray(c[g])||(c[g]=[c[g]]),c[g].push(d)):s.isArray(g,h,p)?c[g]=[d]:c[g]=d}}}return typeof u=="string"?u.length>0&&(c[s.textNodeName]=u):u!==void 0&&(c[s.textNodeName]=u),c}e.prettify=function(o,s){return t(o,s)}},365:function(r){r.exports=/*#__PURE__*/function(){"use strict";function _class(e){_class_call_check(this,_class);this.tagname=e,this.child=[],this[":@"]={}}_create_class(_class,[{key:"add",value:function add(e,t){e==="__proto__"&&(e="#__proto__"),this.child.push(_define_property({},e,t))}},{key:"addChild",value:function addChild(e){var _obj;e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push((_obj={},_define_property(_obj,e.tagname,e.child),_define_property(_obj,":@",e[":@"]),_obj)):this.child.push(_define_property({},e.tagname,e.child))}}]);return _class}()},135:function(r){var e=function e(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};r.exports=function(t){return t!=null&&(e(t)||function(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&e(i.slice(0,0))}(t)||!!t._isBuffer)}},542:function(r,e,t){(function(){var i=t(298),n=t(526).utf8,a=t(135),o=t(526).bin,s=function s2(A,u){A.constructor==String?A=u&&u.encoding==="binary"?o.stringToBytes(A):n.stringToBytes(A):a(A)?A=Array.prototype.slice.call(A,0):Array.isArray(A)||A.constructor===Uint8Array||(A=A.toString());for(var c=i.bytesToWords(A),l=8*A.length,f=0x67452301,g=-0x10325477,h=-0x67452302,d=0x10325476,p=0;p<c.length;p++)c[p]=0xff00ff&(c[p]<<8|c[p]>>>24)|0xff00ff00&(c[p]<<24|c[p]>>>8);c[l>>>5]|=128<<l%32,c[14+(l+64>>>9<<4)]=l;var m=s._ff,x=s._gg,v=s._hh,E=s._ii;for(p=0;p<c.length;p+=16){var S=f,B=g,b=h,C=d;f=m(f,g,h,d,c[p+0],7,-0x28955b88),d=m(d,f,g,h,c[p+1],12,-0x173848aa),h=m(h,d,f,g,c[p+2],17,0x242070db),g=m(g,h,d,f,c[p+3],22,-0x3e423112),f=m(f,g,h,d,c[p+4],7,-0xa83f051),d=m(d,f,g,h,c[p+5],12,0x4787c62a),h=m(h,d,f,g,c[p+6],17,-0x57cfb9ed),g=m(g,h,d,f,c[p+7],22,-0x2b96aff),f=m(f,g,h,d,c[p+8],7,0x698098d8),d=m(d,f,g,h,c[p+9],12,-0x74bb0851),h=m(h,d,f,g,c[p+10],17,-42063),g=m(g,h,d,f,c[p+11],22,-0x76a32842),f=m(f,g,h,d,c[p+12],7,0x6b901122),d=m(d,f,g,h,c[p+13],12,-0x2678e6d),h=m(h,d,f,g,c[p+14],17,-0x5986bc72),f=x(f,g=m(g,h,d,f,c[p+15],22,0x49b40821),h,d,c[p+1],5,-0x9e1da9e),d=x(d,f,g,h,c[p+6],9,-0x3fbf4cc0),h=x(h,d,f,g,c[p+11],14,0x265e5a51),g=x(g,h,d,f,c[p+0],20,-0x16493856),f=x(f,g,h,d,c[p+5],5,-0x29d0efa3),d=x(d,f,g,h,c[p+10],9,0x2441453),h=x(h,d,f,g,c[p+15],14,-0x275e197f),g=x(g,h,d,f,c[p+4],20,-0x182c0438),f=x(f,g,h,d,c[p+9],5,0x21e1cde6),d=x(d,f,g,h,c[p+14],9,-0x3cc8f82a),h=x(h,d,f,g,c[p+3],14,-0xb2af279),g=x(g,h,d,f,c[p+8],20,0x455a14ed),f=x(f,g,h,d,c[p+13],5,-0x561c16fb),d=x(d,f,g,h,c[p+2],9,-0x3105c08),h=x(h,d,f,g,c[p+7],14,0x676f02d9),f=v(f,g=x(g,h,d,f,c[p+12],20,-0x72d5b376),h,d,c[p+5],4,-378558),d=v(d,f,g,h,c[p+8],11,-0x788e097f),h=v(h,d,f,g,c[p+11],16,0x6d9d6122),g=v(g,h,d,f,c[p+14],23,-0x21ac7f4),f=v(f,g,h,d,c[p+1],4,-0x5b4115bc),d=v(d,f,g,h,c[p+4],11,0x4bdecfa9),h=v(h,d,f,g,c[p+7],16,-0x944b4a0),g=v(g,h,d,f,c[p+10],23,-0x41404390),f=v(f,g,h,d,c[p+13],4,0x289b7ec6),d=v(d,f,g,h,c[p+0],11,-0x155ed806),h=v(h,d,f,g,c[p+3],16,-0x2b10cf7b),g=v(g,h,d,f,c[p+6],23,0x4881d05),f=v(f,g,h,d,c[p+9],4,-0x262b2fc7),d=v(d,f,g,h,c[p+12],11,-0x1924661b),h=v(h,d,f,g,c[p+15],16,0x1fa27cf8),f=E(f,g=v(g,h,d,f,c[p+2],23,-0x3b53a99b),h,d,c[p+0],6,-0xbd6ddbc),d=E(d,f,g,h,c[p+7],10,0x432aff97),h=E(h,d,f,g,c[p+14],15,-0x546bdc59),g=E(g,h,d,f,c[p+5],21,-0x36c5fc7),f=E(f,g,h,d,c[p+12],6,0x655b59c3),d=E(d,f,g,h,c[p+3],10,-0x70f3336e),h=E(h,d,f,g,c[p+10],15,-1051523),g=E(g,h,d,f,c[p+1],21,-0x7a7ba22f),f=E(f,g,h,d,c[p+8],6,0x6fa87e4f),d=E(d,f,g,h,c[p+15],10,-0x1d31920),h=E(h,d,f,g,c[p+6],15,-0x5cfebcec),g=E(g,h,d,f,c[p+13],21,0x4e0811a1),f=E(f,g,h,d,c[p+4],6,-0x8ac817e),d=E(d,f,g,h,c[p+11],10,-0x42c50dcb),h=E(h,d,f,g,c[p+2],15,0x2ad7d2bb),g=E(g,h,d,f,c[p+9],21,-0x14792c6f),f=f+S>>>0,g=g+B>>>0,h=h+b>>>0,d=d+C>>>0}return i.endian([f,g,h,d])};s._ff=function(A,u,c,l,f,g,h){var d=A+(u&c|~u&l)+(f>>>0)+h;return(d<<g|d>>>32-g)+u},s._gg=function(A,u,c,l,f,g,h){var d=A+(u&l|c&~l)+(f>>>0)+h;return(d<<g|d>>>32-g)+u},s._hh=function(A,u,c,l,f,g,h){var d=A+(u^c^l)+(f>>>0)+h;return(d<<g|d>>>32-g)+u},s._ii=function(A,u,c,l,f,g,h){var d=A+(c^(u|~l))+(f>>>0)+h;return(d<<g|d>>>32-g)+u},s._blocksize=16,s._digestsize=16,r.exports=function(A,u){if(A==null)throw new Error("Illegal argument "+A);var c=i.wordsToBytes(s(A,u));return u&&u.asBytes?c:u&&u.asString?o.bytesToString(c):i.bytesToHex(c)}})()},285:function(r,e,t){var u=function u(m){return parseInt(m,10)==m?parseInt(m,10):m.charCodeAt(0)};var c=function c(m){return m.split(n).join("\\").split(a).join("{").split(o).join("}").split(s).join(",").split(A).join(".")};var f=function f(m){return"{"+m+"}"};var g=function g(m){return/^-?0\d/.test(m)};var h=function h(m,x){return m<=x};var d=function d(m,x){return m>=x};var i=t(2);r.exports=function(m){return m?(m.substr(0,2)==="{}"&&(m="\\{\\}"+m.substr(2)),p(function(x){return x.split("\\\\").join(n).split("\\{").join(a).split("\\}").join(o).split("\\,").join(s).split("\\.").join(A)}(m),!0).map(c)):[]};var n="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",s="\0COMMA"+Math.random()+"\0",A="\0PERIOD"+Math.random()+"\0";function l(m){if(!m)return[""];var x=[],v=i("{","}",m);if(!v)return m.split(",");var E=v.pre,S=v.body,B=v.post,b=E.split(",");b[b.length-1]+="{"+S+"}";var C=l(B);return B.length&&(b[b.length-1]+=C.shift(),b.push.apply(b,C)),x.push.apply(x,b),x}function p(m,x){var v=[],E=i("{","}",m);if(!E)return[m];var S=E.pre,B=E.post.length?p(E.post,!1):[""];if(/\$$/.test(E.pre))for(var b=0;b<B.length;b++){var C=S+"{"+E.body+"}"+B[b];v.push(C)}else{var y,q,w=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(E.body),N=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(E.body),F=w||N,M=E.body.indexOf(",")>=0;if(!F&&!M)return E.post.match(/,.*\}/)?p(m=E.pre+"{"+E.body+o+E.post):[m];if(F)y=E.body.split(/\.\./);else if((y=l(E.body)).length===1&&(y=p(y[0],!1).map(f)).length===1)return B.map(function(Ge){return E.pre+y[0]+Ge});if(F){var U=u(y[0]),G=u(y[1]),K=Math.max(y[0].length,y[1].length),ce=y.length==3?Math.abs(u(y[2])):1,J=h;G<U&&(ce*=-1,J=d);var Ce=y.some(g);q=[];for(var L=U;J(L,G);L+=ce){var Ae;if(N)(Ae=String.fromCharCode(L))==="\\"&&(Ae="");else if(Ae=String(L),Ce){var pe=K-Ae.length;if(pe>0){var le=new Array(pe+1).join("0");Ae=L<0?"-"+le+Ae.slice(1):le+Ae}}q.push(Ae)}}else{q=[];for(var ue=0;ue<y.length;ue++)q.push.apply(q,p(y[ue],!1))}for(ue=0;ue<q.length;ue++)for(b=0;b<B.length;b++)C=S+q[ue]+B[b],(!x||F||C)&&v.push(C)}return v}},829:function(r){var A=function A(u,c){return u.length===c+1};function e(u){return e=typeof Symbol=="function"&&_type_of(Symbol.iterator)=="symbol"?function e(c){return typeof c==="undefined"?"undefined":_type_of(c)}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c==="undefined"?"undefined":_type_of(c)},e(u)}function t(u){var c=typeof Map=="function"?new Map:void 0;return t=function t(l){if(l===null||(f=l,Function.toString.call(f).indexOf("[native code]")===-1))return l;var f;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(l))return c.get(l);c.set(l,g)}function g(){return i(l,arguments,a(this).constructor)}return g.prototype=Object.create(l.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),n(g,l)},t(u)}function i(u,c,l){return i=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(f){return!1}}()?Reflect.construct:function i(f,g,h){var d=[null];d.push.apply(d,g);var p=new(Function.bind.apply(f,d));return h&&n(p,h.prototype),p},i.apply(null,arguments)}function n(u,c){return n=Object.setPrototypeOf||function(l,f){return l.__proto__=f,l},n(u,c)}function a(u){return a=Object.setPrototypeOf?Object.getPrototypeOf:function a(c){return c.__proto__||Object.getPrototypeOf(c)},a(u)}var o=function(u){function c(l){var f;return function(g,h){if(!_instanceof(g,h))throw new TypeError("Cannot call a class as a function")}(this,c),(f=function(g,h){return!h||e(h)!=="object"&&typeof h!="function"?function(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}(g):h}(this,a(c).call(this,l))).name="ObjectPrototypeMutationError",f}return function(l,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(f&&f.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),f&&n(l,f)}(c,u),c}(t(Error));function s(u,c){for(var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function l(){},f=c.split("."),g=f.length,h=function h(m){var x=f[m];if(!u)return{v:void 0};if(x==="+"){if(Array.isArray(u))return{v:u.map(function(E,S){var B=f.slice(m+1);return B.length>0?s(E,B.join("."),l):l(u,S,f,m)})};var v=f.slice(0,m).join(".");throw new Error("Object at wildcard (".concat(v,") is not an array"))}u=l(u,x,f,m)},d=0;d<g;d++){var p=h(d);if(e(p)==="object")return p.v}return u}r.exports={set:function set(u,c,l){if(e(u)!="object"||u===null||c===void 0)return u;if(typeof c=="number")return u[c]=l,u[c];try{return s(u,c,function(f,g,h,d){if(f===Reflect.getPrototypeOf({}))throw new o("Attempting to mutate Object.prototype");if(!f[g]){var p=Number.isInteger(Number(h[d+1])),m=h[d+1]==="+";f[g]=p||m?[]:{}}return A(h,d)&&(f[g]=l),f[g]})}catch(f){if(_instanceof(f,o))throw f;return u}},get:function get(u,c){if(e(u)!="object"||u===null||c===void 0)return u;if(typeof c=="number")return u[c];try{return s(u,c,function(l,f){return l[f]})}catch(l){return u}},has:function has(u,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e(u)!="object"||u===null||c===void 0)return!1;if(typeof c=="number")return c in u;try{var f=!1;return s(u,c,function(g,h,d,p){if(!A(d,p))return g&&g[h];f=l.own?g.hasOwnProperty(h):h in g}),f}catch(g){return!1}},hasOwn:function hasOwn(u,c,l){return this.has(u,c,l||{own:!0})},isIn:function isIn(u,c,l){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(e(u)!="object"||u===null||c===void 0)return!1;try{var g=!1,h=!1;return s(u,c,function(d,p,m,x){return g=g||d===l||!!d&&d[p]===l,h=A(m,x)&&e(d)==="object"&&p in d,d&&d[p]}),f.validPath?g&&h:g}catch(d){return!1}},ObjectPrototypeMutationError:o}},47:function(r,e,t){var a=function a(u,c){for(var l=[],f=0;f<u.length;f++){var g=u[f];g&&g!=="."&&(g===".."?l.length&&l[l.length-1]!==".."?l.pop():c&&l.push(".."):l.push(g))}return l};var A=function A(u){return o.exec(u).slice(1)};var i=t(410),n=function n(u){return typeof u=="string"};var o=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,s={};s.resolve=function(){for(var u="",c=!1,l=arguments.length-1;l>=-1&&!c;l--){var f=l>=0?arguments[l]:process.cwd();if(!n(f))throw new TypeError("Arguments to path.resolve must be strings");f&&(u=f+"/"+u,c=f.charAt(0)==="/")}return(c?"/":"")+(u=a(u.split("/"),!c).join("/"))||"."},s.normalize=function(u){var c=s.isAbsolute(u),l=u.substr(-1)==="/";return(u=a(u.split("/"),!c).join("/"))||c||(u="."),u&&l&&(u+="/"),(c?"/":"")+u},s.isAbsolute=function(u){return u.charAt(0)==="/"},s.join=function(){for(var u="",c=0;c<arguments.length;c++){var l=arguments[c];if(!n(l))throw new TypeError("Arguments to path.join must be strings");l&&(u+=u?"/"+l:l)}return s.normalize(u)},s.relative=function(u,c){function l(x){for(var v=0;v<x.length&&x[v]==="";v++);for(var E=x.length-1;E>=0&&x[E]==="";E--);return v>E?[]:x.slice(v,E+1)}u=s.resolve(u).substr(1),c=s.resolve(c).substr(1);for(var f=l(u.split("/")),g=l(c.split("/")),h=Math.min(f.length,g.length),d=h,p=0;p<h;p++)if(f[p]!==g[p]){d=p;break}var m=[];for(p=d;p<f.length;p++)m.push("..");return(m=m.concat(g.slice(d))).join("/")},s._makeLong=function(u){return u},s.dirname=function(u){var c=A(u),l=c[0],f=c[1];return l||f?(f&&(f=f.substr(0,f.length-1)),l+f):"."},s.basename=function(u,c){var l=A(u)[2];return c&&l.substr(-1*c.length)===c&&(l=l.substr(0,l.length-c.length)),l},s.extname=function(u){return A(u)[3]},s.format=function(u){if(!i.isObject(u))throw new TypeError("Parameter 'pathObject' must be an object, not "+(typeof u==="undefined"?"undefined":_type_of(u)));var c=u.root||"";if(!n(c))throw new TypeError("'pathObject.root' must be a string or undefined, not "+_type_of(u.root));return(u.dir?u.dir+s.sep:"")+(u.base||"")},s.parse=function(u){if(!n(u))throw new TypeError("Parameter 'pathString' must be a string, not "+(typeof u==="undefined"?"undefined":_type_of(u)));var c=A(u);if(!c||c.length!==4)throw new TypeError("Invalid path '"+u+"'");return c[1]=c[1]||"",c[2]=c[2]||"",c[3]=c[3]||"",{root:c[0],dir:c[0]+c[1].slice(0,c[1].length-1),base:c[2],ext:c[3],name:c[2].slice(0,c[2].length-c[3].length)}},s.sep="/",s.delimiter=":",r.exports=s},647:function(r,e){var i=function i(a){try{return decodeURIComponent(a.replace(/\+/g," "))}catch(o){return null}};var n=function n(a){try{return encodeURIComponent(a)}catch(o){return null}};var t=Object.prototype.hasOwnProperty;e.stringify=function(a,o){o=o||"";var s,A,u=[];for(A in typeof o!="string"&&(o="?"),a)if(t.call(a,A)){if((s=a[A])||s!=null&&!isNaN(s)||(s=""),A=n(A),s=n(s),A===null||s===null)continue;u.push(A+"="+s)}return u.length?o+u.join("&"):""},e.parse=function(a){for(var o,s=/([^=?#&]+)=?([^&]*)/g,A={};o=s.exec(a);){var u=i(o[1]),c=i(o[2]);u===null||c===null||u in A||(A[u]=c)}return A}},670:function(r){r.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}},494:function(r){var e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};r.exports=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a=Object.assign({},i,a),!n||typeof n!="string")return n;var o=n.trim();if(a.skipLike!==void 0&&a.skipLike.test(o))return n;if(a.hex&&e.test(o))return Number.parseInt(o,16);{var A=t.exec(o);if(A){var u=A[1],c=A[2],l=((s=A[3])&&s.indexOf(".")!==-1&&((s=s.replace(/0+$/,""))==="."?s="0":s[0]==="."?s="0"+s:s[s.length-1]==="."&&(s=s.substr(0,s.length-1))),s),f=A[4]||A[6];if(!a.leadingZeros&&c.length>0&&u&&o[2]!=="."||!a.leadingZeros&&c.length>0&&!u&&o[1]!==".")return n;{var g=Number(o),h=""+g;return h.search(/[eE]/)!==-1||f?a.eNotation?g:n:o.indexOf(".")!==-1?h==="0"&&l===""||h===l||u&&h==="-"+l?g:n:c?l===h||u+l===h?g:n:o===h||o===u+h?g:n}}return n}var s}},737:function(r,e,t){var l=function l(x){return(x||"").toString().replace(a,"")};var h=function h(x){var v,E=(typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{}).location||{},S={},B=_type_of(x=x||E);if(x.protocol==="blob:")S=new m(unescape(x.pathname),{});else if(B==="string")for(v in S=new m(x,{}),g)delete S[v];else if(B==="object"){for(v in x)v in g||(S[v]=x[v]);S.slashes===void 0&&(S.slashes=s.test(x.href))}return S};var d=function d(x){return x==="file:"||x==="ftp:"||x==="http:"||x==="https:"||x==="ws:"||x==="wss:"};var p=function p(x,v){x=(x=l(x)).replace(o,""),v=v||{};var E,S=u.exec(x),B=S[1]?S[1].toLowerCase():"",b=!!S[2],C=!!S[3],y=0;return b?C?(E=S[2]+S[3]+S[4],y=S[2].length+S[3].length):(E=S[2]+S[4],y=S[2].length):C?(E=S[3]+S[4],y=S[3].length):E=S[4],B==="file:"?y>=2&&(E=E.slice(2)):d(B)?E=S[4]:B?b&&(E=E.slice(2)):y>=2&&d(v.protocol)&&(E=S[4]),{protocol:B,slashes:b||d(B),slashesCount:y,rest:E}};var i=t(670),n=t(647),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,A=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;var f=[["#","hash"],["?","query"],function(x,v){return d(v.protocol)?x.replace(/\\/g,"/"):x},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],g={hash:1,query:1};function m(x,v,E){if(x=(x=l(x)).replace(o,""),!_instanceof(this,m))return new m(x,v,E);var S,B,b,C,y,q,w=f.slice(),N=typeof v==="undefined"?"undefined":_type_of(v),F=this,M=0;for(N!=="object"&&N!=="string"&&(E=v,v=null),E&&typeof E!="function"&&(E=n.parse),S=!(B=p(x||"",v=h(v))).protocol&&!B.slashes,F.slashes=B.slashes||S&&v.slashes,F.protocol=B.protocol||v.protocol||"",x=B.rest,(B.protocol==="file:"&&(B.slashesCount!==2||c.test(x))||!B.slashes&&(B.protocol||B.slashesCount<2||!d(F.protocol)))&&(w[3]=[/(.*)/,"pathname"]);M<w.length;M++)typeof(C=w[M])!="function"?(b=C[0],q=C[1],b!=b?F[q]=x:typeof b=="string"?~(y=b==="@"?x.lastIndexOf(b):x.indexOf(b))&&(typeof C[2]=="number"?(F[q]=x.slice(0,y),x=x.slice(y+C[2])):(F[q]=x.slice(y),x=x.slice(0,y))):(y=b.exec(x))&&(F[q]=y[1],x=x.slice(0,y.index)),F[q]=F[q]||S&&C[3]&&v[q]||"",C[4]&&(F[q]=F[q].toLowerCase())):x=C(x,F);E&&(F.query=E(F.query)),S&&v.slashes&&F.pathname.charAt(0)!=="/"&&(F.pathname!==""||v.pathname!=="")&&(F.pathname=function(U,G){if(U==="")return G;for(var K=(G||"/").split("/").slice(0,-1).concat(U.split("/")),ce=K.length,J=K[ce-1],Ce=!1,L=0;ce--;)K[ce]==="."?K.splice(ce,1):K[ce]===".."?(K.splice(ce,1),L++):L&&(ce===0&&(Ce=!0),K.splice(ce,1),L--);return Ce&&K.unshift(""),J!=="."&&J!==".."||K.push(""),K.join("/")}(F.pathname,v.pathname)),F.pathname.charAt(0)!=="/"&&d(F.protocol)&&(F.pathname="/"+F.pathname),i(F.port,F.protocol)||(F.host=F.hostname,F.port=""),F.username=F.password="",F.auth&&(~(y=F.auth.indexOf(":"))?(F.username=F.auth.slice(0,y),F.username=encodeURIComponent(decodeURIComponent(F.username)),F.password=F.auth.slice(y+1),F.password=encodeURIComponent(decodeURIComponent(F.password))):F.username=encodeURIComponent(decodeURIComponent(F.auth)),F.auth=F.password?F.username+":"+F.password:F.username),F.origin=F.protocol!=="file:"&&d(F.protocol)&&F.host?F.protocol+"//"+F.host:"null",F.href=F.toString()}m.prototype={set:function set(x,v,E){var S=this;switch(x){case"query":typeof v=="string"&&v.length&&(v=(E||n.parse)(v)),S[x]=v;break;case"port":S[x]=v,i(v,S.protocol)?v&&(S.host=S.hostname+":"+v):(S.host=S.hostname,S[x]="");break;case"hostname":S[x]=v,S.port&&(v+=":"+S.port),S.host=v;break;case"host":S[x]=v,A.test(v)?(v=v.split(":"),S.port=v.pop(),S.hostname=v.join(":")):(S.hostname=v,S.port="");break;case"protocol":S.protocol=v.toLowerCase(),S.slashes=!E;break;case"pathname":case"hash":if(v){var B=x==="pathname"?"/":"#";S[x]=v.charAt(0)!==B?B+v:v}else S[x]=v;break;case"username":case"password":S[x]=encodeURIComponent(v);break;case"auth":var b=v.indexOf(":");~b?(S.username=v.slice(0,b),S.username=encodeURIComponent(decodeURIComponent(S.username)),S.password=v.slice(b+1),S.password=encodeURIComponent(decodeURIComponent(S.password))):S.username=encodeURIComponent(decodeURIComponent(v))}for(var C=0;C<f.length;C++){var y=f[C];y[4]&&(S[y[1]]=S[y[1]].toLowerCase())}return S.auth=S.password?S.username+":"+S.password:S.username,S.origin=S.protocol!=="file:"&&d(S.protocol)&&S.host?S.protocol+"//"+S.host:"null",S.href=S.toString(),S},toString:function toString(x){x&&typeof x=="function"||(x=n.stringify);var v,E=this,S=E.host,B=E.protocol;B&&B.charAt(B.length-1)!==":"&&(B+=":");var b=B+(E.protocol&&E.slashes||d(E.protocol)?"//":"");return E.username?(b+=E.username,E.password&&(b+=":"+E.password),b+="@"):E.password?(b+=":"+E.password,b+="@"):E.protocol!=="file:"&&d(E.protocol)&&!S&&E.pathname!=="/"&&(b+="@"),(S[S.length-1]===":"||A.test(E.hostname)&&!E.port)&&(S+=":"),b+=S+E.pathname,(v=_type_of(E.query)=="object"?x(E.query):E.query)&&(b+=v.charAt(0)!=="?"?"?"+v:v),E.hash&&(b+=E.hash),b}},m.extractProtocol=p,m.location=h,m.trimLeft=l,m.qs=n,r.exports=m},410:function(){},388:function(){},805:function(){},345:function(){},800:function(){}},FK={};function sr(r){var e=FK[r];if(e!==void 0)return e.exports;var t=FK[r]={id:r,loaded:!1,exports:{}};return bWe[r].call(t.exports,t,t.exports,sr),t.loaded=!0,t.exports}sr.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return sr.d(e,{a:e}),e},sr.d=function(r,e){for(var t in e)sr.o(e,t)&&!sr.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},sr.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},sr.nmd=function(r){return r.paths=[],r.children||(r.children=[]),r};var bi={};sr.d(bi,{hT:function(){return qt},O4:function(){return Hn},Kd:function(){return NWe},YK:function(){return OWe},UU:function(){return G9e},Gu:function(){return rV},ky:function(){return fV},h4:function(){return of},ch:function(){return HI},hq:function(){return cs},i5:function(){return gV}});var wWe=sr(737),SWe=sr.n(wWe);function vb(r){if(!Sb(r))throw new Error("Parameter was not an error")}function Sb(r){return!!r&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"&&(e=r,Object.prototype.toString.call(e)==="[object Error]")||_instanceof(r,Error);var e}var gt=/*#__PURE__*/function(Error1){"use strict";_inherits(gt1,Error1);function gt1(e,t){_class_call_check(this,gt1);var _this;var i=Array.prototype.slice.call(arguments),_ref=function(s){var A,u="";if(s.length===0)A={};else if(Sb(s[0]))A={cause:s[0]},u=s.slice(1).join(" ")||"";else if(s[0]&&_type_of(s[0])=="object")A=Object.assign({},s[0]),u=s.slice(1).join(" ")||"";else{if(typeof s[0]!="string")throw new Error("Invalid arguments passed to Layerr");A={},u=u=s.join(" ")||""}return{options:A,shortMessage:u}}(i),n=_ref.options,a=_ref.shortMessage,o=a;if(n.cause&&(o="".concat(o,": ").concat(n.cause.message)),_this=_call_super(this,gt1,[o]),_this.message=o,n.name&&typeof n.name=="string"?_this.name=n.name:_this.name="Layerr",n.cause&&Object.defineProperty(_this,"_cause",{value:n.cause}),Object.defineProperty(_this,"_info",{value:{}}),n.info&&_type_of(n.info)=="object"&&Object.assign(_this._info,n.info),Error.captureStackTrace){var s=n.constructorOpt||_this.constructor;Error.captureStackTrace(_this,s)}return _this}_create_class(gt1,[{key:"toString",value:function toString(){var e=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e="".concat(e,": ").concat(this.message)),e}}],[{key:"cause",value:function cause(e){return vb(e),e._cause&&Sb(e._cause)?e._cause:null}},{key:"fullStack",value:function fullStack(e){var i;vb(e);var t=gt.cause(e);return t?"".concat(e.stack,"\ncaused by: ").concat(gt.fullStack(t)):(i=e.stack)!=null?i:""}},{key:"info",value:function info(e){vb(e);var t={},i=gt.cause(e);return i&&Object.assign(t,gt.info(i)),e._info&&Object.assign(t,e._info),t}}]);return gt1}(_wrap_native_super(Error)),_We=sr(47),OI=sr.n(_We),kK="__PATH_SEPARATOR_POSIX__",RK="__PATH_SEPARATOR_WINDOWS__";function Er(r){try{var _$e1=r.replace(/\//g,kK).replace(/\\\\/g,RK);return encodeURIComponent(_$e1).split(RK).join("\\\\").split(kK).join("/")}catch(e){throw new gt(e,"Failed encoding path")}}function NK(r){return r.startsWith("/")?r:"/"+r}function rf(r){var e=r;return e[0]!=="/"&&(e="/"+e),/^.+\/$/.test(e)&&(e=e.substr(0,e.length-1)),e}function qWe(r){var e=new(SWe())(r).pathname;return e.length<=0&&(e="/"),rf(e)}function yr(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(){return function(i){var n=[];if(i.length===0)return"";if(typeof i[0]!="string")throw new TypeError("Url must be a string. Received "+i[0]);if(i[0].match(/^[^/:]+:\/*$/)&&i.length>1){var a=i.shift();i[0]=a+i[0]}i[0].match(/^file:\/\/\//)?i[0]=i[0].replace(/^([^/:]+):\/*/,"$1:///"):i[0]=i[0].replace(/^([^/:]+):\/*/,"$1://");for(var o=0;o<i.length;o++){var s=i[o];if(typeof s!="string")throw new TypeError("Url must be a string. Received "+s);s!==""&&(o>0&&(s=s.replace(/^[\/]+/,"")),s=o<i.length-1?s.replace(/[\/]+$/,""):s.replace(/[\/]+$/,"/"),n.push(s))}var A=n.join("/"),u=(A=A.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return u.shift()+(u.length>0?"?":"")+u.join("&")}(_type_of(arguments[0])=="object"?arguments[0]:[].slice.call(arguments))}(e.reduce(function(i,n,a){return(a===0||n!=="/"||n==="/"&&i[i.length-1]!=="/")&&i.push(n),i},[]))}var DWe=sr(542),Xl=sr.n(DWe),FWe="abcdef0123456789";function OK(r,e){var t=r.url.replace("//",""),i=t.indexOf("/")==-1?"/":t.slice(t.indexOf("/")),n=r.method?r.method.toUpperCase():"GET",a=!!/(^|,)\s*auth\s*($|,)/.test(e.qop)&&"auth",o="00000000".concat(e.nc).slice(-8),s=function(f,g,h,d,p,m,x){var v=x||Xl()("".concat(g,":").concat(h,":").concat(d));return f&&f.toLowerCase()==="md5-sess"?Xl()("".concat(v,":").concat(p,":").concat(m)):v}(e.algorithm,e.username,e.realm,e.password,e.nonce,e.cnonce,e.ha1),A=Xl()("".concat(n,":").concat(i)),u=a?Xl()("".concat(s,":").concat(e.nonce,":").concat(o,":").concat(e.cnonce,":").concat(a,":").concat(A)):Xl()("".concat(s,":").concat(e.nonce,":").concat(A)),c={username:e.username,realm:e.realm,nonce:e.nonce,uri:i,qop:a,response:u,nc:o,cnonce:e.cnonce,algorithm:e.algorithm,opaque:e.opaque},l=[];for(var f in c)c[f]&&(f==="qop"||f==="nc"||f==="algorithm"?l.push("".concat(f,"=").concat(c[f])):l.push("".concat(f,'="').concat(c[f],'"')));return"Digest ".concat(l.join(", "))}function ZK(r){return(r.headers&&r.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var kWe=sr(101),$K=sr.n(kWe);function TK(r){return $K().decode(r)}function PK(r,e){var t;return"Basic ".concat((t="".concat(r,":").concat(e),$K().encode(t)))}var tf=typeof WorkerGlobalScope!="undefined"&&_instanceof(self,WorkerGlobalScope)?self:typeof window!="undefined"?window:globalThis,RWe=tf.fetch.bind(tf),NWe=(tf.Headers,tf.Request),OWe=tf.Response,qt=function(r){return r.Auto="auto",r.Digest="digest",r.None="none",r.Password="password",r.Token="token",r}({}),Hn=function(r){return r.DataTypeNoLength="data-type-no-length",r.InvalidAuthType="invalid-auth-type",r.InvalidOutputFormat="invalid-output-format",r.LinkUnsupportedAuthType="link-unsupported-auth",r.InvalidUpdateRange="invalid-update-range",r.NotSupported="not-supported",r}({});function eV(r,e,t,i,n){switch(r.authType){case qt.Auto:e&&t&&(r.headers.Authorization=PK(e,t));break;case qt.Digest:r.digest=function(o,s,A){return{username:o,password:s,ha1:A,nc:0,algorithm:"md5",hasDigestAuth:!1}}(e,t,n);break;case qt.None:break;case qt.Password:r.headers.Authorization=PK(e,t);break;case qt.Token:r.headers.Authorization="".concat((a=i).token_type," ").concat(a.access_token);break;default:throw new gt({info:{code:Hn.InvalidAuthType}},"Invalid auth type: ".concat(r.authType))}var a}sr(345),sr(800);var MK="@@HOTPATCHER",TWe=function(){};function Cb(r){return{original:r,methods:[r],final:!1}}var _b=/*#__PURE__*/function(){"use strict";function _b1(){_class_call_check(this,_b1);this._configuration={registry:{},getEmptyAction:"null"},this.__type__=MK}_create_class(_b1,[{key:"configuration",get:function get(){return this._configuration}},{key:"getEmptyAction",get:function get(){return this.configuration.getEmptyAction},set:function set(e){this.configuration.getEmptyAction=e}},{key:"control",value:function control(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!e||e.__type__!==MK)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(e.configuration.registry).forEach(function(i){_this.configuration.registry.hasOwnProperty(i)?t&&(_this.configuration.registry[i]=Object.assign({},e.configuration.registry[i])):_this.configuration.registry[i]=Object.assign({},e.configuration.registry[i])}),e._configuration=this.configuration,this}},{key:"execute",value:function execute(e){var t=this.get(e)||TWe;for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];return t.apply(void 0,_to_consumable_array(n))}},{key:"get",value:function get(e){var t=this.configuration.registry[e];if(!t)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error("Failed handling method request: No method provided for override: ".concat(e));default:throw new Error("Failed handling request which resulted in an empty method: Invalid empty-action specified: ".concat(this.getEmptyAction))}return(function(){for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];if(n.length===0)throw new Error("Failed creating sequence: No functions provided");return function(){for(var o=arguments.length,s=new Array(o),A=0;A<o;A++)s[A]=arguments[A];var u=s,c=this;for(;n.length>0;)u=[n.shift().apply(c,u)];return u[0]}}).apply(this,_to_consumable_array(t.methods))}},{key:"isPatched",value:function isPatched(e){return!!this.configuration.registry[e]}},{key:"patch",value:function patch(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tmp=i.chain,n=tmp===void 0?!1:tmp;if(this.configuration.registry[e]&&this.configuration.registry[e].final)throw new Error("Failed patching '".concat(e,"': Method marked as being final"));if(typeof t!="function")throw new Error("Failed patching '".concat(e,"': Provided method is not a function"));if(n)this.configuration.registry[e]?this.configuration.registry[e].methods.push(t):this.configuration.registry[e]=Cb(t);else if(this.isPatched(e)){var _this_configuration_registry_e=this.configuration.registry[e],a=_this_configuration_registry_e.original;this.configuration.registry[e]=Object.assign(Cb(t),{original:a})}else this.configuration.registry[e]=Cb(t);return this}},{key:"patchInline",value:function patchInline(e,t){this.isPatched(e)||this.patch(e,t);for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return this.execute.apply(this,[e].concat(_to_consumable_array(n)))}},{key:"plugin",value:function plugin(e){var _this=this;for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return i.forEach(function(a){_this.patch(e,a,{chain:!0})}),this}},{key:"restore",value:function restore(e){if(!this.isPatched(e))throw new Error("Failed restoring method: No method present for key: ".concat(e));if(typeof this.configuration.registry[e].original!="function")throw new Error("Failed restoring method: Original method not found or of invalid type for key: ".concat(e));return this.configuration.registry[e].methods=[this.configuration.registry[e].original],this}},{key:"setFinal",value:function setFinal(e){if(!this.configuration.registry.hasOwnProperty(e))throw new Error("Failed marking '".concat(e,"' as final: No method found for key"));return this.configuration.registry[e].final=!0,this}}]);return _b1}(),Bb=null;function rV(){return Bb||(Bb=new _b),Bb}function TI(r){return function(e){if((typeof e==="undefined"?"undefined":_type_of(e))!="object"||e===null||Object.prototype.toString.call(e)!="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;var t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(r)?Object.assign({},r):Object.setPrototypeOf(Object.assign({},r),Object.getPrototypeOf(r))}function UK(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var i=null,n=_to_consumable_array(e);for(;n.length>0;){var a=n.shift();i=i?tV(i,a):TI(a)}return i}function tV(r,e){var t=TI(r);return Object.keys(e).forEach(function(i){t.hasOwnProperty(i)?Array.isArray(e[i])?t[i]=Array.isArray(t[i])?_to_consumable_array(t[i]).concat(_to_consumable_array(e[i])):_to_consumable_array(e[i]):_type_of(e[i])=="object"&&e[i]?t[i]=_type_of(t[i])=="object"&&t[i]?tV(t[i],e[i]):TI(e[i]):t[i]=e[i]:t[i]=e[i]}),t}function PWe(r){var e={};var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=r.keys()[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;e[t]=r.get(t)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e}function qb(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];if(e.length===0)return{};var i={};return e.reduce(function(n,a){return Object.keys(a).forEach(function(o){var s=o.toLowerCase();i.hasOwnProperty(s)?n[i[s]]=a[o]:(i[s]=o,n[o]=a[o])}),n},{})}sr(805);var MWe=typeof ArrayBuffer=="function",_Object_prototype=Object.prototype,UWe=_Object_prototype.toString;function iV(r){return MWe&&(_instanceof(r,ArrayBuffer)||UWe.call(r)==="[object ArrayBuffer]")}function nV(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function Nb(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}function Db(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var aV=Nb(function(r){var e=r._digest;return delete r._digest,e.hasDigestAuth&&(r=UK(r,{headers:{Authorization:OK(r,e)}})),Db(PI(r),function(t){var i=!1;return n=function n(o){return i?o:t},(a=function(){if(t.status==401)return e.hasDigestAuth=function(o,s){if(!ZK(o))return!1;var A=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){var u=o.headers&&o.headers.get("www-authenticate")||"",c=A.exec(u);if(!c)break;s[c[1]]=c[2]||c[3]}return s.nc+=1,s.cnonce=function(){var u="";for(var c=0;c<32;++c)u="".concat(u).concat(FWe[Math.floor(16*Math.random())]);return u}(),!0}(t,e),function(){if(e.hasDigestAuth)return Db(PI(r=UK(r,{headers:{Authorization:OK(r,e)}})),function(o){return o.status==401?e.hasDigestAuth=!1:e.nc++,i=!0,o})}();e.nc++}())&&a.then?a.then(n):n(a);var n,a})}),GWe=Nb(function(r,e){return Db(PI(r),function(t){return t.ok?(e.authType=qt.Password,t):t.status==401&&ZK(t)?(e.authType=qt.Digest,eV(e,e.username,e.password,void 0,void 0),r._digest=e.digest,aV(r)):t})}),Kr=Nb(function(r,e){return e.authType===qt.Auto?GWe(r,e):r._digest?aV(r):PI(r)});function Vr(r,e,t){var i=TI(r);return i.headers=qb(e.headers,i.headers||{},t.headers||{}),t.data!==void 0&&(i.data=t.data),t.signal&&(i.signal=t.signal),e.httpAgent&&(i.httpAgent=e.httpAgent),e.httpsAgent&&(i.httpsAgent=e.httpsAgent),e.digest&&(i._digest=e.digest),typeof e.withCredentials=="boolean"&&(i.withCredentials=e.withCredentials),i}function PI(r){var e=rV();return e.patchInline("request",function(t){return e.patchInline("fetch",RWe,t.url,function(i){var n={},a={method:i.method};if(i.headers&&(n=qb(n,i.headers)),i.data!==void 0){var _ref=_sliced_to_array(function(A){if(typeof A=="string")return[A,{}];if(nV(A))return[A,{}];if(iV(A))return[A,{}];if(A&&(typeof A==="undefined"?"undefined":_type_of(A))=="object")return[JSON.stringify(A),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+(typeof A==="undefined"?"undefined":_type_of(A)))}(i.data),2),o=_ref[0],s=_ref[1];a.body=o,n=qb(n,s)}return i.signal&&(a.signal=i.signal),i.withCredentials&&(a.credentials="include"),a.headers=n,a}(t))},r)}var LWe=sr(285),MI=function(r){if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")},HWe={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Zl=function(r){return r.replace(/[[\]\\-]/g,"\\$&")},GK=function(r){return r.join("")},WWe=function(r,e){var t=e;if(r.charAt(t)!=="[")throw new Error("not in a brace expression");var i=[],n=[],a=t+1,o=!1,s=!1,A=!1,u=!1,c=t,l="";e:for(;a<r.length;){var d=r.charAt(a);if(d!=="!"&&d!=="^"||a!==t+1){if(d==="]"&&o&&!A){c=a+1;break}if(o=!0,d!=="\\"||A){if(d==="["&&!A){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=Object.entries(HWe)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_sliced_to_array(_step.value,2),p=_step_value[0],_step_value_=_sliced_to_array(_step_value[1],3),m=_step_value_[0],x=_step_value_[1],v=_step_value_[2];if(r.startsWith(p,a)){if(l)return["$.",!1,r.length-t,!0];a+=p.length,v?n.push(m):i.push(m),s=s||x;continue e}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}A=!1,l?(d>l?i.push(Zl(l)+"-"+Zl(d)):d===l&&i.push(Zl(d)),l="",a++):r.startsWith("-]",a+1)?(i.push(Zl(d+"-")),a+=2):r.startsWith("-",a+1)?(l=d,a+=2):(i.push(Zl(d)),a++)}else A=!0,a++}else u=!0,a++}if(c<a)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,r.length-t,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u)return[(f=i[0].length===2?i[0].slice(-1):i[0],f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,c-t,!1];var f;var g="["+(u?"^":"")+GK(i)+"]",h="["+(u?"":"^")+GK(n)+"]";return[i.length&&n.length?"("+g+"|"+h+")":i.length?g:h,s,c-t,!0]},$l=function $l1(r){var _ref=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tmp=_ref.windowsPathsNoEscape,e=tmp===void 0?!1:tmp;return e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},JWe=new Set(["!","?","+","*","@"]),LK=function(r){return JWe.has(r)},Eb="(?!\\.)",KWe=new Set(["[","."]),VWe=new Set(["..","."]),YWe=new Set("().*{}+?[]^$\\!"),Ob="[^/]",HK=Ob+"*?",WK=Ob+"+?",Jr,tt,Ln,Cr,Ur,ja,ss,Xa,dn,As,nf,GI,oV,LA,NI,af,Fb,LI,sV,Yt=/*#__PURE__*/function(){"use strict";function Yt1(e,t){_class_call_check(this,Yt1);It(this,GI);It(this,af);Ze(this,"type");It(this,Jr,void 0);It(this,tt,void 0);It(this,Ln,!1);It(this,Cr,[]);It(this,Ur,void 0);It(this,ja,void 0);It(this,ss,void 0);It(this,Xa,!1);It(this,dn,void 0);It(this,As,void 0);It(this,nf,!1);var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=e,e&&Fr(this,tt,!0),Fr(this,Ur,t),Fr(this,Jr,oe(this,Ur)?oe(oe(this,Ur),Jr):this),Fr(this,dn,oe(this,Jr)===this?i:oe(oe(this,Jr),dn)),Fr(this,ss,oe(this,Jr)===this?[]:oe(oe(this,Jr),ss)),e!=="!"||oe(oe(this,Jr),Xa)||oe(this,ss).push(this),Fr(this,ja,oe(this,Ur)?oe(oe(this,Ur),Cr).length:0)}_create_class(Yt1,[{key:"hasMagic",get:function get(){if(oe(this,tt)!==void 0)return oe(this,tt);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=oe(this,Cr)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var e=_step.value;if(typeof e!="string"&&(e.type||e.hasMagic))return Fr(this,tt,!0)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return oe(this,tt)}},{key:"toString",value:function toString(){return oe(this,As)!==void 0?oe(this,As):this.type?Fr(this,As,this.type+"("+oe(this,Cr).map(function(e){return String(e)}).join("|")+")"):Fr(this,As,oe(this,Cr).map(function(e){return String(e)}).join(""))}},{key:"push",value:function push(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=t[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var n=_step.value;if(n!==""){if(typeof n!="string"&&!(_instanceof(n,Yt)&&oe(n,Ur)===this))throw new Error("invalid part: "+n);oe(this,Cr).push(n)}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}},{key:"toJSON",value:function toJSON(){var t;var e=this.type===null?oe(this,Cr).slice().map(function(i){return typeof i=="string"?i:i.toJSON()}):[this.type].concat(_to_consumable_array(oe(this,Cr).map(function(i){return i.toJSON()})));return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===oe(this,Jr)||oe(oe(this,Jr),Xa)&&((t=oe(this,Ur))==null?void 0:t.type)==="!")&&e.push({}),e}},{key:"isStart",value:function isStart(){var t;if(oe(this,Jr)===this)return!0;if(!((t=oe(this,Ur))!=null&&t.isStart()))return!1;if(oe(this,ja)===0)return!0;var e=oe(this,Ur);for(var i=0;i<oe(this,ja);i++){var n=oe(e,Cr)[i];if(!(_instanceof(n,Yt)&&n.type==="!"))return!1}return!0}},{key:"isEnd",value:function isEnd(){var t,i,n;if(oe(this,Jr)===this||((t=oe(this,Ur))==null?void 0:t.type)==="!")return!0;if(!((i=oe(this,Ur))!=null&&i.isEnd()))return!1;if(!this.type)return(n=oe(this,Ur))==null?void 0:n.isEnd();var e=oe(this,Ur)?oe(oe(this,Ur),Cr).length:0;return oe(this,ja)===e-1}},{key:"copyIn",value:function copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}},{key:"clone",value:function clone(e){var t=new Yt(this.type,e);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=oe(this,Cr)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var i=_step.value;t.copyIn(i)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return t}},{key:"toMMPattern",value:function toMMPattern(){if(this!==oe(this,Jr))return oe(this,Jr).toMMPattern();var e=this.toString(),_this_toRegExpSource=_sliced_to_array(this.toRegExpSource(),4),t=_this_toRegExpSource[0],i=_this_toRegExpSource[1],n=_this_toRegExpSource[2],a=_this_toRegExpSource[3];if(!(n||oe(this,tt)||oe(this,dn).nocase&&!oe(this,dn).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;var o=(oe(this,dn).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp("^".concat(t,"$"),o),{_src:t,_glob:e})}},{key:"options",get:function get(){return oe(this,dn)}},{key:"toRegExpSource",value:function toRegExpSource(e){var _this=this;var A;var t=e!=null?e:!!oe(this,dn).dot;if(oe(this,Jr)===this&&da(this,GI,oV).call(this),!this.type){var u=this.isStart()&&this.isEnd(),c=oe(this,Cr).map(function(g){var x;var _ref=_sliced_to_array(typeof g=="string"?da(x=Yt,LI,sV).call(x,g,oe(_this,tt),u):g.toRegExpSource(e),4),h=_ref[0],d=_ref[1],p=_ref[2],m=_ref[3];return Fr(_this,tt,oe(_this,tt)||p),Fr(_this,Ln,oe(_this,Ln)||m),h}).join(""),l="";if(this.isStart()&&typeof oe(this,Cr)[0]=="string"&&(oe(this,Cr).length!==1||!VWe.has(oe(this,Cr)[0]))){var g=KWe,h=t&&g.has(c.charAt(0))||c.startsWith("\\.")&&g.has(c.charAt(2))||c.startsWith("\\.\\.")&&g.has(c.charAt(4)),d=!t&&!e&&g.has(c.charAt(0));l=h?"(?!(?:^|/)\\.\\.?(?:$|/))":d?Eb:""}var f="";return this.isEnd()&&oe(oe(this,Jr),Xa)&&((A=oe(this,Ur))==null?void 0:A.type)==="!"&&(f="(?:$|\\/)"),[l+c+f,$l(c),Fr(this,tt,!!oe(this,tt)),oe(this,Ln)]}var i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",a=da(this,af,Fb).call(this,t);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){var u2=this.toString();return Fr(this,Cr,[u2]),this.type=null,Fr(this,tt,void 0),[u2,$l(this.toString()),!1,!1]}var o=!i||e||t?"":da(this,af,Fb).call(this,!0);o===a&&(o=""),o&&(a="(?:".concat(a,")(?:").concat(o,")*?"));var s="";return s=this.type==="!"&&oe(this,nf)?(this.isStart()&&!t?Eb:"")+WK:n+a+(this.type==="!"?"))"+(!this.isStart()||t||e?"":Eb)+HK+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":")".concat(this.type)),[s,$l(a),Fr(this,tt,!!oe(this,tt)),oe(this,Ln)]}}],[{key:"fromGlob",value:function fromGlob(e){var n;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=new Yt(null,void 0,t);return da(n=Yt,LA,NI).call(n,e,i,0,t),i}}]);return Yt1}(),MA=Yt;Jr=new WeakMap,tt=new WeakMap,Ln=new WeakMap,Cr=new WeakMap,Ur=new WeakMap,ja=new WeakMap,ss=new WeakMap,Xa=new WeakMap,dn=new WeakMap,As=new WeakMap,nf=new WeakMap,GI=new WeakSet,oV=function oV1(){if(this!==oe(this,Jr))throw new Error("should only call on root");if(oe(this,Xa))return this;var e;for(this.toString(),Fr(this,Xa,!0);e=oe(this,ss).pop();){if(e.type!=="!")continue;var t=e,i=oe(t,Ur);for(;i;){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;for(var n=oe(t,ja)+1;!i.type&&n<oe(i,Cr).length;n++)try{for(var _iterator=oe(e,Cr)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(oe(i,Cr)[n])}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}t=i,i=oe(t,Ur)}}return this},LA=new WeakSet,NI=function(e,t,i,n){var g,h;var a=!1,o=!1,s=-1,A=!1;if(t.type===null){var d=i,p="";for(;d<e.length;){var m=e.charAt(d++);if(a||m==="\\")a=!a,p+=m;else if(o)d===s+1?m!=="^"&&m!=="!"||(A=!0):m!=="]"||d===s+2&&A||(o=!1),p+=m;else if(m!=="[")if(n.noext||!LK(m)||e.charAt(d)!=="(")p+=m;else{t.push(p),p="";var x=new Yt(m,t);d=da(g=Yt,LA,NI).call(g,e,x,d,n),t.push(x)}else o=!0,s=d,A=!1,p+=m}return t.push(p),d}var u=i+1,c=new Yt(null,t),l=[],f="";for(;u<e.length;){var d2=e.charAt(u++);if(a||d2==="\\")a=!a,f+=d2;else if(o)u===s+1?d2!=="^"&&d2!=="!"||(A=!0):d2!=="]"||u===s+2&&A||(o=!1),f+=d2;else if(d2!=="[")if(LK(d2)&&e.charAt(u)==="("){c.push(f),f="";var p2=new Yt(d2,c);c.push(p2),u=da(h=Yt,LA,NI).call(h,e,p2,u,n)}else if(d2!=="|"){var _t;if(d2===")")return f===""&&oe(t,Cr).length===0&&Fr(t,nf,!0),c.push(f),f="",(_t=t).push.apply(_t,_to_consumable_array(l).concat([c])),u;f+=d2}else c.push(f),f="",l.push(c),c=new Yt(null,t);else o=!0,s=u,A=!1,f+=d2}return t.type=null,Fr(t,tt,void 0),Fr(t,Cr,[e.substring(i-1)]),u},af=new WeakSet,Fb=function Fb1(e){var _this=this;return oe(this,Cr).map(function(t){if(typeof t=="string")throw new Error("string type in extglob ast??");var _t_toRegExpSource=_sliced_to_array(t.toRegExpSource(e),4),i=_t_toRegExpSource[0],n=_t_toRegExpSource[1],a=_t_toRegExpSource[2],o=_t_toRegExpSource[3];return Fr(_this,Ln,oe(_this,Ln)||o),i}).filter(function(t){return!(_this.isStart()&&_this.isEnd()&&!t)}).join("|")},LI=new WeakSet,sV=function sV1(e,t){var i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=!1,a="",o=!1;for(var s=0;s<e.length;s++){var A=e.charAt(s);if(n)n=!1,a+=(YWe.has(A)?"\\":"")+A;else if(A!=="\\"){if(A==="["){var _WWe=_sliced_to_array(WWe(e,s),4),u=_WWe[0],c=_WWe[1],l=_WWe[2],f=_WWe[3];if(l){a+=u,o=o||c,s+=l-1,t=t||f;continue}}A!=="*"?A!=="?"?a+=A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(a+=Ob,t=!0):(a+=i&&e==="*"?WK:HK,t=!0)}else s===e.length-1?a+="\\\\":n=!0}return[a,$l(e),!!t,o]},It(MA,LA),It(MA,LI);var vt=function vt1(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return MI(e),!(!t.nocomment&&e.charAt(0)==="#")&&new HA(e,t).match(r)},zWe=/^\*+([^+@!?\*\[\(]*)$/,jWe=function(r){return function(e){return!e.startsWith(".")&&e.endsWith(r)}},XWe=function(r){return function(e){return e.endsWith(r)}},ZWe=function(r){return r=r.toLowerCase(),function(e){return!e.startsWith(".")&&e.toLowerCase().endsWith(r)}},$We=function(r){return r=r.toLowerCase(),function(e){return e.toLowerCase().endsWith(r)}},e9e=/^\*+\.\*+$/,r9e=function(r){return!r.startsWith(".")&&r.includes(".")},t9e=function(r){return r!=="."&&r!==".."&&r.includes(".")},i9e=/^\.\*+$/,n9e=function(r){return r!=="."&&r!==".."&&r.startsWith(".")},a9e=/^\*+$/,o9e=function(r){return r.length!==0&&!r.startsWith(".")},s9e=function(r){return r.length!==0&&r!=="."&&r!==".."},A9e=/^\?+([^+@!?\*\[\(]*)?$/,c9e=function(r){var _r1=_sliced_to_array(r,2),e=_r1[0],tmp=_r1[1],t=tmp===void 0?"":tmp,i=AV([e]);return t?(t=t.toLowerCase(),function(n){return i(n)&&n.toLowerCase().endsWith(t)}):i},u9e=function(r){var _r1=_sliced_to_array(r,2),e=_r1[0],tmp=_r1[1],t=tmp===void 0?"":tmp,i=cV([e]);return t?(t=t.toLowerCase(),function(n){return i(n)&&n.toLowerCase().endsWith(t)}):i},l9e=function(r){var _r1=_sliced_to_array(r,2),e=_r1[0],tmp=_r1[1],t=tmp===void 0?"":tmp,i=cV([e]);return t?function(n){return i(n)&&n.endsWith(t)}:i},f9e=function(r){var _r1=_sliced_to_array(r,2),e=_r1[0],tmp=_r1[1],t=tmp===void 0?"":tmp,i=AV([e]);return t?function(n){return i(n)&&n.endsWith(t)}:i},AV=function(r){var _r1=_sliced_to_array(r,1),e=_r1[0],t=e.length;return function(i){return i.length===t&&!i.startsWith(".")}},cV=function(r){var _r1=_sliced_to_array(r,1),e=_r1[0],t=e.length;return function(i){return i.length===t&&i!=="."&&i!==".."}},uV=(typeof process==="undefined"?"undefined":_type_of(process))=="object"&&process?_type_of(process.env)=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";vt.sep=uV==="win32"?"\\":"/";var Qi=Symbol("globstar **");vt.GLOBSTAR=Qi,vt.filter=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(t){return vt(t,r,e)}};var yi=function yi1(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},r,e)};vt.defaults=function(r){if(!r||(typeof r==="undefined"?"undefined":_type_of(r))!="object"||!Object.keys(r).length)return vt;var e=vt;return Object.assign(function(t,i){return e(t,i,yi(r,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))},{Minimatch:/*#__PURE__*/function(_e_Minimatch){"use strict";_inherits(Minimatch,_e_Minimatch);function Minimatch(t){_class_call_check(this,Minimatch);return _call_super(this,Minimatch,[t,yi(r,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})])}_create_class(Minimatch,null,[{key:"defaults",value:function defaults(t){return e.defaults(yi(r,t)).Minimatch}}]);return Minimatch}(e.Minimatch),AST:/*#__PURE__*/function(_e_AST){"use strict";_inherits(AST,_e_AST);function AST(t,i){_class_call_check(this,AST);return _call_super(this,AST,[t,i,yi(r,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{})])}_create_class(AST,null,[{key:"fromGlob",value:function fromGlob(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.AST.fromGlob(t,yi(r,i))}}]);return AST}(e.AST),unescape:function unescape1(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.unescape(t,yi(r,i))},escape:function escape1(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.escape(t,yi(r,i))},filter:function filter(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.filter(t,yi(r,i))},defaults:function(t){return e.defaults(yi(r,t))},makeRe:function makeRe(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.makeRe(t,yi(r,i))},braceExpand:function braceExpand(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.braceExpand(t,yi(r,i))},match:function match(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.match(t,i,yi(r,n))},sep:e.sep,GLOBSTAR:Qi})};var lV=function lV1(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return MI(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:LWe(r)};vt.braceExpand=lV,vt.makeRe=function(r){return new HA(r,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},vt.match=function(r,e){var t=new HA(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return r=r.filter(function(i){return t.match(i)}),t.options.nonull&&!r.length&&r.push(e),r};var JK=/[?*]|[+@!]\(.*?\)|\[|\]/,HA=/*#__PURE__*/function(){"use strict";function HA1(e){_class_call_check(this,HA1);Ze(this,"options");Ze(this,"set");Ze(this,"pattern");Ze(this,"windowsPathsNoEscape");Ze(this,"nonegate");Ze(this,"negate");Ze(this,"comment");Ze(this,"empty");Ze(this,"preserveMultipleSlashes");Ze(this,"partial");Ze(this,"globSet");Ze(this,"globParts");Ze(this,"nocase");Ze(this,"isWindows");Ze(this,"platform");Ze(this,"windowsNoMagicRoot");Ze(this,"regexp");var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};MI(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||uV,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}_create_class(HA1,[{key:"hasMagic",value:function hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined,_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator=this.set[Symbol.iterator](),_step;!(_iteratorNormalCompletion1=(_step=_iterator.next()).done);_iteratorNormalCompletion1=true){var e=_step.value;try{for(var _iterator1=e[Symbol.iterator](),_step1;!(_iteratorNormalCompletion=(_step1=_iterator1.next()).done);_iteratorNormalCompletion=true){var t=_step1.value;if(typeof t!="string")return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}return!1}},{key:"debug",value:function debug(){}},{key:"make",value:function make(){var _this=this;var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#")return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=_to_consumable_array(new Set(this.braceExpand())),t.debug&&(this.debug=function(){var _console;return(_console=console).error.apply(_console,arguments)}),this.debug(this.pattern,this.globSet);var i=this.globSet.map(function(a){return _this.slashSplit(a)});this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);var n=this.globParts.map(function(a,o,s){if(_this.isWindows&&_this.windowsNoMagicRoot){var A=!(a[0]!==""||a[1]!==""||a[2]!=="?"&&JK.test(a[2])||JK.test(a[3])),u=/^[a-z]:/i.test(a[0]);if(A)return _to_consumable_array(a.slice(0,4)).concat(_to_consumable_array(a.slice(4).map(function(c){return _this.parse(c)})));if(u)return[a[0]].concat(_to_consumable_array(a.slice(1).map(function(c){return _this.parse(c)})))}return a.map(function(A){return _this.parse(A)})});if(this.debug(this.pattern,n),this.set=n.filter(function(a){return a.indexOf(!1)===-1}),this.isWindows)for(var a=0;a<this.set.length;a++){var o=this.set[a];o[0]===""&&o[1]===""&&this.globParts[a][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}},{key:"preprocess",value:function preprocess(e){if(this.options.noglobstar)for(var i=0;i<e.length;i++)for(var n=0;n<e[i].length;n++)e[i][n]==="**"&&(e[i][n]="*");var _this_options=this.options,tmp=_this_options.optimizationLevel,t=tmp===void 0?1:tmp;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}},{key:"adjascentGlobstarOptimize",value:function adjascentGlobstarOptimize(e){return e.map(function(t){var i=-1;for(;(i=t.indexOf("**",i+1))!==-1;){var n=i;for(;t[n+1]==="**";)n++;n!==i&&t.splice(i,n-i)}return t})}},{key:"levelOneOptimize",value:function levelOneOptimize(e){return e.map(function(t){return(t=t.reduce(function(i,n){var a=i[i.length-1];return n==="**"&&a==="**"?i:n===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(i.pop(),i):(i.push(n),i)},[])).length===0?[""]:t})}},{key:"levelTwoFileOptimize",value:function levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));var t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(var n=1;n<e.length-1;n++){var a=e[n];n===1&&a===""&&e[0]===""||a!=="."&&a!==""||(t=!0,e.splice(n,1),n--)}e[0]!=="."||e.length!==2||e[1]!=="."&&e[1]!==""||(t=!0,e.pop())}var i=0;for(;(i=e.indexOf("..",i+1))!==-1;){var n1=e[i-1];n1&&n1!=="."&&n1!==".."&&n1!=="**"&&(t=!0,e.splice(i-1,2),i-=2)}}while(t);return e.length===0?[""]:e}},{key:"firstPhasePreProcess",value:function firstPhasePreProcess(e){var t=!1;do{t=!1;var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var i=_step.value;var n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){var o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);var s=i[n+1],A=i[n+2],u=i[n+3];if(s!==".."||!A||A==="."||A===".."||!u||u==="."||u==="..")continue;t=!0,i.splice(n,1);var c=i.slice(0);c[n]="**",e.push(c),n--}if(!this.preserveMultipleSlashes){for(var o1=1;o1<i.length-1;o1++){var s2=i[o1];o1===1&&s2===""&&i[0]===""||s2!=="."&&s2!==""||(t=!0,i.splice(o1,1),o1--)}i[0]!=="."||i.length!==2||i[1]!=="."&&i[1]!==""||(t=!0,i.pop())}var a=0;for(;(a=i.indexOf("..",a+1))!==-1;){var o2=i[a-1];if(o2&&o2!=="."&&o2!==".."&&o2!=="**"){var _i1;t=!0;var s3=a===1&&i[a+1]==="**"?["."]:[];(_i1=i).splice.apply(_i1,[a-1,2].concat(_to_consumable_array(s3))),i.length===0&&i.push(""),a-=2}}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}while(t);return e}},{key:"secondPhasePreProcess",value:function secondPhasePreProcess(e){for(var t=0;t<e.length-1;t++)for(var i=t+1;i<e.length;i++){var n=this.partsMatch(e[t],e[i],!this.preserveMultipleSlashes);if(n){e[t]=[],e[i]=n;break}}return e.filter(function(t){return t.length})}},{key:"partsMatch",value:function partsMatch(e,t){var i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=0,a=0,o=[],s="";for(;n<e.length&&a<t.length;)if(e[n]===t[a])o.push(s==="b"?t[a]:e[n]),n++,a++;else if(i&&e[n]==="**"&&t[a]===e[n+1])o.push(e[n]),n++;else if(i&&t[a]==="**"&&e[n]===t[a+1])o.push(t[a]),a++;else if(e[n]!=="*"||!t[a]||!this.options.dot&&t[a].startsWith(".")||t[a]==="**"){if(t[a]!=="*"||!e[n]||!this.options.dot&&e[n].startsWith(".")||e[n]==="**"||s==="a")return!1;s="b",o.push(t[a]),n++,a++}else{if(s==="b")return!1;s="a",o.push(e[n]),n++,a++}return e.length===t.length&&o}},{key:"parseNegate",value:function parseNegate(){if(this.nonegate)return;var e=this.pattern,t=!1,i=0;for(var n=0;n<e.length&&e.charAt(n)==="!";n++)t=!t,i++;i&&(this.pattern=e.slice(i)),this.negate=t}},{key:"matchOne",value:function matchOne(e,t){var i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=this.options;if(this.isWindows){var d=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),p=!d&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),m=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),x=p?3:d?0:void 0,v=!m&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3])?3:m?0:void 0;if(typeof x=="number"&&typeof v=="number"){var _ref=[e[x],t[v]],E=_ref[0],S=_ref[1];E.toLowerCase()===S.toLowerCase()&&(t[v]=E,v>x?t=t.slice(v):x>v&&(e=e.slice(x)))}}var _this_options=this.options,tmp=_this_options.optimizationLevel,a=tmp===void 0?1:tmp;a>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,s=0,A=e.length,u=t.length;o<A&&s<u;o++,s++){this.debug("matchOne loop");var c=t[s],l=e[o];if(this.debug(t,c,l),c===!1)return!1;if(c===Qi){this.debug("GLOBSTAR",[t,c,l]);var f=o,g=s+1;if(g===u){for(this.debug("** at the end");o<A;o++)if(e[o]==="."||e[o]===".."||!n.dot&&e[o].charAt(0)===".")return!1;return!0}for(;f<A;){var h=e[f];if(this.debug("\nglobstar while",e,f,t,g,h),this.matchOne(e.slice(f),t.slice(g),i))return this.debug("globstar found match!",f,A,h),!0;if(h==="."||h===".."||!n.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,f,t,g);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!i||(this.debug("\n>>> no match, partial?",e,f,t,g),f!==A))}var d2=void 0;if(typeof c=="string"?(d2=l===c,this.debug("string match",c,l,d2)):(d2=c.test(l),this.debug("pattern match",c,l,d2)),!d2)return!1}if(o===A&&s===u)return!0;if(o===A)return i;if(s===u)return o===A-1&&e[o]==="";throw new Error("wtf?")}},{key:"braceExpand",value:function braceExpand(){return lV(this.pattern,this.options)}},{key:"parse",value:function parse(e){MI(e);var t=this.options;if(e==="**")return Qi;if(e==="")return"";var i,n=null;(i=e.match(a9e))?n=t.dot?s9e:o9e:(i=e.match(zWe))?n=(t.nocase?t.dot?$We:ZWe:t.dot?XWe:jWe)(i[1]):(i=e.match(A9e))?n=(t.nocase?t.dot?u9e:c9e:t.dot?l9e:f9e)(i):(i=e.match(e9e))?n=t.dot?t9e:r9e:(i=e.match(i9e))&&(n=n9e);var a=MA.fromGlob(e,this.options).toMMPattern();return n&&(typeof a==="undefined"?"undefined":_type_of(a))=="object"&&Reflect.defineProperty(a,"test",{value:n}),a}},{key:"makeRe",value:function makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,i=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=new Set(t.nocase?["i"]:[]),a=e.map(function(A){var u=A.map(function(c){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(_instanceof(c,RegExp))try{for(var _iterator=c.flags.split("")[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var l=_step.value;n.add(l)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return typeof c=="string"?c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):c===Qi?Qi:c._src});return u.forEach(function(c,l){var f=u[l+1],g=u[l-1];c===Qi&&g!==Qi&&(g===void 0?f!==void 0&&f!==Qi?u[l+1]="(?:\\/|"+i+"\\/)?"+f:u[l]=i:f===void 0?u[l-1]=g+"(?:\\/|"+i+")?":f!==Qi&&(u[l-1]=g+"(?:\\/|\\/"+i+"\\/)"+f,u[l+1]=Qi))}),u.filter(function(c){return c!==Qi}).join("/")}).join("|"),_ref=_sliced_to_array(e.length>1?["(?:",")"]:["",""],2),o=_ref[0],s=_ref[1];a="^"+o+a+s+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,_to_consumable_array(n).join(""))}catch(A){this.regexp=!1}return this.regexp}},{key:"slashSplit",value:function slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?[""].concat(_to_consumable_array(e.split(/\/+/))):e.split(/\/+/)}},{key:"match",value:function match(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;var i=this.options;this.isWindows&&(e=e.split("\\").join("/"));var n=this.slashSplit(e);this.debug(this.pattern,"split",n);var a=this.set;this.debug(this.pattern,"set",a);var o=n[n.length-1];if(!o)for(var s=n.length-2;!o&&s>=0;s--)o=n[s];for(var s2=0;s2<a.length;s2++){var A=a[s2],u=n;if(i.matchBase&&A.length===1&&(u=[o]),this.matchOne(u,A,t))return!!i.flipNegate||!this.negate}return!i.flipNegate&&this.negate}}],[{key:"defaults",value:function defaults(e){return vt.defaults(e).Minimatch}}]);return HA1}();function Tb(r){var e=new Error("".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"","Invalid response: ").concat(r.status," ").concat(r.statusText));return e.status=r.status,e.response=r,e}function Yr(r,e){var t=e.status;if(t===401&&r.digest)return e;if(t>=400)throw Tb(e);return e}function cs(r,e){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:e,headers:r.headers?PWe(r.headers):{},status:r.status,statusText:r.statusText}:e}vt.AST=MA,vt.Minimatch=HA,vt.escape=function(r){var _ref=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tmp=_ref.windowsPathsNoEscape,e=tmp===void 0?!1:tmp;return e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&")},vt.unescape=$l;var g9e=(KK=function KK1(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=Vr({url:yr(r.remoteURL,Er(e)),method:"COPY",headers:{Destination:yr(r.remoteURL,Er(t)),Overwrite:i.overwrite===!1?"F":"T",Depth:i.shallow?"0":"infinity"}},r,i);return o=function o(s){Yr(r,s)},(a=Kr(n,r))&&a.then||(a=Promise.resolve(a)),o?a.then(o):a;var a,o},function g9e1(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];try{return Promise.resolve(KK.apply(this,r))}catch(t){return Promise.reject(t)}}),KK,Pb=sr(635),d9e=sr(829),Gn=sr.n(d9e),UA=function(r){return r.Array="array",r.Object="object",r.Original="original",r}(UA||{});function RI(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:UA.Original,i=Gn().get(r,e);return t==="array"&&Array.isArray(i)===!1?[i]:t==="object"&&Array.isArray(i)?i[0]:i}function of(r){return new Promise(function(e){e(function(t){var i=t.multistatus;if(i==="")return{multistatus:{response:[]}};if(!i)throw new Error("Invalid response: No root multistatus found");var n={multistatus:Array.isArray(i)?i[0]:i};return Gn().set(n,"multistatus.response",RI(n,"multistatus.response",UA.Array)),Gn().set(n,"multistatus.response",Gn().get(n,"multistatus.response").map(function(a){return function(o){var s=Object.assign({},o);return s.status?Gn().set(s,"status",RI(s,"status",UA.Object)):(Gn().set(s,"propstat",RI(s,"propstat",UA.Object)),Gn().set(s,"propstat.prop",RI(s,"propstat.prop",UA.Object))),s}(a)})),n}(new Pb.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:function(t,i,n){return i==="true"||i==="false"?i==="true":i},tagValueProcessor:function tagValueProcessor(t,i,n){if(!n.endsWith("propstat.prop.displayname"))return i}}).parse(r)))})}function HI(r,e){var t=arguments.length>2&&arguments[2]!==void 0&&arguments[2],tmp=r.getlastmodified,i=tmp===void 0?null:tmp,tmp1=r.getcontentlength,n=tmp1===void 0?"0":tmp1,tmp2=r.resourcetype,a=tmp2===void 0?null:tmp2,tmp3=r.getcontenttype,o=tmp3===void 0?null:tmp3,tmp4=r.getetag,s=tmp4===void 0?null:tmp4,A=a&&(typeof a==="undefined"?"undefined":_type_of(a))=="object"&&a.collection!==void 0?"directory":"file",u={filename:e,basename:OI().basename(e),lastmod:i,size:parseInt(n,10),type:A,etag:typeof s=="string"?s.replace(/"/g,""):null};return A==="file"&&(u.mime=o&&typeof o=="string"?o.split(";")[0]:""),t&&(r.displayname!==void 0&&(r.displayname=String(r.displayname)),u.props=r),u}function fV(r,e){var t=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=null;try{r.multistatus.response[0].propstat&&(i=r.multistatus.response[0])}catch(c){}if(!i)throw new Error("Failed getting item stat: bad response");var _i_propstat=i.propstat,n=_i_propstat.prop,a=_i_propstat.status,_a_split=_sliced_to_array(a.split(" ",3),3),o=_a_split[0],s=_a_split[1],A=_a_split[2],u=parseInt(s,10);if(u>=400){var c=new Error("Invalid response: ".concat(u," ").concat(A));throw c.status=u,c}return HI(n,rf(e),t)}function gV(r){switch(String(r)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(r),10)}}function yb(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var Mb=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tmp=t.details,i=tmp===void 0?!1:tmp,n=Vr({url:yr(r.remoteURL,Er(e)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},r,t);return yb(Kr(n,r),function(a){return Yr(r,a),yb(a.text(),function(o){return yb(of(o),function(s){var A=fV(s,e,i);return cs(a,A,i)})})})});function dV(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var h9e=hV(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=function(a){if(!a||a==="/")return[];var o=a,s=[];do s.push(o),o=OI().dirname(o);while(o&&o!=="/");return s}(rf(e));i.sort(function(a,o){return a.length>o.length?1:o.length>a.length?-1:0});var n=!1;return function(a,o,s){if(typeof a[YK]=="function"){var d=function d2(p){try{for(;!(A=l.next()).done;)if((p=o(A.value))&&p.then){if(!zK(p))return void p.then(d,c||(c=Dt.bind(null,u=new GA,2)));p=p.v}u?Dt(u,1,p):u=p}catch(m){Dt(u||(u=new GA),2,m)}};var A,u,c,l=a[YK]();if(d(),l.return){var f=function f(p){try{A.done||l.return()}catch(m){}return p};if(u&&u.then)return u.then(f,function(p){throw f(p)});f()}return u}if(!("length"in a))throw new TypeError("Object is not iterable");for(var g=[],h=0;h<a.length;h++)g.push(a[h]);return function(d,p,m){var x,v,E=-1;return function S(B){try{for(;++E<d.length&&(!m||!m());)if((B=p(E))&&B.then){if(!zK(B))return void B.then(S,v||(v=Dt.bind(null,x=new GA,2)));B=B.v}x?Dt(x,1,B):x=B}catch(b){Dt(x||(x=new GA),2,b)}}(),x}(g,function(d){return o(g[d])},s)}(i,function(a){return o=function o(){return function(A,u){try{var c=dV(Mb(r,a),function(l){if(l.type!=="directory")throw new Error("Path includes a file: ".concat(e))})}catch(l){return u(l)}return c&&c.then?c.then(void 0,u):c}(0,function(A){var u=A;return function(){if(u.status===404)return n=!0,VK(kb(r,a,_object_spread_props(_object_spread({},t),{recursive:!1})));throw A}()})},(s=function(){if(n)return VK(kb(r,a,_object_spread_props(_object_spread({},t),{recursive:!1})))}())&&s.then?s.then(o):o();var o,s},function(){return!1})});function hV(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}function I9e(){}function VK(r,e){if(!e)return r&&r.then?r.then(I9e):Promise.resolve()}var YK=typeof Symbol!="undefined"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function Dt(r,e,t){if(!r.s){if(_instanceof(t,GA)){if(!t.s)return void(t.o=Dt.bind(null,r,e));1&e&&(e=t.s),t=t.v}if(t&&t.then)return void t.then(Dt.bind(null,r,e),Dt.bind(null,r,2));r.s=e,r.v=t;var i=r.o;i&&i(r)}}var GA=function(){function r(){}return r.prototype.then=function(e,t){var i=new r,n=this.s;if(n){var a=1&n?e:t;if(a){try{Dt(i,1,a(this.v))}catch(o){Dt(i,2,o)}return i}return this}return this.o=function(a){try{var _$o=a.v;1&a.s?Dt(i,1,e?e(_$o):_$o):t?Dt(i,1,t(_$o)):Dt(i,2,_$o)}catch(o){Dt(i,2,o)}},i},r}();function zK(r){return _instanceof(r,GA)&&1&r.s}var kb=hV(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t.recursive===!0)return h9e(r,e,t);var i=Vr({url:yr(r.remoteURL,(n=Er(e),n.endsWith("/")?n:n+"/")),method:"MKCOL"},r,t);var n;return dV(Kr(i,r),function(a){Yr(r,a)})}),p9e=sr(388),jK=sr.n(p9e),x9e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={};if(_type_of(t.range)=="object"&&typeof t.range.start=="number"){var s="bytes=".concat(t.range.start,"-");typeof t.range.end=="number"&&(s="".concat(s).concat(t.range.end)),i.Range=s}var n=Vr({url:yr(r.remoteURL,Er(e)),method:"GET",headers:i},r,t);return o=function o(s){if(Yr(r,s),i.Range&&s.status!==206){var A=new Error("Invalid response code for partial request: ".concat(s.status));throw A.status=s.status,A}return t.callback&&setTimeout(function(){t.callback(s)},0),s.body},(a=Kr(n,r))&&a.then||(a=Promise.resolve(a)),o?a.then(o):a;var a,o}),m9e=function(){},v9e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}(function(r,e,t){t.url||(t.url=yr(r.remoteURL,Er(e)));var i=Vr(t,r,{});return a=function a(o){return Yr(r,o),o},(n=Kr(i,r))&&n.then||(n=Promise.resolve(n)),a?n.then(a):n;var n,a}),C9e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=Vr({url:yr(r.remoteURL,Er(e)),method:"DELETE"},r,t);return a=function a(o){Yr(r,o)},(n=Kr(i,r))&&n.then||(n=Promise.resolve(n)),a?n.then(a):n;var n,a}),B9e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function(i,n){try{var a=(o=Mb(r,e,t),s=function s(){return!0},A?s?s(o):o:(o&&o.then||(o=Promise.resolve(o)),s?o.then(s):o))}catch(u){return n(u)}var o,s,A;return a&&a.then?a.then(void 0,n):a}(0,function(i){if(i.status===404)return!1;throw i})});function Qb(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var E9e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=Vr({url:yr(r.remoteURL,Er(e),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:t.deep?"infinity":"1"}},r,t);return Qb(Kr(i,r),function(n){return Yr(r,n),Qb(n.text(),function(a){if(!a)throw new Error("Failed parsing directory contents: Empty response");return Qb(of(a),function(o){var s=NK(e),A=function(u,c,l){var f=arguments.length>3&&arguments[3]!==void 0&&arguments[3],g=arguments.length>4&&arguments[4]!==void 0&&arguments[4],h=OI().join(c,"/"),_u_multistatus=u.multistatus,d=_u_multistatus.response,p=d.map(function(m){var x=function(E){try{return E.replace(/^https?:\/\/[^\/]+/,"")}catch(S){throw new gt(S,"Failed normalising HREF")}}(m.href),_m_propstat=m.propstat,v=_m_propstat.prop;return HI(v,h==="/"?decodeURIComponent(rf(x)):rf(OI().relative(decodeURIComponent(h),decodeURIComponent(x))),f)});return g?p:p.filter(function(m){return m.basename&&(m.type==="file"||m.filename!==l.replace(/\/$/,""))})}(o,NK(r.remoteBasePath||r.remotePath),s,t.details,t.includeSelf);return t.glob&&(A=function(u,c){return u.filter(function(l){return vt(l.filename,c,{matchBase:!0})})}(A,t.glob)),cs(n,A,t.details)})})})});function Ub(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}var y9e=Ub(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=Vr({url:yr(r.remoteURL,Er(e)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[w9e]},r,t);return UI(Kr(i,r),function(n){return Yr(r,n),UI(n.text(),function(a){return cs(n,a,t.details)})})});function UI(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var Q9e=Ub(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=Vr({url:yr(r.remoteURL,Er(e)),method:"GET"},r,t);return UI(Kr(i,r),function(n){var a;return Yr(r,n),function(o,s){var A=o();return A&&A.then?A.then(s):s()}(function(){return UI(n.arrayBuffer(),function(o){a=o})},function(){return cs(n,a,t.details)})})}),b9e=Ub(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tmp=t.format,i=tmp===void 0?"binary":tmp;if(i!=="binary"&&i!=="text")throw new gt({info:{code:Hn.InvalidOutputFormat}},"Invalid output format: ".concat(i));return i==="text"?y9e(r,e,t):Q9e(r,e,t)}),w9e=function(r){return r};function S9e(r){return new Pb.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(IV({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:r}}},"d"))}function IV(r,e){var t=_object_spread({},r);for(var i in t)t.hasOwnProperty(i)&&(t[i]&&_type_of(t[i])=="object"&&i.indexOf(":")===-1?(t["".concat(e,":").concat(i)]=IV(t[i],e),delete t[i]):/^@_/.test(i)===!1&&(t["".concat(e,":").concat(i)]=t[i],delete t[i]));return t}function Rb(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}function pV(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}var _9e=pV(function(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=Vr({url:yr(r.remoteURL,Er(e)),method:"UNLOCK",headers:{"Lock-Token":t}},r,i);return Rb(Kr(n,r),function(a){if(Yr(r,a),a.status!==204&&a.status!==200)throw Tb(a)})}),q9e=pV(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.refreshToken,tmp=t.timeout,n=tmp===void 0?D9e:tmp,a={Accept:"text/plain,application/xml",Timeout:n};i&&(a.If=i);var o=Vr({url:yr(r.remoteURL,Er(e)),method:"LOCK",headers:a,data:S9e(r.contactHref)},r,t);return Rb(Kr(o,r),function(s){return Yr(r,s),Rb(s.text(),function(A){var u=(f=A,new Pb.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(f)),c=Gn().get(u,"prop.lockdiscovery.activelock.locktoken.href"),l=Gn().get(u,"prop.lockdiscovery.activelock.timeout");var f;if(!c)throw Tb(s,"No lock token received: ");return{token:c,serverTimeout:l}})})}),D9e="Infinite, Second-4100000000";function bb(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var F9e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}(function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.path||"/",i=Vr({url:yr(r.remoteURL,t),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},r,e);return bb(Kr(i,r),function(n){return Yr(r,n),bb(n.text(),function(a){return bb(of(a),function(o){var s=function(A){try{var _A_multistatus_response=_sliced_to_array(A.multistatus.response,1),u=_A_multistatus_response[0],_u_propstat=u.propstat,_u_propstat_prop=_u_propstat.prop,c=_u_propstat_prop["quota-used-bytes"],l=_u_propstat_prop["quota-available-bytes"];return c!==void 0&&l!==void 0?{used:parseInt(String(c),10),available:gV(l)}:null}catch(u){}return null}(o);return cs(n,s,e.details)})})})});function wb(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var k9e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tmp=t.details,i=tmp===void 0?!1:tmp,n=Vr({url:yr(r.remoteURL,Er(e)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":r.headers["Content-Type"]||"application/xml; charset=utf-8"}},r,t);return wb(Kr(n,r),function(a){return Yr(r,a),wb(a.text(),function(o){return wb(of(o),function(s){var A=function(u,c,l){var f={truncated:!1,results:[]};return f.truncated=u.multistatus.response.some(function(g){var h,d;return((d=(g.status||((h=g.propstat)==null?void 0:h.status)).split(" ",3))==null?void 0:d[1])==="507"&&g.href.replace(/\/$/,"").endsWith(Er(c).replace(/\/$/,""))}),u.multistatus.response.forEach(function(g){if(g.propstat===void 0)return;var h=g.href.split("/").map(decodeURIComponent).join("/");f.results.push(HI(g.propstat.prop,h,l))}),f}(s,e,i);return cs(a,A,i)})})})}),R9e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}(function(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=Vr({url:yr(r.remoteURL,Er(e)),method:"MOVE",headers:{Destination:yr(r.remoteURL,Er(t)),Overwrite:i.overwrite===!1?"F":"T"}},r,i);return o=function o(s){Yr(r,s)},(a=Kr(n,r))&&a.then||(a=Promise.resolve(a)),o?a.then(o):a;var a,o}),N9e=sr(172),O9e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}(function(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},tmp=i.contentLength,n=tmp===void 0?!0:tmp,tmp1=i.overwrite,a=tmp1===void 0?!0:tmp1,o={"Content-Type":"application/octet-stream"};n===!1||(o["Content-Length"]=typeof n=="number"?"".concat(n):"".concat(function(c){if(iV(c))return c.byteLength;if(nV(c))return c.length;if(typeof c=="string")return(0,N9e.d)(c);throw new gt({info:{code:Hn.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(t))),a||(o["If-None-Match"]="*");var s=Vr({url:yr(r.remoteURL,Er(e)),method:"PUT",headers:o,data:t},r,i);return u=function u(c){try{Yr(r,c)}catch(l){var f=l;if(f.status!==412||a)throw f;return!1}return!0},(A=Kr(s,r))&&A.then||(A=Promise.resolve(A)),u?A.then(u):A;var A,u}),xV=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=Vr({url:yr(r.remoteURL,Er(e)),method:"OPTIONS"},r,t);return a=function a(o){var s,A;try{Yr(r,o)}catch(u){throw u}return{compliance:((s=o.headers.get("DAV"))!=null?s:"").split(",").map(function(u){return u.trim()}),server:(A=o.headers.get("Server"))!=null?A:""}},(n=Kr(i,r))&&n.then||(n=Promise.resolve(n)),a?n.then(a):n;var n,a});function ef(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var T9e=Gb(function(r,e,t,i,n){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(t>i||t<0)throw new gt({info:{code:Hn.InvalidUpdateRange}},"Invalid update range ".concat(t," for partial update"));var o={"Content-Type":"application/octet-stream","Content-Length":""+(i-t+1),"Content-Range":"bytes ".concat(t,"-").concat(i,"/*")},s=Vr({url:yr(r.remoteURL,Er(e)),method:"PUT",headers:o,data:n},r,a);return ef(Kr(s,r),function(A){Yr(r,A)})});function XK(r,e){var t=r();return t&&t.then?t.then(e):e(t)}var P9e=Gb(function(r,e,t,i,n){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(t>i||t<0)throw new gt({info:{code:Hn.InvalidUpdateRange}},"Invalid update range ".concat(t," for partial update"));var o={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(i-t+1),"X-Update-Range":"bytes=".concat(t,"-").concat(i)},s=Vr({url:yr(r.remoteURL,Er(e)),method:"PATCH",headers:o,data:n},r,a);return ef(Kr(s,r),function(A){Yr(r,A)})});function Gb(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(i){return Promise.reject(i)}}}var M9e=Gb(function(r,e,t,i,n){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return ef(xV(r,e,a),function(o){var s=!1;return XK(function(){if(o.compliance.includes("sabredav-partialupdate"))return ef(P9e(r,e,t,i,n,a),function(A){return s=!0,A})},function(A){var u=!1;return s?A:XK(function(){if(o.server.includes("Apache")&&o.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return ef(T9e(r,e,t,i,n,a),function(c){return u=!0,c})},function(c){if(u)return c;throw new gt({info:{code:Hn.NotSupported}},"Not supported")})})})}),U9e="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function G9e(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tmp=e.authType,t=tmp===void 0?null:tmp,i=e.remoteBasePath,tmp1=e.contactHref,n=tmp1===void 0?U9e:tmp1,a=e.ha1,tmp2=e.headers,o=tmp2===void 0?{}:tmp2,s=e.httpAgent,A=e.httpsAgent,u=e.password,c=e.token,l=e.username,f=e.withCredentials,g=t;g||(g=l||u?qt.Password:qt.None);var h={authType:g,remoteBasePath:i,contactHref:n,ha1:a,headers:Object.assign({},o),httpAgent:s,httpsAgent:A,password:u,remotePath:qWe(r),remoteURL:r,token:c,username:l,withCredentials:f};return eV(h,l,u,c,a),{copyFile:function(d,p,m){return g9e(h,d,p,m)},createDirectory:function(d,p){return kb(h,d,p)},createReadStream:function(d,p){return function(m,x){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E=new(jK()).PassThrough;return x9e(m,x,v).then(function(S){S.pipe(E)}).catch(function(S){E.emit("error",S)}),E}(h,d,p)},createWriteStream:function(d,p,m){return function(x,v){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:m9e,B=new(jK()).PassThrough,b={};E.overwrite===!1&&(b["If-None-Match"]="*");var C=Vr({url:yr(x.remoteURL,Er(v)),method:"PUT",headers:b,data:B,maxRedirects:0},x,E);return Kr(C,x).then(function(y){return Yr(x,y)}).then(function(y){setTimeout(function(){S(y)},0)}).catch(function(y){B.emit("error",y)}),B}(h,d,p,m)},customRequest:function(d,p){return v9e(h,d,p)},deleteFile:function(d,p){return C9e(h,d,p)},exists:function(d,p){return B9e(h,d,p)},getDirectoryContents:function(d,p){return E9e(h,d,p)},getFileContents:function(d,p){return b9e(h,d,p)},getFileDownloadLink:function(d){return function(p,m){var x=yr(p.remoteURL,Er(m)),v=/^https:/i.test(x)?"https":"http";switch(p.authType){case qt.None:break;case qt.Password:{var E=TK(p.headers.Authorization.replace(/^Basic /i,"").trim());x=x.replace(/^https?:\/\//,"".concat(v,"://").concat(E,"@"));break}default:throw new gt({info:{code:Hn.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(p.authType))}return x}(h,d)},getFileUploadLink:function(d){return function(p,m){var x="".concat(yr(p.remoteURL,Er(m)),"?Content-Type=application/octet-stream"),v=/^https:/i.test(x)?"https":"http";switch(p.authType){case qt.None:break;case qt.Password:{var E=TK(p.headers.Authorization.replace(/^Basic /i,"").trim());x=x.replace(/^https?:\/\//,"".concat(v,"://").concat(E,"@"));break}default:throw new gt({info:{code:Hn.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(p.authType))}return x}(h,d)},getHeaders:function(){return Object.assign({},h.headers)},getQuota:function(d){return F9e(h,d)},lock:function(d,p){return q9e(h,d,p)},moveFile:function(d,p,m){return R9e(h,d,p,m)},putFileContents:function(d,p,m){return O9e(h,d,p,m)},partialUpdateFileContents:function(d,p,m,x,v){return M9e(h,d,p,m,x,v)},getDAVCompliance:function(d){return xV(h,d)},search:function(d,p){return k9e(h,d,p)},setHeaders:function(d){h.headers=Object.assign({},d)},stat:function(d,p){return Mb(h,d,p)},unlock:function(d,p,m){return _9e(h,d,p,m)}}}var Gmr=bi.hT,Lmr=bi.O4,Hmr=bi.Kd,Wmr=bi.YK,sf=bi.UU,mV=bi.Gu,Jmr=bi.ky,Kmr=bi.h4,Vmr=bi.ch,Ymr=bi.hq,zmr=bi.i5;function vV(r){return Object.fromEntries(Object.entries(r).map(function(param){var _param=_sliced_to_array(param,2),e=_param[0],t=_param[1];return[e.toLowerCase(),t]}))}function L9e(r){return!/[^\u0000-\u00ff]/g.test(r)}SK&&mV().patch("request",function(r){return _async_to_generator(function(){var u,e,t,i,n,a,_tmp,o,c,s,A;return _ts_generator(this,function(_state){switch(_state.label){case 0:e=vV(_object_spread({},r.headers));delete e.host,delete e["content-length"];t=(u=e.accept)!=null?u:e["content-type"],i=_object_spread({},e);i.hasOwnProperty("authorization")&&(i.authorization="<retracted>");n={url:r.url,method:r.method,body:r.data,headers:e,contentType:t,throw:!1};return[4,gn(n)];case 1:a=_state.sent();_tmp=a.status===401&&BV.Platform.isIosApp&&!r.url.endsWith("/")&&!r.url.endsWith(".md")&&r.method.toUpperCase()==="PROPFIND";if(!_tmp)return[3,3];n.url="".concat(r.url,"/");return[4,gn(n)];case 2:_tmp=a=_state.sent();_state.label=3;case 3:_tmp;o=vV(_object_spread({},a.headers));for(var c in o)o.hasOwnProperty(c)&&(L9e(o[c])||(o[c]=encodeURIComponent(o[c])));A=(0,CV.getReasonPhrase)(a.status);return[2,([101,103,204,205,304].includes(a.status)?s=new Response(null,{status:a.status,statusText:A,headers:o}):s=new Response(a.arrayBuffer,{status:a.status,statusText:A,headers:o}),s)]}})})()});var Hb=typeof Buffer=="function",cvr=typeof TextDecoder=="function"?new TextDecoder:void 0,EV=typeof TextEncoder=="function"?new TextEncoder:void 0,H9e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Af=Array.prototype.slice.call(H9e),uvr=function(r){var e={};return r.forEach(function(t,i){return e[t]=i}),e}(Af);var hn=String.fromCharCode.bind(String),lvr=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):function(r){return new Uint8Array(Array.prototype.slice.call(r,0))},QV=function(r){return r.replace(/=/g,"").replace(/[+\/]/g,function(e){return e=="+"?"-":"_"})};var W9e=function(r){var e,t,i,n,a="",o=r.length%3;for(var s=0;s<r.length;){if((t=r.charCodeAt(s++))>255||(i=r.charCodeAt(s++))>255||(n=r.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=t<<16|i<<8|n,a+=Af[e>>18&63]+Af[e>>12&63]+Af[e>>6&63]+Af[e&63]}return o?a.slice(0,o-3)+"===".substring(o):a},bV=typeof btoa=="function"?function(r){return btoa(r)}:Hb?function(r){return Buffer.from(r,"binary").toString("base64")}:W9e,Lb=Hb?function(r){return Buffer.from(r).toString("base64")}:function(r){var t=[];for(var i=0,n=r.length;i<n;i+=4096)t.push(hn.apply(null,r.subarray(i,i+4096)));return bV(t.join(""))},wV=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e?QV(Lb(r)):Lb(r)},J9e=function(r){if(r.length<2){var e=r.charCodeAt(0);return e<128?r:e<2048?hn(192|e>>>6)+hn(128|e&63):hn(224|e>>>12&15)+hn(128|e>>>6&63)+hn(128|e&63)}else{var e=65536+(r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320);return hn(240|e>>>18&7)+hn(128|e>>>12&63)+hn(128|e>>>6&63)+hn(128|e&63)}},K9e=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,V9e=function(r){return r.replace(K9e,J9e)},yV=Hb?function(r){return Buffer.from(r,"utf8").toString("base64")}:EV?function(r){return Lb(EV.encode(r))}:function(r){return bV(V9e(r))},SV=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e?QV(yV(r)):yV(r)};var Zc=require("obsidian");var lte=require("obsidian");var Wb=function Wb1(r,e){return Wb=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},Wb(r,e)};function WA(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wb(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function cf(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function next(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function JA(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,a=[],o;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function KA(r,e,t){if(t||arguments.length===2)for(var i=0,n=e.length,a;i<n;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return r.concat(a||Array.prototype.slice.call(e))}function wi(r){return typeof r=="function"}function WI(r){var e=function e(i){Error.call(i),i.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var JI=WI(function(r){return function(t){r(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(i,n){return n+1+") "+i.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function uf(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var VA=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,i,n,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=cf(o),A=s.next();!A.done;A=s.next()){var u=A.value;u.remove(this)}}catch(d){e={error:d}}finally{try{A&&!A.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(wi(c))try{c()}catch(d){a=_instanceof(d,JI)?d.errors:[d]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var f=cf(l),g=f.next();!g.done;g=f.next()){var h=g.value;try{_V(h)}catch(d){a=a!=null?a:[],_instanceof(d,JI)?a=KA(KA([],JA(a)),JA(d.errors)):a.push(d)}}}catch(d){i={error:d}}finally{try{g&&!g.done&&(n=f.return)&&n.call(f)}finally{if(i)throw i.error}}}if(a)throw new JI(a)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)_V(e);else{if(_instanceof(e,r)){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&uf(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&uf(t,e),_instanceof(e,r)&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}();var Jb=VA.EMPTY;function KI(r){return _instanceof(r,VA)||r&&"closed"in r&&wi(r.remove)&&wi(r.add)&&wi(r.unsubscribe)}function _V(r){wi(r)?r():r.unsubscribe()}var Li={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var YA={setTimeout:function setTimeout1(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];var n=YA.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,KA([r,e],JA(t))):setTimeout.apply(void 0,KA([r,e],JA(t)))},clearTimeout:function clearTimeout1(r){var e=YA.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(r)},delegate:void 0};function qV(r){YA.setTimeout(function(){var e=Li.onUnhandledError;if(e)e(r);else throw r})}function Kb(){}var DV=function(){return Vb("C",void 0,void 0)}();function FV(r){return Vb("E",void 0,r)}function kV(r){return Vb("N",r,void 0)}function Vb(r,e,t){return{kind:r,value:e,error:t}}var us=null;function zA(r){if(Li.useDeprecatedSynchronousErrorHandling){var e=!us;if(e&&(us={errorThrown:!1,error:null}),r(),e){var t=us,i=t.errorThrown,n=t.error;if(us=null,i)throw n}}else r()}function RV(r){Li.useDeprecatedSynchronousErrorHandling&&us&&(us.errorThrown=!0,us.error=r)}var jb=function(r){WA(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,KI(t)&&t.add(i)):i.destination=X9e,i}return e.create=function(t,i,n){return new YI(t,i,n)},e.prototype.next=function(t){this.isStopped?zb(kV(t),this):this._next(t)},e.prototype.error=function(t){this.isStopped?zb(FV(t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?zb(DV,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(VA);var Y9e=Function.prototype.bind;function Yb(r,e){return Y9e.call(r,e)}var z9e=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){VI(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){VI(i)}else VI(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){VI(t)}},r}(),YI=function(r){WA(e,r);function e(t,i,n){var a=r.call(this)||this,o;if(wi(t)||!t)o={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0};else{var s;a&&Li.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=function(){return a.unsubscribe()},o={next:t.next&&Yb(t.next,s),error:t.error&&Yb(t.error,s),complete:t.complete&&Yb(t.complete,s)}):o=t}return a.destination=new z9e(o),a}return e}(jb);function VI(r){Li.useDeprecatedSynchronousErrorHandling?RV(r):qV(r)}function j9e(r){throw r}function zb(r,e){var t=Li.onStoppedNotification;t&&YA.setTimeout(function(){return t(r,e)})}var X9e={closed:!0,next:Kb,error:j9e,complete:Kb};var NV=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function OV(r){return r}function TV(r){return r.length===0?OV:r.length===1?r[0]:function(t){return r.reduce(function(i,n){return n(i)},t)}}var Xb=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var n=this,a=$9e(e)?e:new YI(e,t,i);return zA(function(){var o=n,s=o.operator,A=o.source;a.add(s?s.call(a,A):A?n._subscribe(a):n._trySubscribe(a))}),a},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var i=this;return t=PV(t),new t(function(n,a){var o=new YI({next:function next(s){try{e(s)}catch(A){a(A),o.unsubscribe()}},error:a,complete:n});i.subscribe(o)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[NV]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return TV(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=PV(e),new e(function(i,n){var a;t.subscribe(function(o){return a=o},function(o){return n(o)},function(){return i(a)})})},r.create=function(e){return new r(e)},r}();function PV(r){var e;return(e=r!=null?r:Li.Promise)!==null&&e!==void 0?e:Promise}function Z9e(r){return r&&wi(r.next)&&wi(r.error)&&wi(r.complete)}function $9e(r){return r&&_instanceof(r,jb)||Z9e(r)&&KI(r)}var MV=WI(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var Gr=function(r){WA(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var i=new UV(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new MV},e.prototype.next=function(t){var i=this;zA(function(){var n,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=cf(i.currentObservers),s=o.next();!s.done;s=o.next()){var A=s.value;A.next(t)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var i=this;zA(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var n=i.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;zA(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function get(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,n=this,a=n.hasError,o=n.isStopped,s=n.observers;return a||o?Jb:(this.currentObservers=null,s.push(t),new VA(function(){i.currentObservers=null,uf(s,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,n=i.hasError,a=i.thrownError,o=i.isStopped;n?t.error(a):o&&t.complete()},e.prototype.asObservable=function(){var t=new Xb;return t.source=this,t},e.create=function(t,i){return new UV(t,i)},e}(Xb);var UV=function(r){WA(e,r);function e(t,i){var n=r.call(this)||this;return n.destination=t,n.source=i,n}return e.prototype.next=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,t)},e.prototype.error=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&n!==void 0?n:Jb},e}(Gr);var GV=new Gr,lf=function(){return GV.asObservable()},Za=function(){return GV.next()};var LV=new Gr,zI=function(){return LV.asObservable()},Zb=function(r){return LV.next(r)};var HV=new Gr,WV=function(){return HV.asObservable()},ls=function(r){return HV.next(r)};var JV=new Gr,KV=function(){return JV.asObservable()},VV=function(r){return JV.next(r)};var YV=new Gr,jI=function(){return YV.asObservable()},zV=function(r,e){return YV.next({total:r,completed:e})};var jV=new Gr,XI=function(){return jV.asObservable()},XV=function(r){return jV.next(r)};var ZV=new Gr,$V=function(){return ZV.asObservable()},eY=function(r,e){return ZV.next({total:r,completed:e})};var _Cr=new Gr;var ye=function(r){return typeof r=="string"},ff=function(){var r,e,t=new Promise(function(i,n){r=i,e=n});return t.resolve=r,t.reject=e,t},rY=function(r){return r==null?"":""+r},eJe=function(r,e,t){r.forEach(function(i){e[i]&&(t[i]=e[i])})},rJe=/###/g,tY=function(r){return r&&r.indexOf("###")>-1?r.replace(rJe,"."):r},iY=function(r){return!r||ye(r)},gf=function(r,e,t){var i=ye(e)?e.split("."):e,n=0;for(;n<i.length-1;){if(iY(r))return{};var a=tY(i[n]);!r[a]&&t&&(r[a]=new t),Object.prototype.hasOwnProperty.call(r,a)?r=r[a]:r={},++n}return iY(r)?{}:{obj:r,k:tY(i[n])}},nY=function(r,e,t){var _gf=gf(r,e,Object),i=_gf.obj,n=_gf.k;if(i!==void 0||e.length===1){i[n]=t;return}var a=e[e.length-1],o=e.slice(0,e.length-1),s=gf(r,o,Object);for(;s.obj===void 0&&o.length;)a="".concat(o[o.length-1],".").concat(a),o=o.slice(0,o.length-1),s=gf(r,o,Object),s!=null&&s.obj&&typeof s.obj["".concat(s.k,".").concat(a)]!="undefined"&&(s.obj=void 0);s.obj["".concat(s.k,".").concat(a)]=t},tJe=function(r,e,t,i){var _gf=gf(r,e,Object),n=_gf.obj,a=_gf.k;n[a]=n[a]||[],n[a].push(t)},$I=function(r,e){var _gf=gf(r,e),t=_gf.obj,i=_gf.k;if(t&&Object.prototype.hasOwnProperty.call(t,i))return t[i]},iJe=function(r,e,t){var i=$I(r,t);return i!==void 0?i:$I(e,t)},fY=function(r,e,t){for(var i in e)i!=="__proto__"&&i!=="constructor"&&(i in r?ye(r[i])||_instanceof(r[i],String)||ye(e[i])||_instanceof(e[i],String)?t&&(r[i]=e[i]):fY(r[i],e[i],t):r[i]=e[i]);return r},jA=function(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},nJe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},aJe=function(r){return ye(r)?r.replace(/[&<>"'\/]/g,function(e){return nJe[e]}):r},ew=/*#__PURE__*/function(){"use strict";function ew1(e){_class_call_check(this,ew1);this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}_create_class(ew1,[{key:"getRegExp",value:function getRegExp(e){var t=this.regExpMap.get(e);if(t!==void 0)return t;var i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}]);return ew1}(),oJe=[" ",",","?","!",";"],sJe=new ew(20),AJe=function(r,e,t){e=e||"",t=t||"";var i=oJe.filter(function(o){return e.indexOf(o)<0&&t.indexOf(o)<0});if(i.length===0)return!0;var n=sJe.getRegExp("(".concat(i.map(function(o){return o==="?"?"\\?":o}).join("|"),")")),a=!n.test(r);if(!a){var o=r.indexOf(t);o>0&&!n.test(r.substring(0,o))&&(a=!0)}return a},rw=function rw1(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[e])return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0;var i=e.split(t),n=r;for(var a=0;a<i.length;){if(!n||(typeof n==="undefined"?"undefined":_type_of(n))!="object")return;var o=void 0,s="";for(var A=a;A<i.length;++A)if(A!==a&&(s+=t),s+=i[A],o=n[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o==="undefined"?"undefined":_type_of(o))>-1&&A<i.length-1)continue;a+=A-a+1;break}n=o}return n},ep=function(r){return r==null?void 0:r.replace("_","-")},cJe={type:"logger",log:function log(r){this.output("log",r)},warn:function warn(r){this.output("warn",r)},error:function error(r){this.output("error",r)},output:function output(r,e){var t,i;(i=(t=console==null?void 0:console[r])==null?void 0:t.apply)==null||i.call(t,console,e)}},ZA=/*#__PURE__*/function(){"use strict";function ZA1(e){_class_call_check(this,ZA1);var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}_create_class(ZA1,[{key:"init",value:function init(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||cJe,this.options=t,this.debug=t.debug}},{key:"log",value:function log(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}},{key:"warn",value:function warn(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}},{key:"error",value:function error(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"error","")}},{key:"deprecate",value:function deprecate(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function forward(e,t,i,n){return n&&!this.debug?null:(ye(e[0])&&(e[0]="".concat(i).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function create(e){return new ZA(this.logger,_object_spread({prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}},{key:"clone",value:function clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new ZA(this.logger,e)}}]);return ZA1}(),In=new ZA,$A=/*#__PURE__*/function(){"use strict";function $A1(){_class_call_check(this,$A1);this.observers={}}_create_class($A1,[{key:"on",value:function on(e,t){var _this=this;return e.split(" ").forEach(function(i){_this.observers[i]||(_this.observers[i]=new Map);var n=_this.observers[i].get(t)||0;_this.observers[i].set(t,n+1)}),this}},{key:"off",value:function off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}},{key:"emit",value:function emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(function(o){var _o=_sliced_to_array(o,2),s=_o[0],A=_o[1];for(var u=0;u<A;u++)s.apply(void 0,_to_consumable_array(i))}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(function(o){var _o=_sliced_to_array(o,2),s=_o[0],A=_o[1];for(var u=0;u<A;u++)s.apply(s,[e].concat(_to_consumable_array(i)))})}}]);return $A1}(),rp=/*#__PURE__*/function($A1){"use strict";_inherits(rp1,$A1);function rp1(e){_class_call_check(this,rp1);var _this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};_this=_call_super(this,rp1),_this.data=e||{},_this.options=t,_this.options.keySeparator===void 0&&(_this.options.keySeparator="."),_this.options.ignoreJSONStructure===void 0&&(_this.options.ignoreJSONStructure=!0);return _this}_create_class(rp1,[{key:"addNamespaces",value:function addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function removeNamespaces(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function getResource(e,t,i){var _s1,_s2;var u,c;var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure,s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],i&&(Array.isArray(i)?(_s1=s).push.apply(_s1,_to_consumable_array(i)):ye(i)&&a?(_s2=s).push.apply(_s2,_to_consumable_array(i.split(a))):s.push(i)));var A=$I(this.data,s);return!A&&!t&&!i&&e.indexOf(".")>-1&&(e=s[0],t=s[1],i=s.slice(2).join(".")),A||!o||!ye(i)?A:rw((c=(u=this.data)==null?void 0:u[e])==null?void 0:c[t],i,a)}},{key:"addResource",value:function addResource(e,t,i,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=[e,t];i&&(s=s.concat(o?i.split(o):i)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),nY(this.data,s,n),a.silent||this.emit("added",e,t,i,n)}},{key:"addResources",value:function addResources(e,t,i){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in i)(ye(i[a])||Array.isArray(i[a]))&&this.addResource(e,t,a,i[a],{silent:!0});n.silent||this.emit("added",e,t,i)}},{key:"addResourceBundle",value:function addResourceBundle(e,t,i,n,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=i,i=t,t=s[1]),this.addNamespaces(t);var A=$I(this.data,s)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),n?fY(A,i,a):A=_object_spread({},A,i),nY(this.data,s,A),o.silent||this.emit("added",e,t,i)}},{key:"removeResourceBundle",value:function removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}},{key:"getResourceBundle",value:function getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}},{key:"getDataByLanguage",value:function getDataByLanguage(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function hasLanguageSomeTranslations(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(n){return t[n]&&Object.keys(t[n]).length>0})}},{key:"toJSON",value:function toJSON(){return this.data}}]);return rp1}($A),gY={processors:{},addPostProcessor:function addPostProcessor(r){this.processors[r.name]=r},handle:function handle(r,e,t,i,n){var _this=this;return r.forEach(function(a){var o,s;e=(s=(o=_this.processors[a])==null?void 0:o.process(e,t,i,n))!=null?s:e}),e}},aY={},oY=function(r){return!ye(r)&&typeof r!="boolean"&&typeof r!="number"},ec=/*#__PURE__*/function($A1){"use strict";_inherits(ec1,$A1);function ec1(e){_class_call_check(this,ec1);var _this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_this=_call_super(this,ec1),eJe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,_this),_this.options=t,_this.options.keySeparator===void 0&&(_this.options.keySeparator="."),_this.logger=In.create("translator");return _this}_create_class(ec1,[{key:"changeLanguage",value:function changeLanguage(e){e&&(this.language=e)}},{key:"exists",value:function exists(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;var i=this.resolve(e,t);return(i==null?void 0:i.res)!==void 0}},{key:"extractFromKey",value:function extractFromKey(e,t){var i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");var n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],o=i&&e.indexOf(i)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!AJe(e,i,n);if(o&&!s){var A=e.match(this.interpolator.nestingRegexp);if(A&&A.length>0)return{key:e,namespaces:ye(a)?[a]:a};var u=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(n)}return{key:e,namespaces:ye(a)?[a]:a}}},{key:"translate",value:function translate(e,t,i){var _this=this;if((typeof t==="undefined"?"undefined":_type_of(t))!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),(typeof t==="undefined"?"undefined":_type_of(t))=="object"&&(t=_object_spread({},t)),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);var n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,_this_extractFromKey=this.extractFromKey(e[e.length-1],t),o=_this_extractFromKey.key,s=_this_extractFromKey.namespaces,A=s[s.length-1],u=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(c){var w=t.nsSeparator||this.options.nsSeparator;return n?{res:"".concat(A).concat(w).concat(o),usedKey:o,exactUsedKey:o,usedLng:u,usedNS:A,usedParams:this.getUsedParamsDetails(t)}:"".concat(A).concat(w).concat(o)}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:A,usedParams:this.getUsedParamsDetails(t)}:o}var l=this.resolve(e,t),f=l==null?void 0:l.res,g=(l==null?void 0:l.usedKey)||o,h=(l==null?void 0:l.exactUsedKey)||o,d=["[object Number]","[object Function]","[object RegExp]"],p=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,x=t.count!==void 0&&!ye(t.count),v=ec.hasDefaultValue(t),E=x?this.pluralResolver.getSuffix(u,t.count,t):"",S=t.ordinal&&x?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",B=x&&!t.ordinal&&t.count===0,b=B&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]||t["defaultValue".concat(E)]||t["defaultValue".concat(S)]||t.defaultValue,C=f;m&&!f&&v&&(C=b);var y=oY(C),q=Object.prototype.toString.apply(C);if(m&&C&&y&&d.indexOf(q)<0&&!(ye(p)&&Array.isArray(C))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w2=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,C,_object_spread_props(_object_spread({},t),{ns:s})):"key '".concat(o," (").concat(this.language,")' returned an object instead of string.");return n?(l.res=w2,l.usedParams=this.getUsedParamsDetails(t),l):w2}if(a){var w3=Array.isArray(C),N=w3?[]:{},F=w3?h:g;for(var M in C)if(Object.prototype.hasOwnProperty.call(C,M)){var U="".concat(F).concat(a).concat(M);v&&!f?N[M]=this.translate(U,_object_spread_props(_object_spread({},t),{defaultValue:oY(b)?b[M]:void 0,joinArrays:!1,ns:s})):N[M]=this.translate(U,_object_spread_props(_object_spread({},t),{joinArrays:!1,ns:s})),N[M]===U&&(N[M]=C[M])}f=N}}else if(m&&ye(p)&&Array.isArray(f))f=f.join(p),f&&(f=this.extendTranslation(f,e,t,i));else{var w4=!1,N1=!1;!this.isValidLookup(f)&&v&&(w4=!0,f=b),this.isValidLookup(f)||(N1=!0,f=o);var M1=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N1?void 0:f,U1=v&&b!==f&&this.options.updateMissing;if(N1||w4||U1){if(this.logger.log(U1?"updateKey":"missingKey",u,A,o,U1?b:f),a){var J=this.resolve(o,_object_spread_props(_object_spread({},t),{keySeparator:!1}));J&&J.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var G=[],K=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&K&&K[0])for(var J3=0;J3<K.length;J3++)G.push(K[J3]);else this.options.saveMissingTo==="all"?G=this.languageUtils.toResolveHierarchy(t.lng||this.language):G.push(t.lng||this.language);var ce=function(J,Ce,L){var pe;var Ae=v&&L!==f?L:M1;_this.options.missingKeyHandler?_this.options.missingKeyHandler(J,A,Ce,Ae,U1,t):(pe=_this.backendConnector)!=null&&pe.saveMissing&&_this.backendConnector.saveMissing(J,A,Ce,Ae,U1,t),_this.emit("missingKey",J,A,Ce,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?G.forEach(function(J){var Ce=_this.pluralResolver.getSuffixes(J,t);B&&t["defaultValue".concat(_this.options.pluralSeparator,"zero")]&&Ce.indexOf("".concat(_this.options.pluralSeparator,"zero"))<0&&Ce.push("".concat(_this.options.pluralSeparator,"zero")),Ce.forEach(function(L){ce([J],o+L,t["defaultValue".concat(L)]||b)})}):ce(G,o,b))}f=this.extendTranslation(f,e,t,l,i),N1&&f===o&&this.options.appendNamespaceToMissingKey&&(f="".concat(A,":").concat(o)),(N1||w4)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(A,":").concat(o):o,w4?f:void 0))}return n?(l.res=f,l.usedParams=this.getUsedParamsDetails(t),l):f}},{key:"extendTranslation",value:function extendTranslation(e,t,i,n,a){var u,c;var o=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,_object_spread({},this.options.interpolation.defaultVariables,i),i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init(_object_spread_props(_object_spread({},i),{interpolation:_object_spread({},this.options.interpolation,i.interpolation)}));var l=ye(e)&&(((c=i==null?void 0:i.interpolation)==null?void 0:c.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(l){var h=e.match(this.interpolator.nestingRegexp);f=h&&h.length}var g=i.replace&&!ye(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(g=_object_spread({},this.options.interpolation.defaultVariables,g)),e=this.interpolator.interpolate(e,g,i.lng||this.language||n.usedLng,i),l){var h2=e.match(this.interpolator.nestingRegexp),d=h2&&h2.length;f<d&&(i.nest=!1)}!i.lng&&n&&n.res&&(i.lng=this.language||n.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){var _o;for(var h=arguments.length,d=new Array(h),p=0;p<h;p++)d[p]=arguments[p];return(a==null?void 0:a[0])===d[0]&&!i.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(d[0]," in key: ").concat(t[0])),null):(_o=o).translate.apply(_o,_to_consumable_array(d).concat([t]))},i)),i.interpolation&&this.interpolator.reset()}var s=i.postProcess||this.options.postProcess,A=ye(s)?[s]:s;return e!=null&&A!=null&&A.length&&i.applyPostProcessor!==!1&&(e=gY.handle(A,e,t,this.options&&this.options.postProcessPassResolved?_object_spread({i18nResolved:_object_spread_props(_object_spread({},n),{usedParams:this.getUsedParamsDetails(i)})},i):i,this)),e}},{key:"resolve",value:function resolve(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,n,a,o,s;return ye(e)&&(e=[e]),e.forEach(function(A){if(_this.isValidLookup(i))return;var u=_this.extractFromKey(A,t),c=u.key;n=c;var l=u.namespaces;_this.options.fallbackNS&&(l=l.concat(_this.options.fallbackNS));var f=t.count!==void 0&&!ye(t.count),g=f&&!t.ordinal&&t.count===0,h=t.context!==void 0&&(ye(t.context)||typeof t.context=="number")&&t.context!=="",d=t.lngs?t.lngs:_this.languageUtils.toResolveHierarchy(t.lng||_this.language,t.fallbackLng);l.forEach(function(p){var m,x;_this.isValidLookup(i)||(s=p,!aY["".concat(d[0],"-").concat(p)]&&(m=_this.utils)!=null&&m.hasLoadedNamespace&&!((x=_this.utils)!=null&&x.hasLoadedNamespace(s))&&(aY["".concat(d[0],"-").concat(p)]=!0,_this.logger.warn('key "'.concat(n,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(s,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach(function(v){var B;if(_this.isValidLookup(i))return;o=v;var E=[c];if((B=_this.i18nFormat)!=null&&B.addLookupKeys)_this.i18nFormat.addLookupKeys(E,c,v,p,t);else{var b;f&&(b=_this.pluralResolver.getSuffix(v,t.count,t));var C="".concat(_this.options.pluralSeparator,"zero"),y="".concat(_this.options.pluralSeparator,"ordinal").concat(_this.options.pluralSeparator);if(f&&(E.push(c+b),t.ordinal&&b.indexOf(y)===0&&E.push(c+b.replace(y,_this.options.pluralSeparator)),g&&E.push(c+C)),h){var q="".concat(c).concat(_this.options.contextSeparator).concat(t.context);E.push(q),f&&(E.push(q+b),t.ordinal&&b.indexOf(y)===0&&E.push(q+b.replace(y,_this.options.pluralSeparator)),g&&E.push(q+C))}}var S;for(;S=E.pop();)_this.isValidLookup(i)||(a=S,i=_this.getResource(v,p,S,t))}))})}),{res:i,usedKey:n,exactUsedKey:a,usedLng:o,usedNS:s}}},{key:"isValidLookup",value:function isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}},{key:"getResource",value:function getResource(e,t,i){var a;var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,t,i,n):this.resourceStore.getResource(e,t,i,n)}},{key:"getUsedParamsDetails",value:function getUsedParamsDetails(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!ye(e.replace),n=i?e.replace:e;if(i&&typeof e.count!="undefined"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n=_object_spread({},this.options.interpolation.defaultVariables,n)),!i){n=_object_spread({},n);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=t[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;delete n[a]}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}return n}}],[{key:"hasDefaultValue",value:function hasDefaultValue(e){var t="defaultValue";for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&e[i]!==void 0)return!0;return!1}}]);return ec1}($A),tp=/*#__PURE__*/function(){"use strict";function tp1(e){_class_call_check(this,tp1);this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=In.create("languageUtils")}_create_class(tp1,[{key:"getScriptPartFromCode",value:function getScriptPartFromCode(e){if(e=ep(e),!e||e.indexOf("-")<0)return null;var t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function getLanguagePartFromCode(e){if(e=ep(e),!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function formatLanguageCode(e){if(ye(e)&&e.indexOf("-")>-1){var t;try{t=Intl.getCanonicalLocales(e)[0]}catch(i){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function getBestMatchFromCodes(e){var _this=this;if(!e)return null;var t;return e.forEach(function(i){if(t)return;var n=_this.formatLanguageCode(i);(!_this.options.supportedLngs||_this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(function(i){if(t)return;var n=_this.getLanguagePartFromCode(i);if(_this.isSupportedCode(n))return t=n;t=_this.options.supportedLngs.find(function(a){if(a===n)return a;if(!(a.indexOf("-")<0&&n.indexOf("-")<0)&&(a.indexOf("-")>0&&n.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===n||a.indexOf(n)===0&&n.length>1))return a})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}},{key:"getFallbackCodes",value:function getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),ye(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];var i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}},{key:"toResolveHierarchy",value:function toResolveHierarchy(e,t){var _this=this;var i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],a=function(o){o&&(_this.isSupportedCode(o)?n.push(o):_this.logger.warn("rejecting language code not found in supportedLngs: ".concat(o)))};return ye(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):ye(e)&&a(this.formatLanguageCode(e)),i.forEach(function(o){n.indexOf(o)<0&&a(_this.formatLanguageCode(o))}),n}}]);return tp1}(),sY={zero:0,one:1,two:2,few:3,many:4,other:5},AY={select:function(r){return r===1?"one":"other"},resolvedOptions:function(){return{pluralCategories:["one","other"]}}},tw=/*#__PURE__*/function(){"use strict";function tw1(e){_class_call_check(this,tw1);var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=In.create("pluralResolver"),this.pluralRulesCache={}}_create_class(tw1,[{key:"addRule",value:function addRule(e,t){this.rules[e]=t}},{key:"clearCache",value:function clearCache(){this.pluralRulesCache={}}},{key:"getRule",value:function getRule(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=ep(e==="dev"?"en":e),n=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:n});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];var o;try{o=new Intl.PluralRules(i,{type:n})}catch(s){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),AY;if(!e.match(/-|_/))return AY;var A=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(A,t)}return this.pluralRulesCache[a]=o,o}},{key:"needsPlural",value:function needsPlural(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(e,t);return i||(i=this.getRule("dev",t)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}},{key:"getPluralFormsOfKey",value:function getPluralFormsOfKey(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(function(n){return"".concat(t).concat(n)})}},{key:"getSuffixes",value:function getSuffixes(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(e,t);return i||(i=this.getRule("dev",t)),i?i.resolvedOptions().pluralCategories.sort(function(n,a){return sY[n]-sY[a]}).map(function(n){return"".concat(_this.options.prepend).concat(t.ordinal?"ordinal".concat(_this.options.prepend):"").concat(n)}):[]}},{key:"getSuffix",value:function getSuffix(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=this.getRule(e,i);return n?"".concat(this.options.prepend).concat(i.ordinal?"ordinal".concat(this.options.prepend):"").concat(n.select(t)):(this.logger.warn("no plural rule found for: ".concat(e)),this.getSuffix("dev",t,i))}}]);return tw1}(),cY=function cY1(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=iJe(r,e,t);return!a&&n&&ye(t)&&(a=rw(r,t,i),a===void 0&&(a=rw(e,t,i))),a},$b=function(r){return r.replace(/\$/g,"$$$$")},iw=/*#__PURE__*/function(){"use strict";function iw1(){_class_call_check(this,iw1);var t;var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=In.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||function(i){return i},this.init(e)}_create_class(iw1,[{key:"init",value:function init(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var _e_interpolation=e.interpolation,t=_e_interpolation.escape,i=_e_interpolation.escapeValue,n=_e_interpolation.useRawValueToEscape,a=_e_interpolation.prefix,o=_e_interpolation.prefixEscaped,s=_e_interpolation.suffix,A=_e_interpolation.suffixEscaped,u=_e_interpolation.formatSeparator,c=_e_interpolation.unescapeSuffix,l=_e_interpolation.unescapePrefix,f=_e_interpolation.nestingPrefix,g=_e_interpolation.nestingPrefixEscaped,h=_e_interpolation.nestingSuffix,d=_e_interpolation.nestingSuffixEscaped,p=_e_interpolation.nestingOptionsSeparator,m=_e_interpolation.maxReplaces,x=_e_interpolation.alwaysFormat;this.escape=t!==void 0?t:aJe,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=a?jA(a):o||"{{",this.suffix=s?jA(s):A||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":l||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?jA(f):g||jA("$t("),this.nestingSuffix=h?jA(h):d||jA(")"),this.nestingOptionsSeparator=p||",",this.maxReplaces=m||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}},{key:"reset",value:function reset(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function resetRegExp(){var e=function(t,i){return(t==null?void 0:t.source)===i?(t.lastIndex=0,t):new RegExp(i,"g")};this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}},{key:"interpolate",value:function interpolate(e,t,i,n){var _this=this;var g;var a,o,s,A=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=function(h){if(h.indexOf(_this.formatSeparator)<0){var x=cY(t,A,h,_this.options.keySeparator,_this.options.ignoreJSONStructure);return _this.alwaysFormat?_this.format(x,void 0,i,_object_spread_props(_object_spread({},n,t),{interpolationkey:h})):x}var d=h.split(_this.formatSeparator),p=d.shift().trim(),m=d.join(_this.formatSeparator).trim();return _this.format(cY(t,A,p,_this.options.keySeparator,_this.options.ignoreJSONStructure),m,i,_object_spread_props(_object_spread({},n,t),{interpolationkey:p}))};this.resetRegExp();var c=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,l=((g=n==null?void 0:n.interpolation)==null?void 0:g.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(h){return $b(h)}},{regex:this.regexp,safeValue:function(h){return _this.escapeValue?$b(_this.escape(h)):$b(h)}}].forEach(function(h){for(s=0;a=h.regex.exec(e);){var d=a[1].trim();if(o=u(d),o===void 0)if(typeof c=="function"){var m=c(e,a,n);o=ye(m)?m:""}else if(n&&Object.prototype.hasOwnProperty.call(n,d))o="";else if(l){o=a[0];continue}else _this.logger.warn("missed to pass in variable ".concat(d," for interpolating ").concat(e)),o="";else!ye(o)&&!_this.useRawValueToEscape&&(o=rY(o));var p=h.safeValue(o);if(e=e.replace(a[0],p),l?(h.regex.lastIndex+=o.length,h.regex.lastIndex-=a[0].length):h.regex.lastIndex=0,s++,s>=_this.maxReplaces)break}}),e}},{key:"nest",value:function nest(e,t){var _this=this;var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,a,o,s=function(A,u){var d;var c=_this.nestingOptionsSeparator;if(A.indexOf(c)<0)return A;var l=A.split(new RegExp("".concat(c,"[ ]*{"))),f="{".concat(l[1]);A=l[0],f=_this.interpolate(f,o);var g=f.match(/'/g),h=f.match(/"/g);(((d=g==null?void 0:g.length)!=null?d:0)%2===0&&!h||h.length%2!==0)&&(f=f.replace(/'/g,'"'));try{o=JSON.parse(f),u&&(o=_object_spread({},u,o))}catch(p){return _this.logger.warn("failed parsing options string in nesting for key ".concat(A),p),"".concat(A).concat(c).concat(f)}return o.defaultValue&&o.defaultValue.indexOf(_this.prefix)>-1&&delete o.defaultValue,A};for(;n=this.nestingRegexp.exec(e);){var A=[];o=_object_spread({},i),o=o.replace&&!ye(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;var u=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map(function(l){return l.trim()});n[1]=c.shift(),A=c,u=!0}if(a=t(s.call(this,n[1].trim(),o),o),a&&n[0]===e&&!ye(a))return a;ye(a)||(a=rY(a)),a||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),a=""),u&&(a=A.reduce(function(c,l){return _this.format(c,l,i.lng,_object_spread_props(_object_spread({},i),{interpolationkey:n[1].trim()}))},a.trim())),e=e.replace(n[0],a),this.regexp.lastIndex=0}return e}}]);return iw1}(),uJe=function(r){var e=r.toLowerCase().trim(),t={};if(r.indexOf("(")>-1){var i=r.split("(");e=i[0].toLowerCase().trim();var n=i[1].substring(0,i[1].length-1);e==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(function(o){if(o){var _o_split=_to_array(o.split(":")),s=_o_split[0],A=_o_split.slice(1),u=A.join(":").trim().replace(/^'+|'+$/g,""),c=s.trim();t[c]||(t[c]=u),u==="false"&&(t[c]=!1),u==="true"&&(t[c]=!0),isNaN(u)||(t[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},XA=function(r){var e={};return function(t,i,n){var a=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(a=_object_spread_props(_object_spread({},a),_define_property({},n.interpolationkey,void 0)));var o=i+JSON.stringify(a),s=e[o];return s||(s=r(ep(i),n),e[o]=s),s(t)}},nw=/*#__PURE__*/function(){"use strict";function nw1(){_class_call_check(this,nw1);var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=In.create("formatter"),this.options=e,this.formats={number:XA(function(t,i){var n=new Intl.NumberFormat(t,_object_spread({},i));return function(a){return n.format(a)}}),currency:XA(function(t,i){var n=new Intl.NumberFormat(t,_object_spread_props(_object_spread({},i),{style:"currency"}));return function(a){return n.format(a)}}),datetime:XA(function(t,i){var n=new Intl.DateTimeFormat(t,_object_spread({},i));return function(a){return n.format(a)}}),relativetime:XA(function(t,i){var n=new Intl.RelativeTimeFormat(t,_object_spread({},i));return function(a){return n.format(a,i.range||"day")}}),list:XA(function(t,i){var n=new Intl.ListFormat(t,_object_spread({},i));return function(a){return n.format(a)}})},this.init(e)}_create_class(nw1,[{key:"init",value:function init(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}},{key:"add",value:function add(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function addCached(e,t){this.formats[e.toLowerCase().trim()]=XA(t)}},{key:"format",value:function format(e,t,i){var _this=this;var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(function(s){return s.indexOf(")")>-1})){var s=a.findIndex(function(A){return A.indexOf(")")>-1});a[0]=[a[0]].concat(_to_consumable_array(a.splice(1,s))).join(this.formatSeparator)}return a.reduce(function(s,A){var l;var _uJe=uJe(A),u=_uJe.formatName,c=_uJe.formatOptions;if(_this.formats[u]){var f=s;try{var _$g=((l=n==null?void 0:n.formatParams)==null?void 0:l[n.interpolationkey])||{},h=_$g.locale||_$g.lng||n.locale||n.lng||i;f=_this.formats[u](s,h,_object_spread({},c,n,_$g))}catch(g){_this.logger.warn(g)}return f}else _this.logger.warn("there was no format function for ".concat(u));return s},e)}}]);return nw1}(),lJe=function(r,e){r.pending[e]!==void 0&&(delete r.pending[e],r.pendingCount--)},aw=/*#__PURE__*/function($A1){"use strict";_inherits(aw1,$A1);function aw1(e,t,i){_class_call_check(this,aw1);var _this;var a,o;var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};_this=_call_super(this,aw1),_this.backend=e,_this.store=t,_this.services=i,_this.languageUtils=i.languageUtils,_this.options=n,_this.logger=In.create("backendConnector"),_this.waitingReads=[],_this.maxParallelReads=n.maxParallelReads||10,_this.readingCalls=0,_this.maxRetries=n.maxRetries>=0?n.maxRetries:5,_this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,_this.state={},_this.queue=[],(o=(a=_this.backend)==null?void 0:a.init)==null||o.call(a,i,n.backend,n);return _this}_create_class(aw1,[{key:"queueLoad",value:function queueLoad(e,t,i,n){var _this=this;var a={},o={},s={},A={};return e.forEach(function(u){var c=!0;t.forEach(function(l){var f="".concat(u,"|").concat(l);!i.reload&&_this.store.hasResourceBundle(u,l)?_this.state[f]=2:_this.state[f]<0||(_this.state[f]===1?o[f]===void 0&&(o[f]=!0):(_this.state[f]=1,c=!1,o[f]===void 0&&(o[f]=!0),a[f]===void 0&&(a[f]=!0),A[l]===void 0&&(A[l]=!0)))}),c||(s[u]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(A)}}},{key:"loaded",value:function loaded(e,t,i){var n=e.split("|"),a=n[0],o=n[1];t&&this.emit("failedLoading",a,o,t),!t&&i&&this.store.addResourceBundle(a,o,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);var s={};this.queue.forEach(function(A){tJe(A.loaded,[a],o),lJe(A,e),t&&A.errors.push(t),A.pendingCount===0&&!A.done&&(Object.keys(A.loaded).forEach(function(u){s[u]||(s[u]={});var c=A.loaded[u];c.length&&c.forEach(function(l){s[u][l]===void 0&&(s[u][l]=!0)})}),A.done=!0,A.errors.length?A.callback(A.errors):A.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(A){return!A.done})}},{key:"read",value:function read(e,t,i){var _this=this;var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:n,wait:a,callback:o});return}this.readingCalls++;var s=function(u,c){if(_this.readingCalls--,_this.waitingReads.length>0){var l=_this.waitingReads.shift();_this.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}if(u&&c&&n<_this.maxRetries){setTimeout(function(){_this.read.call(_this,e,t,i,n+1,a*2,o)},a);return}o(u,c)},A=this.backend[i].bind(this.backend);if(A.length===2){try{var _$u=A(e,t);_$u&&typeof _$u.then=="function"?_$u.then(function(c){return s(null,c)}).catch(s):s(null,_$u)}catch(u){s(u)}return}return A(e,t,s)}},{key:"prepareLoading",value:function prepareLoading(e,t){var _this=this;var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();ye(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ye(t)&&(t=[t]);var a=this.queueLoad(e,t,i,n);if(!a.toLoad.length)return a.pending.length||n(),null;a.toLoad.forEach(function(o){_this.loadOne(o)})}},{key:"load",value:function load(e,t,i){this.prepareLoading(e,t,{},i)}},{key:"reload",value:function reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}},{key:"loadOne",value:function loadOne(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=e.split("|"),n=i[0],a=i[1];this.read(n,a,"read",void 0,void 0,function(o,s){o&&_this.logger.warn("".concat(t,"loading namespace ").concat(a," for language ").concat(n," failed"),o),!o&&s&&_this.logger.log("".concat(t,"loaded namespace ").concat(a," for language ").concat(n),s),_this.loaded(e,o,s)})}},{key:"saveMissing",value:function saveMissing(e,t,i,n,a){var A,u,c,l,f;var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if((u=(A=this.services)==null?void 0:A.utils)!=null&&u.hasLoadedNamespace&&!((l=(c=this.services)==null?void 0:c.utils)!=null&&l.hasLoadedNamespace(t))){this.logger.warn('did not save key "'.concat(i,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if((f=this.backend)!=null&&f.create){var g=_object_spread_props(_object_spread({},o),{isUpdate:a}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var _$d;h.length===5?_$d=h(e,t,i,n,g):_$d=h(e,t,i,n),_$d&&typeof _$d.then=="function"?_$d.then(function(p){return s(null,p)}).catch(s):s(null,_$d)}catch(d){s(d)}else h(e,t,i,n,s,g)}!e||!e[0]||this.store.addResource(e[0],t,i,n)}}}]);return aw1}($A),uY=function(){return{debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(r){var e={};if(_type_of(r[1])=="object"&&(e=r[1]),ye(r[1])&&(e.defaultValue=r[1]),ye(r[2])&&(e.tDescription=r[2]),_type_of(r[2])=="object"||_type_of(r[3])=="object"){var t=r[3]||r[2];Object.keys(t).forEach(function(i){e[i]=t[i]})}return e},interpolation:{escapeValue:!0,format:function(r){return r},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}},lY=function(r){var e,t;return ye(r.ns)&&(r.ns=[r.ns]),ye(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),ye(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),((t=(e=r.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r},ZI=function(){},fJe=function(r){Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(function(t){typeof r[t]=="function"&&(r[t]=r[t].bind(r))})},fs=/*#__PURE__*/function($A1){"use strict";_inherits(fs1,$A1);function fs1(){_class_call_check(this,fs1);var _this;var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(_this=_call_super(this,fs1),_this.options=lY(e),_this.services={},_this.logger=In,_this.modules={external:[]},fJe(_this),t&&!_this.isInitialized&&!e.isClone){if(!_this.options.initAsync)return _possible_constructor_return(_this,(_this.init(e,t),_this));setTimeout(function(){_this.init(e,t)},0)}return _this}_create_class(fs1,[{key:"init",value:function init(){var _this=this;var e=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(i=t,t={}),t.defaultNS==null&&t.ns&&(ye(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var n=uY();this.options=_object_spread({},n,this.options,lY(t)),this.options.interpolation=_object_spread({},n.interpolation,this.options.interpolation),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);var a=function(c){return c?typeof c=="function"?new c:c:null};if(!this.options.isClone){this.modules.logger?In.init(a(this.modules.logger),this.options):In.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:c=nw;var l=new tp(this.options);this.store=new rp(this.options.resources,this.options);var f=this.services;f.logger=In,f.resourceStore=this.store,f.languageUtils=l,f.pluralResolver=new tw(l,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(f.formatter=a(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new iw(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new aw(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(g){var _e1;for(var h=arguments.length,d=new Array(h>1?h-1:0),p=1;p<h;p++)d[p-1]=arguments[p];(_e1=e).emit.apply(_e1,[g].concat(_to_consumable_array(d)))}),this.modules.languageDetector&&(f.languageDetector=a(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=a(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new ec(this.services,this.options),this.translator.on("*",function(g){var _e1;for(var h=arguments.length,d=new Array(h>1?h-1:0),p=1;p<h;p++)d[p-1]=arguments[p];(_e1=e).emit.apply(_e1,[g].concat(_to_consumable_array(d)))}),this.modules.external.forEach(function(g){g.init&&g.init(_this)})}if(this.format=this.options.interpolation.format,i||(i=ZI),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c2=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c2.length>0&&c2[0]!=="dev"&&(this.options.lng=c2[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(c){_this[c]=function(){var _e_store;return(_e_store=e.store)[c].apply(_e_store,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(c){_this[c]=function(){var _e_store;return(_e_store=e.store)[c].apply(_e_store,arguments),e}});var A=ff(),u=function(){var c=function(l,f){_this.isInitializing=!1,_this.isInitialized&&!_this.initializedStoreOnce&&_this.logger.warn("init: i18next is already initialized. You should call init just once!"),_this.isInitialized=!0,_this.options.isClone||_this.logger.log("initialized",_this.options),_this.emit("initialized",_this.options),A.resolve(f),i(l,f)};if(_this.languages&&!_this.isInitialized)return c(null,_this.t.bind(_this));_this.changeLanguage(_this.options.lng,c)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),A}},{key:"loadResources",value:function loadResources(e){var _this=this;var a,o;var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ZI,n=ye(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();var s=[],A=function(u){if(!u||u==="cimode")return;_this.services.languageUtils.toResolveHierarchy(u).forEach(function(l){l!=="cimode"&&s.indexOf(l)<0&&s.push(l)})};n?A(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(c){return A(c)}),(o=(a=this.options.preload)==null?void 0:a.forEach)==null||o.call(a,function(u){return A(u)}),this.services.backendConnector.load(s,this.options.ns,function(u){!u&&!_this.resolvedLanguage&&_this.language&&_this.setResolvedLanguage(_this.language),i(u)})}else i(null)}},{key:"reloadResources",value:function reloadResources(e,t,i){var n=ff();return typeof e=="function"&&(i=e,e=void 0),typeof t=="function"&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=ZI),this.services.backendConnector.reload(e,t,function(a){n.resolve(),i(a)}),n}},{key:"use",value:function use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&gY.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}},{key:"changeLanguage",value:function changeLanguage(e,t){var _this=this;var i=this;this.isLanguageChangingTo=e;var n=ff();this.emit("languageChanging",e);var a=function(A){_this.language=A,_this.languages=_this.services.languageUtils.toResolveHierarchy(A),_this.resolvedLanguage=void 0,_this.setResolvedLanguage(A)},o=function(A,u){u?(a(u),_this.translator.changeLanguage(u),_this.isLanguageChangingTo=void 0,_this.emit("languageChanged",u),_this.logger.log("languageChanged",u)):_this.isLanguageChangingTo=void 0,n.resolve(function(){var _i1;return(_i1=i).t.apply(_i1,arguments)}),t&&t(A,function(){var _i1;return(_i1=i).t.apply(_i1,arguments)})},s=function(A){var c,l;!e&&!A&&_this.services.languageDetector&&(A=[]);var u=ye(A)?A:_this.services.languageUtils.getBestMatchFromCodes(A);u&&(_this.language||a(u),_this.translator.language||_this.translator.changeLanguage(u),(l=(c=_this.services.languageDetector)==null?void 0:c.cacheUserLanguage)==null||l.call(c,u)),_this.loadResources(u,function(f){o(f,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),n}},{key:"getFixedT",value:function getFixedT(e,t,i){var n=this;var a=function a1(o,s){var A;if((typeof s==="undefined"?"undefined":_type_of(s))!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),l=2;l<u;l++)c[l-2]=arguments[l];A=n.options.overloadTranslationOptionHandler([o,s].concat(c))}else A=_object_spread({},s);A.lng=A.lng||a.lng,A.lngs=A.lngs||a.lngs,A.ns=A.ns||a.ns,A.keyPrefix!==""&&(A.keyPrefix=A.keyPrefix||i||a.keyPrefix);var f=n.options.keySeparator||".",g;return A.keyPrefix&&Array.isArray(o)?g=o.map(function(h){return"".concat(A.keyPrefix).concat(f).concat(h)}):g=A.keyPrefix?"".concat(A.keyPrefix).concat(f).concat(o):o,n.t(g,A)};return ye(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=i,a}},{key:"t",value:function t(){var _n;var n;for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return(n=this.translator)==null?void 0:(_n=n).translate.apply(_n,_to_consumable_array(t))}},{key:"exists",value:function exists(){var _n;var n;for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return(n=this.translator)==null?void 0:(_n=n).exists.apply(_n,_to_consumable_array(t))}},{key:"setDefaultNamespace",value:function setDefaultNamespace(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function hasLoadedNamespace(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var o=function(s,A){var u=_this.services.backendConnector.state["".concat(s,"|").concat(A)];return u===-1||u===0||u===2};if(t.precheck){var s=t.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,e)&&(!n||o(a,e)))}},{key:"loadNamespaces",value:function loadNamespaces(e,t){var _this=this;var i=ff();return this.options.ns?(ye(e)&&(e=[e]),e.forEach(function(n){_this.options.ns.indexOf(n)<0&&_this.options.ns.push(n)}),this.loadResources(function(n){i.resolve(),t&&t(n)}),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function loadLanguages(e,t){var _this=this;var i=ff();ye(e)&&(e=[e]);var n=this.options.preload||[],a=e.filter(function(o){return n.indexOf(o)<0&&_this.services.languageUtils.isSupportedCode(o)});return a.length?(this.options.preload=n.concat(a),this.loadResources(function(o){i.resolve(),t&&t(o)}),i):(t&&t(),Promise.resolve())}},{key:"dir",value:function dir(e){var n,a;if(e||(e=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!e)return"rtl";var t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=((a=this.services)==null?void 0:a.languageUtils)||new tp(uY());return t.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function cloneInstance(){var _this=this;var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ZI,i=e.forkResourceStore;i&&delete e.forkResourceStore;var n=_object_spread_props(_object_spread({},this.options,e),{isClone:!0}),a=new fs(n);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(function(s){a[s]=_this[s]}),a.services=_object_spread({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){var s=Object.keys(this.store.data).reduce(function(A,u){return A[u]=_object_spread({},_this.store.data[u]),Object.keys(A[u]).reduce(function(c,l){return c[l]=_object_spread({},A[u][l]),c},{})},{});a.store=new rp(s,n),a.services.resourceStore=a.store}return a.translator=new ec(a.services,n),a.translator.on("*",function(s){var _a;for(var A=arguments.length,u=new Array(A>1?A-1:0),c=1;c<A;c++)u[c-1]=arguments[c];(_a=a).emit.apply(_a,[s].concat(_to_consumable_array(u)))}),a.init(n,t),a.translator.options=n,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}],[{key:"createInstance",value:function createInstance(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new fs(e,t)}}]);return fs1}($A),it=fs.createInstance();it.createInstance=fs.createInstance;var UCr=it.createInstance,GCr=it.dir,LCr=it.init,HCr=it.loadResources,WCr=it.reloadResources,JCr=it.use,KCr=it.changeLanguage,VCr=it.getFixedT,YCr=it.t,zCr=it.exists,jCr=it.setDefaultNamespace,XCr=it.hasLoadedNamespace,ZCr=it.loadNamespaces,$Cr=it.loadLanguages;var dY={errors:{filenameUnsupportedChars:"File {{path}} contains unsupported characters: {{chars}}"},settings:{language:{name:"Language",desc:"Select interface language",auto:"Auto detect"},account:{name:"Account",desc:"Enter your WebDAV account",placeholder:"Enter your account"},credential:{name:"Credential",desc:"Enter your WebDAV credential",placeholder:"Enter your credential"},checkConnection:{name:"Check connection",desc:"Click to check WebDAV connection",success:"WebDAV connection successful",failure:"WebDAV connection failed",successButton:"Connected ✓",failureButton:"Failed \xd7"},remoteDir:{name:"Remote directory",desc:"Enter the remote directory",placeholder:"Enter the remote directory",edit:"Edit"},login:{name:"Login",desc:"Click to login",success:"Login successful",failure:"Login failed, please try again"},loginMode:{name:"Login mode",manual:"Manual input",sso:"Single sign-on"},ssoStatus:{loggedIn:"Logged in",notLoggedIn:"Not logged in",logout:"Logout",logoutSuccess:"Logged out successfully"},useGitStyle:{name:"Use git-style conflict markers",desc:"Use <<<<<<< and >>>>>>> markers for conflicts instead of HTML tags"},backupWarning:{name:"Backup warning",desc:"⚠️ Note: Sync process will modify or delete local files. Please backup important files before syncing."},conflictStrategy:{name:"Conflict resolution strategy",desc:"Choose how to resolve file conflicts. \nNote: We recommend backing up important files before using auto-merge to prevent data loss.",diffMatchPatch:"Smart merge (recommended)",latestTimestamp:"Use latest version",skip:"Skip conflicts"},confirmBeforeSync:{name:"Confirm before sync",desc:"Show pending tasks and execute after confirmation"},confirmBeforeDeleteInAutoSync:{name:"Confirm before deleting files during auto-sync",desc:"Show a confirmation dialog when local files are about to be deleted during auto-sync, allowing you to choose to delete or re-upload them"},realtimeSync:{name:"Real-time sync",desc:"Automatically sync changes as soon as files are modified"},syncMode:{name:"Sync mode",desc:"Choose between strict or loose sync mode. Loose mode is recommended for users with many files for faster syncing. In loose mode, files with the same name and equal size that have no sync record will be ignored.",strict:"Strict",loose:"Loose"},startupSyncDelay:{name:"Auto-sync on startup",desc:"Set the number of seconds after startup to automatically perform a sync. Set to 0 to disable auto-sync on startup.",placeholder:"Enter seconds (e.g., 5, 0 to disable)",invalidValue:"Invalid value, reset to 0",exceedsMax:"Value exceeds maximum limit of {{max}} seconds (1 day), automatically adjusted"},autoSyncInterval:{name:"Auto-sync interval",desc:"Set the interval for automatic background synchronization (in minutes). Set to 0 to disable automatic sync.",placeholder:"Enter minutes (e.g., 5, 0 to disable)",invalidValue:"Invalid value, reset to 0",exceedsMax:"Value exceeds maximum limit of {{max}} minutes (1 day), automatically adjusted"},sections:{account:"Account",common:"General",filters:"Filter rules"},logout:{confirmTitle:"Confirm logout",confirmMessage:"Are you sure you want to log out? You will need to log in again to continue syncing.",confirm:"Confirm logout",cancel:"Cancel"},help:{name:"How to get WebDAV account and credential?",desc:"Click to view help documentation"},filters:{name:"Sync filters",desc:"Add paths to filter files or folders, e.g.: .DS_Store, .git",add:"Add rule",remove:"Remove",confirmRemove:"Confirm remove",edit:"Edit rules",save:"Save",cancel:"Cancel",placeholder:"e.g.: .DS_Store, *.pdf",description:"Files or folders matching these patterns will be ignored during sync. Use * for wildcard matching.",exclude:{name:"Exclusion rules",desc:"Files/folders matching these patterns will NOT be synced."},include:{name:"Inclusion rules",desc:"Files/folders matching these patterns WILL be synced (if defined)."}},skipLargeFiles:{name:"Skip large files",desc:"Files exceeding this size will be skipped during synchronization. If sync issues occur, try lowering this value.",placeholder:"e.g., 10 MiB or 500 KiB",invalidFormat:'Invalid file size format. Please use formats like "10MB" or "500KB"',exceedsMaxSize:"File size exceeds maximum limit of 500MB"},log:{title:"Debug logs",name:"Console logs",desc:"View console output and debug information",button:"View logs",saveToNote:"Save to note",savedToNote:"Logs saved to note: {{fileName}}",saveError:"Failed to save logs",clear:"Clear",cleared:"Console logs cleared",clearName:"Clear logs",clearDesc:"Delete all console output records"},cache:{title:"Cache management",dump:"Export",dumpName:"Cache management",dumpDesc:"The plugin stores remote folder information locally. When switching devices, this data is lost and must be rebuilt before syncing. With many files, rebuilding can be slow due to rate limits. Export saves this data to Nutstore; Import retrieves it, allowing immediate syncing on new devices.",restoreName:"Import cache",restoreDesc:"Import previously exported cache data from Nutstore to your device. This lets you sync immediately on a new device without the long waiting time normally needed to scan all your files.",restore:"Import",clearName:"Clear local cache",clearDesc:"Delete local cache data stored on this device only. This action cannot be undone and will require rebuilding the cache before the next sync. Your Nutstore data remains intact.",clear:"Clear",confirm:"Confirm clear",cleared:"Cache cleared successfully",clearModal:{title:"Clear cache",description:"Select which cache types to clear. This action cannot be undone.",cancel:"Cancel",confirm:"Confirm clear",deltaCache:{name:"Delta cache",desc:"Stores information about incremental file changes."},syncRecordCache:{name:"Sync record cache",desc:"Tracks synchronization status for each file."},blobCache:{name:"File snapshot cache",desc:"Stores file snapshots needed for comparing changes during sync."},traverseWebDAVCache:{name:"File scan cache",desc:"Stores remote folder structure to enable faster sync by fetching only changes. If you encounter file list anomalies or data inconsistencies after a plugin update, try clearing this cache. After clearing, the next sync will need to re-scan all remote files, which may take a while."},clearedType:"Cleared: {{types}}",nothingSelected:"Please select at least one cache type to clear."},exportSuccess:"Cache saved to plugin data file successfully",exportError:"Error saving cache: {{message}}",noDataToRestore:"No saved cache data found",restoreSuccess:"Cache restored successfully",restoreError:"Error restoring cache: {{message}}",remoteCacheDir:{name:"Remote cache directory",desc:"Enter the remote directory for cache storage",placeholder:"Enter the remote cache directory",edit:"Edit"},saveModal:{title:"Save cache",description:"Enter a filename to save the current cache state. The file will be saved in the remote cache directory.",filename:"Filename",save:"Save",cancel:"Cancel",success:"Cache saved successfully",error:"Error saving cache: {{message}}"},restoreModal:{title:"Restore cache",description:"Select a cache file to restore from or delete.",restore:"Restore",delete:"Delete",deleteConfirm:"Confirm delete",close:"Close",refresh:"Refresh",noFiles:"No cache files found",fileNotFound:"Cache file not found",success:"Cache restored successfully",error:"Error restoring cache: {{message}}",loadError:"Error loading file list: {{message}}",deleteSuccess:"Cache file deleted successfully",deleteError:"Error deleting cache file: {{message}}"}}},sync:{failed:"Sync failed!",error:{folderButFile:"Expected folder but found file: {{path}}",notFound:"Not found: {{path}}",localPathNotFound:"Local path not found: {{path}}",mergeNotSupported:"This file type is currently not supported for merging",failedToAutoMerge:"Failed to auto merge",failedToUploadMerged:"Failed to upload merged content",conflictsMarkedInFile:"Conflicts found and marked in file",requestsTooFrequent:"Requests too frequent, please wait a few minutes and try again",accountNotConfigured:"Nutstore account not configured. Please configure your account in settings first."},requestsTooFrequent:"Requests too frequent, plugin will resume sync at {{time}}",preparing:"\uD83D\uDCCB Preparing sync",start:"⌛️ Starting sync",complete:"✅ Sync completed",completeWithFailed:"❌ Sync completed with {{failedCount}} failed tasks",failedWithError:"Sync failed with error: {{error}}",progress:"Sync progress: {{percent}}%",startButton:"Start sync",stopButton:"Stop sync",hideButton:"Hide",closeButton:"Close",showProgressButton:"Show sync progress",notSyncing:"No sync currently in progress",percentComplete:"{{percent}}%",currentFile:"{{path}}",filePath:"{{path}}",progressTitle:"Sync progress",progressStats:"Completed: {{completed}} / {{total}} tasks",completedFilesTitle:"Completed tasks",syncingFiles:"Syncing files...",updatingCache:"Updating local cache...",cacheUpdated:"Local cache updated.",failedStatus:"Sync failed",cancelled:"Sync cancelled",suggestUseClientForManyTasks:"Tip: When there are many sync tasks, we recommend using the Nutstore client for better performance and stability. The plugin is more suitable for mobile use!",modalTitle:"Syncing",cancelButton:"Cancel sync",progressText:"Syncing files",fileOp:{createLocalDir:"Create local directory",createRemoteDir:"Create remote directory",createRemoteDirs:"Create multi-level directories",download:"Download",filenameError:"Invalid path characters",merge:"Merge",removeLocal:"Remove local",removeRemote:"Remove remote",removeRemoteRecursively:"Remove remote recursively",rename:"Rename",sync:"Sync",upload:"Upload",noop:"Skip",cleanRecord:"Clean record",skip:"Skip"},skipReason:{"file-too-large":"File too large","folder-contains-ignored-items":"Folder contains ignored items"},confirmModal:{title:"Sync confirmation",message:"⚠️ Please note:\n\n1. Sync operation may modify or delete local files\n2. We recommend backing up important files before syncing\n3. In case of file conflicts, manual resolution may be required\n4. Initial sync will process all files and may take longer, please be patient\n\nAre you sure you want to start syncing?",confirm:"Confirm sync",cancel:"Cancel",remoteDir:"Remote directory: {{dir}}",strategy:"Sync strategy: {{strategy}}"}},taskList:{title:"Sync task list",instruction:'Please review the tasks below. Click "Continue" to execute the selected tasks, or "Cancel" to skip this sync.',execute:"Execute",action:"Action",localPath:"Local path",remotePath:"Remote path",continue:"Continue",cancel:"Cancel"},deleteConfirm:{title:"Confirm local file deletion",instruction:"⚠️ The following local files will be deleted during auto-sync (because they were deleted remotely).\n\nCheck files to delete; unchecked files will be re-uploaded:",warningNotice:"Local files will be deleted, please confirm",select:"Select",filePath:"File path",deleteAndReupload:"Delete selected, re-upload unchecked",skipForNow:"Skip for now"},failedTasks:{title:"Failed sync tasks",instruction:"The following tasks failed during sync:",taskName:"Task",localPath:"Local path",errorMessage:"Error",close:"Close"},textAreaModal:{copy:"Copy",close:"Close",copied:"Text copied to clipboard"},time:{justNow:"just now",minutesAgo:"{{count}}min ago",hoursAgo:"{{count}}h ago",daysAgo:"{{count}}d ago",longAgo:"long ago"}};var hY={errors:{filenameUnsupportedChars:"文件 {{path}} 包含不支持的字符:{{chars}}"},settings:{title:"WebDAV 设置",language:{name:"语言",desc:"选择界面语言",auto:"自动检测"},account:{name:"账号",desc:"输入你的 WebDAV 账号",placeholder:"输入你的账号"},credential:{name:"凭证",desc:"输入你的 WebDAV 凭证",placeholder:"输入你的凭证"},remoteDir:{name:"远程目录",desc:"输入远程目录",placeholder:"输入远程目录",edit:"编辑"},checkConnection:{name:"检查连接",desc:"点击检查 WebDAV 连接",success:"WebDAV 连接成功",failure:"WebDAV 连接失败",successButton:"连接成功 ✓",failureButton:"连接失败 \xd7"},login:{name:"登录",desc:"点击登录",success:"登录成功",failure:"登录失败,请重试"},useGitStyle:{name:"使用 Git 样式的冲突标记",desc:"启用后将使用 <<<<<<< 和 >>>>>>> 等标记来显示冲突,而不是 HTML 标记"},backupWarning:{name:"备份提醒",desc:"⚠️ 请注意:同步过程会修改或删除本地文件,建议在同步前备份重要文件。"},conflictStrategy:{name:"冲突解决策略",desc:"选择解决文件冲突的方式。\n注意建议在使用自动合并功能前先手动备份重要文件以防数据丢失。",diffMatchPatch:"智能合并(推荐)",latestTimestamp:"使用最新版本",skip:"跳过冲突"},loginMode:{name:"登录方式",manual:"手动输入",sso:"单点登录"},ssoStatus:{loggedIn:"已登录",notLoggedIn:"未登录",logout:"退出登录",logoutSuccess:"已退出登录"},logout:{confirmTitle:"确认退出",confirmMessage:"确定要退出登录吗?退出后需要重新登录才能继续同步。",confirm:"确认退出",cancel:"取消"},help:{name:"如何获取 WebDAV 账号和凭证?",desc:"点击查看帮助文档"},sections:{account:"账号设置",common:"通用设置",filters:"过滤规则"},confirmBeforeSync:{name:"同步前确认",desc:"同步前显示待执行的任务列表,确认后再执行"},confirmBeforeDeleteInAutoSync:{name:"自动同步时删除文件前确认",desc:"自动同步过程中检测到本地文件将被删除时,弹出确认对话框让你选择删除或重新上传"},realtimeSync:{name:"实时同步",desc:"文件修改后自动进行同步"},syncMode:{name:"同步模式",desc:"建议在文件较多的情况下选择宽松模式,同步速度更快。宽松模式会忽略同名且大小相等但没有同步记录的文件。",strict:"严格",loose:"宽松"},startupSyncDelay:{name:"启动后自动同步",desc:"设置启动后第几秒自动执行一次同步。设置为 0 则禁用启动时自动同步。",placeholder:"输入秒数 (例如 5, 0 则禁用)",invalidValue:"无效的数值,已重置为 0",exceedsMax:"数值超过最大限制 {{max}} 秒1天已自动调整"},autoSyncInterval:{name:"定时自动同步",desc:"设置每隔多长时间在后台自动执行一次同步(分钟)。设置为 0 则禁用定时自动同步。",placeholder:"输入分钟数 (例如 5, 0 则禁用)",invalidValue:"无效的数值,已重置为 0",exceedsMax:"数值超过最大限制 {{max}} 分钟1天已自动调整"},filters:{name:"过滤器",desc:"添加同步时需要忽略文件或文件夹路径,例如: .DS_Store, .git",add:"添加规则",remove:"删除",confirmRemove:"确认删除",edit:"编辑规则",save:"保存",cancel:"取消",placeholder:"例如: .DS_Store, *.pdf",description:"符合这些规则的文件或文件夹在同步时会被忽略。使用 * 作为通配符。",exclude:{name:"排除规则",desc:"符合规则的文件/文件夹将不会被同步"},include:{name:"包含规则",desc:"符合规则的文件/文件夹会被同步,如果和排除规则有冲突,会优先选择包含规则。"}},skipLargeFiles:{name:"跳过大文件",desc:"同步时将跳过超过此大小的文件。如遇同步崩溃,可尝试降低此值。",placeholder:"例如10 MiB 或 500 KiB",invalidFormat:'无效的文件大小格式,请使用如 "10MB" 或 "500KB" 的格式',exceedsMaxSize:"文件大小超过最大限制 500MB"},log:{title:"调试日志",name:"控制台日志",desc:"查看控制台输出和调试信息",button:"查看",saveToNote:"保存到笔记",savedToNote:"日志已保存到笔记: {{fileName}}",saveError:"保存日志失败",clear:"清除",cleared:"控制台日志已清除",clearName:"清除日志",clearDesc:"删除所有控制台输出记录"},cache:{title:"缓存管理",dumpName:"缓存管理",dumpDesc:"插件会在您的设备上保存远程文件夹的目录信息。当您更换设备时,这些信息会丢失,需要在首次同步前重新获取。如果您的文件数量较多,可能会触发坚果云的访问频率限制,导致获取过程变慢。导出功能可将这些信息保存到坚果云,导入功能则可将数据恢复到新设备,使您无需等待即可直接同步。",dump:"导出",restoreName:"导入缓存",restoreDesc:"从坚果云导入之前导出的缓存数据到当前设备。这样可以避免在新设备上等待漫长的文件扫描过程,让您直接进行同步。",restore:"导入",clearName:"清除本地缓存",clearDesc:"删除当前设备上的本地缓存数据。此操作无法撤销,会导致下次同步前需要重新建立缓存。仅影响当前设备,不会影响您在坚果云中的数据。",clear:"清除",confirm:"确认清除",cleared:"缓存已成功清除",clearModal:{title:"清除缓存",description:"选择需要清除的缓存类型。此操作无法撤销。",cancel:"取消",confirm:"确认清除",deltaCache:{name:"增量同步缓存",desc:"存储文件增量变化的相关信息。"},syncRecordCache:{name:"同步记录缓存",desc:"跟踪每个文件的同步状态。"},blobCache:{name:"文件快照缓存",desc:"存储用于同步时对比变化的文件快照。"},traverseWebDAVCache:{name:"文件扫描缓存",desc:"存储远程文件夹结构,下次同步时只需获取变化的部分,加快同步速度。如果插件更新后同步出现文件列表异常或数据不一致,可尝试清除此缓存。清除后下次同步需要重新扫描所有远程文件,可能需要较长时间。"},clearedType:"已清除: {{types}}",nothingSelected:"请至少选择一种缓存类型进行清除。"},exportSuccess:"缓存已成功保存到插件数据文件",exportError:"保存缓存出错: {{message}}",noDataToRestore:"未找到已保存的缓存数据",restoreSuccess:"缓存恢复成功",restoreError:"恢复缓存出错: {{message}}",remoteCacheDir:{name:"远程缓存目录",desc:"输入用于存储缓存的远程目录",placeholder:"输入远程缓存目录",edit:"编辑"},saveModal:{title:"保存缓存",description:"输入文件名以保存当前缓存状态。文件将保存在远程缓存目录中。",filename:"文件名",save:"保存",cancel:"取消",success:"缓存保存成功",error:"保存缓存出错: {{message}}"},restoreModal:{title:"恢复缓存",description:"选择要恢复或删除的缓存文件。",restore:"恢复",delete:"删除",deleteConfirm:"确认删除",close:"关闭",refresh:"刷新",noFiles:"未找到缓存文件",fileNotFound:"未找到缓存文件",success:"缓存恢复成功",error:"恢复缓存出错: {{message}}",loadError:"加载文件列表出错: {{message}}",deleteSuccess:"缓存文件删除成功",deleteError:"删除缓存文件出错: {{message}}"}}},sync:{failed:"同步失败!",error:{folderButFile:"期望是文件夹,却发现是文件: {{path}}",notFound:"未找到: {{path}}",localPathNotFound:"本地路径未找到: {{path}}",mergeNotSupported:"该文件类型暂不支持合并",failedToAutoMerge:"自动合并失败",failedToUploadMerged:"上传合并内容失败",conflictsMarkedInFile:"发现冲突,已在文件中标记",requestsTooFrequent:"请求过于频繁,请等待几分钟后再试",accountNotConfigured:"尚未配置坚果云账号,请先在设置中配置账号信息"},requestsTooFrequent:"请求过于频繁,插件将在 {{time}} 后自动继续同步任务",preparing:"\uD83D\uDCCB 准备同步",start:"⌛️ 开始同步",complete:"✅ 同步完成",completeWithFailed:"❌ 同步完成,但有 {{failedCount}} 个任务失败",failedWithError:"同步失败,错误信息: {{error}}",progress:"同步进度: {{percent}}%",startButton:"开始同步",stopButton:"停止同步",hideButton:"隐藏",closeButton:"关闭",showProgressButton:"显示同步进度",notSyncing:"尚未开始同步",percentComplete:"{{percent}}%",currentFile:"{{path}}",filePath:"{{path}}",progressTitle:"同步进度",progressStats:"已完成: {{completed}} / {{total}} 个任务",completedFilesTitle:"已完成的任务",syncingFiles:"正在同步文件...",updatingCache:"正在更新本地缓存...",cacheUpdated:"本地缓存已更新。",failedStatus:"同步失败",cancelled:"同步已取消",suggestUseClientForManyTasks:"提示:当同步任务较多时,建议使用坚果云客户端同步,可获得更好的性能和稳定性,插件更适合在移动端使用!",modalTitle:"同步进行中",cancelButton:"取消同步",progressText:"正在同步文件",fileOp:{createLocalDir:"创建本地目录",createRemoteDir:"创建远程目录",createRemoteDirs:"创建多级目录",download:"下载",filenameError:"路径含无效字符",merge:"合并",removeLocal:"删除本地",removeRemote:"删除远程",removeRemoteRecursively:"递归删除远程",rename:"重命名",sync:"同步",upload:"上传",noop:"跳过",cleanRecord:"清理记录",skip:"跳过"},skipReason:{"file-too-large":"文件过大","folder-contains-ignored-items":"文件夹包含被忽略的文件"},confirmModal:{title:"同步确认",message:"⚠️ 请注意:\n\n1. 同步操作可能会修改或删除本地文件\n2. 建议在同步前手动备份重要文件\n3. 如果出现文件冲突,可能需要手动解决\n4. 首次同步需要处理所有文件,可能会比较慢,请耐心等待\n\n确定要开始同步吗",confirm:"确认同步",cancel:"取消",remoteDir:"远程目录:{{dir}}",strategy:"同步策略:{{strategy}}"}},taskList:{title:"同步任务列表",instruction:'请检查以下待执行的任务。点击"继续"将执行选中的任务,点击"取消"则跳过本次同步。',execute:"执行",action:"行为",localPath:"本地路径",remotePath:"远程路径",continue:"继续",cancel:"取消"},deleteConfirm:{title:"确认删除本地文件",instruction:"⚠️ 在自动同步过程中检测到以下本地文件将被删除(因远程已删除)。\n\n勾选要删除的文件未勾选的文件将重新上传到远程",warningNotice:"检测到本地文件将被删除,请确认",select:"选择",filePath:"文件路径",deleteAndReupload:"删除选中的,重新上传未选中的",skipForNow:"暂时忽略"},failedTasks:{title:"同步失败任务",instruction:"以下任务在同步时失败:",taskName:"任务",localPath:"本地路径",errorMessage:"失败原因",close:"关闭"},textAreaModal:{copy:"复制",close:"关闭",copied:"文本已复制到剪贴板"},time:{justNow:"刚刚",minutesAgo:"{{count}}分钟前",hoursAgo:"{{count}}小时前",daysAgo:"{{count}}天前",longAgo:"很久前"}};var gJe="translation",dJe={zh:{translation:hY},en:{translation:dY}};it.init({ns:["translation"],defaultNS:gJe,resources:dJe,fallbackLng:"en",interpolation:{escapeValue:!1}});var _=it;var hJe=(typeof global==="undefined"?"undefined":_type_of(global))=="object"&&global&&global.Object===Object&&global,ip=hJe;var IJe=(typeof self==="undefined"?"undefined":_type_of(self))=="object"&&self&&self.Object===Object&&self,pJe=ip||IJe||Function("return this")(),Ke=pJe;var xJe=Ke.Symbol,Ft=xJe;var IY=Object.prototype,mJe=IY.hasOwnProperty,vJe=IY.toString,df=Ft?Ft.toStringTag:void 0;function CJe(r){var e=mJe.call(r,df),t=r[df];try{r[df]=void 0;var i=!0}catch(a){}var n=vJe.call(r);return i&&(e?r[df]=t:delete r[df]),n}var pY=CJe;var BJe=Object.prototype,EJe=BJe.toString;function yJe(r){return EJe.call(r)}var xY=yJe;var QJe="[object Null]",bJe="[object Undefined]",mY=Ft?Ft.toStringTag:void 0;function wJe(r){return r==null?r===void 0?bJe:QJe:mY&&mY in Object(r)?pY(r):xY(r)}var Ir=wJe;function SJe(r){return r!=null&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"}var Ve=SJe;var _Je="[object Symbol]";function qJe(r){return(typeof r==="undefined"?"undefined":_type_of(r))=="symbol"||Ve(r)&&Ir(r)==_Je}var Hi=qJe;function DJe(r,e){for(var t=-1,i=r==null?0:r.length,n=Array(i);++t<i;)n[t]=e(r[t],t,r);return n}var np=DJe;var FJe=Array.isArray,nr=FJe;var kJe=1/0,vY=Ft?Ft.prototype:void 0,CY=vY?vY.toString:void 0;function BY(r){if(typeof r=="string")return r;if(nr(r))return np(r,BY)+"";if(Hi(r))return CY?CY.call(r):"";var e=r+"";return e=="0"&&1/r==-kJe?"-0":e}var EY=BY;var RJe=/\s/;function NJe(r){for(var e=r.length;e--&&RJe.test(r.charAt(e)););return e}var yY=NJe;var OJe=/^\s+/;function TJe(r){return r&&r.slice(0,yY(r)+1).replace(OJe,"")}var QY=TJe;function PJe(r){var e=typeof r==="undefined"?"undefined":_type_of(r);return r!=null&&(e=="object"||e=="function")}var Qr=PJe;var bY=0/0,MJe=/^[-+]0x[0-9a-f]+$/i,UJe=/^0b[01]+$/i,GJe=/^0o[0-7]+$/i,LJe=parseInt;function HJe(r){if(typeof r=="number")return r;if(Hi(r))return bY;if(Qr(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Qr(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=QY(r);var t=UJe.test(r);return t||GJe.test(r)?LJe(r.slice(2),t?2:8):MJe.test(r)?bY:+r}var Wn=HJe;var wY=1/0,WJe=17976931348623157e292;function JJe(r){if(!r)return r===0?r:0;if(r=Wn(r),r===wY||r===-wY){var e=r<0?-1:1;return e*WJe}return r===r?r:0}var SY=JJe;function KJe(r){var e=SY(r),t=e%1;return e===e?t?e-t:e:0}var hf=KJe;function VJe(r){return r}var $a=VJe;var YJe="[object AsyncFunction]",zJe="[object Function]",jJe="[object GeneratorFunction]",XJe="[object Proxy]";function ZJe(r){if(!Qr(r))return!1;var e=Ir(r);return e==zJe||e==jJe||e==YJe||e==XJe}var gs=ZJe;var $Je=Ke["__core-js_shared__"],ap=$Je;var _Y=function(){var r=/[^.]+$/.exec(ap&&ap.keys&&ap.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function e7e(r){return!!_Y&&_Y in r}var qY=e7e;var r7e=Function.prototype,t7e=r7e.toString;function i7e(r){if(r!=null){try{return t7e.call(r)}catch(e){}try{return r+""}catch(e){}}return""}var Jn=i7e;var n7e=/[\\^$.*+?()[\]{}|]/g,a7e=/^\[object .+?Constructor\]$/,o7e=Function.prototype,s7e=Object.prototype,A7e=o7e.toString,c7e=s7e.hasOwnProperty,u7e=RegExp("^"+A7e.call(c7e).replace(n7e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l7e(r){if(!Qr(r)||qY(r))return!1;var e=gs(r)?u7e:a7e;return e.test(Jn(r))}var DY=l7e;function f7e(r,e){return r==null?void 0:r[e]}var FY=f7e;function g7e(r,e){var t=FY(r,e);return DY(t)?t:void 0}var zt=g7e;var d7e=zt(Ke,"WeakMap"),ds=d7e;var h7e=ds&&new ds,rc=h7e;var I7e=rc?function I7e1(r,e){return rc.set(r,e),r}:$a,op=I7e;var kY=Object.create,p7e=function(){function r(){}return function(e){if(!Qr(e))return{};if(kY)return kY(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}(),eo=p7e;function x7e(r){return function(){var e=arguments;switch(e.length){case 0:return new r;case 1:return new r(e[0]);case 2:return new r(e[0],e[1]);case 3:return new r(e[0],e[1],e[2]);case 4:return new r(e[0],e[1],e[2],e[3]);case 5:return new r(e[0],e[1],e[2],e[3],e[4]);case 6:return new r(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new r(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=eo(r.prototype),i=r.apply(t,e);return Qr(i)?i:t}}var Kn=x7e;var m7e=1;function v7e(r,e,t){var i=e&m7e,n=Kn(r);function a(){var o=this&&this!==Ke&&_instanceof(this,a)?n:r;return o.apply(i?t:this,arguments)}return a}var RY=v7e;function C7e(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}var tc=C7e;var B7e=Math.max;function E7e(r,e,t,i){for(var n=-1,a=r.length,o=t.length,s=-1,A=e.length,u=B7e(a-o,0),c=Array(A+u),l=!i;++s<A;)c[s]=e[s];for(;++n<o;)(l||n<a)&&(c[t[n]]=r[n]);for(;u--;)c[s++]=r[n++];return c}var sp=E7e;var y7e=Math.max;function Q7e(r,e,t,i){for(var n=-1,a=r.length,o=-1,s=t.length,A=-1,u=e.length,c=y7e(a-s,0),l=Array(c+u),f=!i;++n<c;)l[n]=r[n];for(var g=n;++A<u;)l[g+A]=e[A];for(;++o<s;)(f||n<a)&&(l[g+t[o]]=r[n++]);return l}var Ap=Q7e;function b7e(r,e){for(var t=r.length,i=0;t--;)r[t]===e&&++i;return i}var NY=b7e;function w7e(){}var ic=w7e;var S7e=0xffffffff;function cp(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=S7e,this.__views__=[]}cp.prototype=eo(ic.prototype);cp.prototype.constructor=cp;var nc=cp;function _7e(){}var If=_7e;var q7e=rc?function q7e1(r){return rc.get(r)}:If,up=q7e;var D7e={},ow=D7e;var F7e=Object.prototype,k7e=F7e.hasOwnProperty;function R7e(r){for(var e=r.name+"",t=ow[e],i=k7e.call(ow,e)?t.length:0;i--;){var n=t[i],a=n.func;if(a==null||a==r)return n.name}return e}var OY=R7e;function lp(r,e){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}lp.prototype=eo(ic.prototype);lp.prototype.constructor=lp;var pf=lp;function N7e(r,e){var t=-1,i=r.length;for(e||(e=Array(i));++t<i;)e[t]=r[t];return e}var ac=N7e;function O7e(r){if(_instanceof(r,nc))return r.clone();var e=new pf(r.__wrapped__,r.__chain__);return e.__actions__=ac(r.__actions__),e.__index__=r.__index__,e.__values__=r.__values__,e}var TY=O7e;var T7e=Object.prototype,P7e=T7e.hasOwnProperty;function fp(r){if(Ve(r)&&!nr(r)&&!_instanceof(r,nc)){if(_instanceof(r,pf))return r;if(P7e.call(r,"__wrapped__"))return TY(r)}return new pf(r)}fp.prototype=ic.prototype;fp.prototype.constructor=fp;var PY=fp;function M7e(r){var e=OY(r),t=PY[e];if(typeof t!="function"||!(e in nc.prototype))return!1;if(r===t)return!0;var i=up(t);return!!i&&r===i[0]}var MY=M7e;var U7e=800,G7e=16,L7e=Date.now;function H7e(r){var e=0,t=0;return function(){var i=L7e(),n=G7e-(i-t);if(t=i,n>0){if(++e>=U7e)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}var gp=H7e;var W7e=gp(op),dp=W7e;var J7e=/\{\n\/\* \[wrapped with (.+)\] \*/,K7e=/,? & /;function V7e(r){var e=r.match(J7e);return e?e[1].split(K7e):[]}var UY=V7e;var Y7e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function z7e(r,e){var t=e.length;if(!t)return r;var i=t-1;return e[i]=(t>1?"& ":"")+e[i],e=e.join(t>2?", ":" "),r.replace(Y7e,"{\n/* [wrapped with "+e+"] */\n")}var GY=z7e;function j7e(r){return function(){return r}}var LY=j7e;var X7e=function(){try{var r=zt(Object,"defineProperty");return r({},"",{}),r}catch(e){}}(),oc=X7e;var Z7e=oc?function Z7e1(r,e){return oc(r,"toString",{configurable:!0,enumerable:!1,value:LY(e),writable:!0})}:$a,HY=Z7e;var $7e=gp(HY),hp=$7e;function eKe(r,e){for(var t=-1,i=r==null?0:r.length;++t<i&&e(r[t],t,r)!==!1;);return r}var Ip=eKe;function rKe(r,e,t,i){for(var n=r.length,a=t+(i?1:-1);i?a--:++a<n;)if(e(r[a],a,r))return a;return-1}var WY=rKe;function tKe(r){return r!==r}var JY=tKe;function iKe(r,e,t){for(var i=t-1,n=r.length;++i<n;)if(r[i]===e)return i;return-1}var KY=iKe;function nKe(r,e,t){return e===e?KY(r,e,t):WY(r,JY,t)}var VY=nKe;function aKe(r,e){var t=r==null?0:r.length;return!!t&&VY(r,e,0)>-1}var YY=aKe;var oKe=1,sKe=2,AKe=8,cKe=16,uKe=32,lKe=64,fKe=128,gKe=256,dKe=512,hKe=[["ary",fKe],["bind",oKe],["bindKey",sKe],["curry",AKe],["curryRight",cKe],["flip",dKe],["partial",uKe],["partialRight",lKe],["rearg",gKe]];function IKe(r,e){return Ip(hKe,function(t){var i="_."+t[0];e&t[1]&&!YY(r,i)&&r.push(i)}),r.sort()}var zY=IKe;function pKe(r,e,t){var i=e+"";return hp(r,GY(i,zY(UY(i),t)))}var pp=pKe;var xKe=1,mKe=2,vKe=4,CKe=8,jY=32,XY=64;function BKe(r,e,t,i,n,a,o,s,A,u){var c=e&CKe,l=c?o:void 0,f=c?void 0:o,g=c?a:void 0,h=c?void 0:a;e|=c?jY:XY,e&=~(c?XY:jY),e&vKe||(e&=~(xKe|mKe));var d=[r,e,n,g,l,h,f,s,A,u],p=t.apply(void 0,d);return MY(r)&&dp(p,d),p.placeholder=i,pp(p,r,e)}var xp=BKe;function EKe(r){var e=r;return e.placeholder}var sc=EKe;var yKe=0x1fffffffffffff,QKe=/^(?:0|[1-9]\d*)$/;function bKe(r,e){var t=typeof r==="undefined"?"undefined":_type_of(r);return e=e==null?yKe:e,!!e&&(t=="number"||t!="symbol"&&QKe.test(r))&&r>-1&&r%1==0&&r<e}var ro=bKe;var wKe=Math.min;function SKe(r,e){for(var t=r.length,i=wKe(e.length,t),n=ac(r);i--;){var a=e[i];r[i]=ro(a,t)?n[a]:void 0}return r}var ZY=SKe;var $Y="__lodash_placeholder__";function _Ke(r,e){for(var t=-1,i=r.length,n=0,a=[];++t<i;){var o=r[t];(o===e||o===$Y)&&(r[t]=$Y,a[n++]=t)}return a}var Vn=_Ke;var qKe=1,DKe=2,FKe=8,kKe=16,RKe=128,NKe=512;function ez(r,e,t,i,n,a,o,s,A,u){var c=e&RKe,l=e&qKe,f=e&DKe,g=e&(FKe|kKe),h=e&NKe,d=f?void 0:Kn(r);function p(){for(var m=arguments.length,x=Array(m),v=m;v--;)x[v]=arguments[v];if(g)var E=sc(p),S=NY(x,E);if(i&&(x=sp(x,i,n,g)),a&&(x=Ap(x,a,o,g)),m-=S,g&&m<u){var B=Vn(x,E);return xp(r,e,ez,p.placeholder,t,x,B,s,A,u-m)}var b=l?t:this,C=f?b[r]:r;return m=x.length,s?x=ZY(x,s):h&&m>1&&x.reverse(),c&&A<m&&(x.length=A),this&&this!==Ke&&_instanceof(this,p)&&(C=d||Kn(C)),C.apply(b,x)}return p}var mp=ez;function OKe(r,e,t){var i=Kn(r);function n(){for(var a=arguments.length,o=Array(a),s=a,A=sc(n);s--;)o[s]=arguments[s];var u=a<3&&o[0]!==A&&o[a-1]!==A?[]:Vn(o,A);if(a-=u.length,a<t)return xp(r,e,mp,n.placeholder,void 0,o,u,void 0,void 0,t-a);var c=this&&this!==Ke&&_instanceof(this,n)?i:r;return tc(c,this,o)}return n}var rz=OKe;var TKe=1;function PKe(r,e,t,i){var n=e&TKe,a=Kn(r);function o(){for(var s=-1,A=arguments.length,u=-1,c=i.length,l=Array(c+A),f=this&&this!==Ke&&_instanceof(this,o)?a:r;++u<c;)l[u]=i[u];for(;A--;)l[u++]=arguments[++s];return tc(f,n?t:this,l)}return o}var tz=PKe;var iz="__lodash_placeholder__",sw=1,MKe=2,UKe=4,nz=8,xf=128,az=256,GKe=Math.min;function LKe(r,e){var t=r[1],i=e[1],n=t|i,a=n<(sw|MKe|xf),o=i==xf&&t==nz||i==xf&&t==az&&r[7].length<=e[8]||i==(xf|az)&&e[7].length<=e[8]&&t==nz;if(!(a||o))return r;i&sw&&(r[2]=e[2],n|=t&sw?0:UKe);var s=e[3];if(s){var A=r[3];r[3]=A?sp(A,s,e[4]):s,r[4]=A?Vn(r[3],iz):e[4]}return s=e[5],s&&(A=r[5],r[5]=A?Ap(A,s,e[6]):s,r[6]=A?Vn(r[5],iz):e[6]),s=e[7],s&&(r[7]=s),i&xf&&(r[8]=r[8]==null?e[8]:GKe(r[8],e[8])),r[9]==null&&(r[9]=e[9]),r[0]=e[0],r[1]=n,r}var oz=LKe;var HKe="Expected a function",sz=1,WKe=2,Aw=8,cw=16,uw=32,Az=64,cz=Math.max;function JKe(r,e,t,i,n,a,o,s){var A=e&WKe;if(!A&&typeof r!="function")throw new TypeError(HKe);var u=i?i.length:0;if(u||(e&=~(uw|Az),i=n=void 0),o=o===void 0?o:cz(hf(o),0),s=s===void 0?s:hf(s),u-=n?n.length:0,e&Az){var c=i,l=n;i=n=void 0}var f=A?void 0:up(r),g=[r,e,t,i,n,c,l,a,o,s];if(f&&oz(g,f),r=g[0],e=g[1],t=g[2],i=g[3],n=g[4],s=g[9]=g[9]===void 0?A?0:r.length:cz(g[9]-u,0),!s&&e&(Aw|cw)&&(e&=~(Aw|cw)),!e||e==sz)var h=RY(r,e,t);else e==Aw||e==cw?h=rz(r,e,s):(e==uw||e==(sz|uw))&&!n.length?h=tz(r,e,t,i):h=mp.apply(void 0,g);var d=f?op:dp;return pp(d(h,g),r,e)}var uz=JKe;function KKe(r,e,t){e=="__proto__"&&oc?oc(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}var vp=KKe;function VKe(r,e){return r===e||r!==r&&e!==e}var to=VKe;var YKe=Object.prototype,zKe=YKe.hasOwnProperty;function jKe(r,e,t){var i=r[e];(!(zKe.call(r,e)&&to(i,t))||t===void 0&&!(e in r))&&vp(r,e,t)}var Cp=jKe;function XKe(r,e,t,i){var n=!t;t||(t={});for(var a=-1,o=e.length;++a<o;){var s=e[a],A=i?i(t[s],r[s],s,t,r):void 0;A===void 0&&(A=r[s]),n?vp(t,s,A):Cp(t,s,A)}return t}var io=XKe;var lz=Math.max;function ZKe(r,e,t){return e=lz(e===void 0?r.length-1:e,0),function(){for(var i=arguments,n=-1,a=lz(i.length-e,0),o=Array(a);++n<a;)o[n]=i[e+n];n=-1;for(var s=Array(e+1);++n<e;)s[n]=i[n];return s[e]=t(o),tc(r,this,s)}}var fz=ZKe;function $Ke(r,e){return hp(fz(r,e,$a),r+"")}var gz=$Ke;var eVe=0x1fffffffffffff;function rVe(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=eVe}var Ac=rVe;function tVe(r){return r!=null&&Ac(r.length)&&!gs(r)}var pn=tVe;function iVe(r,e,t){if(!Qr(t))return!1;var i=typeof e==="undefined"?"undefined":_type_of(e);return(i=="number"?pn(t)&&ro(e,t.length):i=="string"&&e in t)?to(t[e],r):!1}var dz=iVe;var nVe=Object.prototype;function aVe(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||nVe;return r===t}var cc=aVe;function oVe(r,e){for(var t=-1,i=Array(r);++t<r;)i[t]=e(t);return i}var hz=oVe;var sVe="[object Arguments]";function AVe(r){return Ve(r)&&Ir(r)==sVe}var lw=AVe;var Iz=Object.prototype,cVe=Iz.hasOwnProperty,uVe=Iz.propertyIsEnumerable,lVe=lw(function(){return arguments}())?lw:function lVe1(r){return Ve(r)&&cVe.call(r,"callee")&&!uVe.call(r,"callee")},Bp=lVe;function fVe(){return!1}var pz=fVe;var vz=(typeof exports==="undefined"?"undefined":_type_of(exports))=="object"&&exports&&!exports.nodeType&&exports,xz=vz&&(typeof module==="undefined"?"undefined":_type_of(module))=="object"&&module&&!module.nodeType&&module,gVe=xz&&xz.exports===vz,mz=gVe?Ke.Buffer:void 0,dVe=mz?mz.isBuffer:void 0,hVe=dVe||pz,hs=hVe;var IVe="[object Arguments]",pVe="[object Array]",xVe="[object Boolean]",mVe="[object Date]",vVe="[object Error]",CVe="[object Function]",BVe="[object Map]",EVe="[object Number]",yVe="[object Object]",QVe="[object RegExp]",bVe="[object Set]",wVe="[object String]",SVe="[object WeakMap]",_Ve="[object ArrayBuffer]",qVe="[object DataView]",DVe="[object Float32Array]",FVe="[object Float64Array]",kVe="[object Int8Array]",RVe="[object Int16Array]",NVe="[object Int32Array]",OVe="[object Uint8Array]",TVe="[object Uint8ClampedArray]",PVe="[object Uint16Array]",MVe="[object Uint32Array]",pr={};pr[DVe]=pr[FVe]=pr[kVe]=pr[RVe]=pr[NVe]=pr[OVe]=pr[TVe]=pr[PVe]=pr[MVe]=!0;pr[IVe]=pr[pVe]=pr[_Ve]=pr[xVe]=pr[qVe]=pr[mVe]=pr[vVe]=pr[CVe]=pr[BVe]=pr[EVe]=pr[yVe]=pr[QVe]=pr[bVe]=pr[wVe]=pr[SVe]=!1;function UVe(r){return Ve(r)&&Ac(r.length)&&!!pr[Ir(r)]}var Cz=UVe;function GVe(r){return function(e){return r(e)}}var xn=GVe;var Bz=(typeof exports==="undefined"?"undefined":_type_of(exports))=="object"&&exports&&!exports.nodeType&&exports,mf=Bz&&(typeof module==="undefined"?"undefined":_type_of(module))=="object"&&module&&!module.nodeType&&module,LVe=mf&&mf.exports===Bz,fw=LVe&&ip.process,HVe=function(){try{var r=mf&&mf.require&&mf.require("util").types;return r||fw&&fw.binding&&fw.binding("util")}catch(e){}}(),kt=HVe;var Ez=kt&&kt.isTypedArray,WVe=Ez?xn(Ez):Cz,Ep=WVe;var JVe=Object.prototype,KVe=JVe.hasOwnProperty;function VVe(r,e){var t=nr(r),i=!t&&Bp(r),n=!t&&!i&&hs(r),a=!t&&!i&&!n&&Ep(r),o=t||i||n||a,s=o?hz(r.length,String):[],A=s.length;for(var u in r)(e||KVe.call(r,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ro(u,A)))&&s.push(u);return s}var yp=VVe;function YVe(r,e){return function(t){return r(e(t))}}var Qp=YVe;var zVe=Qp(Object.keys,Object),yz=zVe;var jVe=Object.prototype,XVe=jVe.hasOwnProperty;function ZVe(r){if(!cc(r))return yz(r);var e=[];for(var t in Object(r))XVe.call(r,t)&&t!="constructor"&&e.push(t);return e}var Qz=ZVe;function $Ve(r){return pn(r)?yp(r):Qz(r)}var mn=$Ve;function eYe(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var bz=eYe;var rYe=Object.prototype,tYe=rYe.hasOwnProperty;function iYe(r){if(!Qr(r))return bz(r);var e=cc(r),t=[];for(var i in r)i=="constructor"&&(e||!tYe.call(r,i))||t.push(i);return t}var wz=iYe;function nYe(r){return pn(r)?yp(r,!0):wz(r)}var uc=nYe;var aYe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oYe=/^\w*$/;function sYe(r,e){if(nr(r))return!1;var t=typeof r==="undefined"?"undefined":_type_of(r);return t=="number"||t=="symbol"||t=="boolean"||r==null||Hi(r)?!0:oYe.test(r)||!aYe.test(r)||e!=null&&r in Object(e)}var lc=sYe;var AYe=zt(Object,"create"),Yn=AYe;function cYe(){this.__data__=Yn?Yn(null):{},this.size=0}var Sz=cYe;function uYe(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var _z=uYe;var lYe="__lodash_hash_undefined__",fYe=Object.prototype,gYe=fYe.hasOwnProperty;function dYe(r){var e=this.__data__;if(Yn){var t=e[r];return t===lYe?void 0:t}return gYe.call(e,r)?e[r]:void 0}var qz=dYe;var hYe=Object.prototype,IYe=hYe.hasOwnProperty;function pYe(r){var e=this.__data__;return Yn?e[r]!==void 0:IYe.call(e,r)}var Dz=pYe;var xYe="__lodash_hash_undefined__";function mYe(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Yn&&e===void 0?xYe:e,this}var Fz=mYe;function fc(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var i=r[e];this.set(i[0],i[1])}}fc.prototype.clear=Sz;fc.prototype.delete=_z;fc.prototype.get=qz;fc.prototype.has=Dz;fc.prototype.set=Fz;var gw=fc;function vYe(){this.__data__=[],this.size=0}var kz=vYe;function CYe(r,e){for(var t=r.length;t--;)if(to(r[t][0],e))return t;return-1}var no=CYe;var BYe=Array.prototype,EYe=BYe.splice;function yYe(r){var e=this.__data__,t=no(e,r);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():EYe.call(e,t,1),--this.size,!0}var Rz=yYe;function QYe(r){var e=this.__data__,t=no(e,r);return t<0?void 0:e[t][1]}var Nz=QYe;function bYe(r){return no(this.__data__,r)>-1}var Oz=bYe;function wYe(r,e){var t=this.__data__,i=no(t,r);return i<0?(++this.size,t.push([r,e])):t[i][1]=e,this}var Tz=wYe;function gc(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var i=r[e];this.set(i[0],i[1])}}gc.prototype.clear=kz;gc.prototype.delete=Rz;gc.prototype.get=Nz;gc.prototype.has=Oz;gc.prototype.set=Tz;var ao=gc;var SYe=zt(Ke,"Map"),oo=SYe;function _Ye(){this.size=0,this.__data__={hash:new gw,map:new(oo||ao),string:new gw}}var Pz=_Ye;function qYe(r){var e=typeof r==="undefined"?"undefined":_type_of(r);return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}var Mz=qYe;function DYe(r,e){var t=r.__data__;return Mz(e)?t[typeof e=="string"?"string":"hash"]:t.map}var so=DYe;function FYe(r){var e=so(this,r).delete(r);return this.size-=e?1:0,e}var Uz=FYe;function kYe(r){return so(this,r).get(r)}var Gz=kYe;function RYe(r){return so(this,r).has(r)}var Lz=RYe;function NYe(r,e){var t=so(this,r),i=t.size;return t.set(r,e),this.size+=t.size==i?0:1,this}var Hz=NYe;function dc(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var i=r[e];this.set(i[0],i[1])}}dc.prototype.clear=Pz;dc.prototype.delete=Uz;dc.prototype.get=Gz;dc.prototype.has=Lz;dc.prototype.set=Hz;var Is=dc;var OYe="Expected a function";function dw(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(OYe);var t=function t3(){var i=arguments,n=e?e.apply(this,i):i[0],a=t.cache;if(a.has(n))return a.get(n);var o=r.apply(this,i);return t.cache=a.set(n,o)||a,o};return t.cache=new(dw.Cache||Is),t}dw.Cache=Is;var Wz=dw;var TYe=500;function PYe(r){var e=Wz(r,function(i){return t.size===TYe&&t.clear(),i}),t=e.cache;return e}var Jz=PYe;var MYe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UYe=/\\(\\)?/g,GYe=Jz(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(MYe,function(t,i,n,a){e.push(n?a.replace(UYe,"$1"):i||t)}),e}),Kz=GYe;function LYe(r){return r==null?"":EY(r)}var Vz=LYe;function HYe(r,e){return nr(r)?r:lc(r,e)?[r]:Kz(Vz(r))}var bp=HYe;var WYe=1/0;function JYe(r){if(typeof r=="string"||Hi(r))return r;var e=r+"";return e=="0"&&1/r==-WYe?"-0":e}var Ao=JYe;function KYe(r,e){e=bp(e,r);for(var t=0,i=e.length;r!=null&&t<i;)r=r[Ao(e[t++])];return t&&t==i?r:void 0}var wp=KYe;function VYe(r,e,t){var i=r==null?void 0:wp(r,e);return i===void 0?t:i}var Yz=VYe;function YYe(r,e){for(var t=-1,i=e.length,n=r.length;++t<i;)r[n+t]=e[t];return r}var Sp=YYe;var zYe=Qp(Object.getPrototypeOf,Object),hc=zYe;var jYe="[object Object]",XYe=Function.prototype,ZYe=Object.prototype,zz=XYe.toString,$Ye=ZYe.hasOwnProperty,eze=zz.call(Object);function rze(r){if(!Ve(r)||Ir(r)!=jYe)return!1;var e=hc(r);if(e===null)return!0;var t=$Ye.call(e,"constructor")&&e.constructor;return typeof t=="function"&&_instanceof(t,t)&&zz.call(t)==eze}var jz=rze;var tze="[object DOMException]",ize="[object Error]";function nze(r){if(!Ve(r))return!1;var e=Ir(r);return e==ize||e==tze||typeof r.message=="string"&&typeof r.name=="string"&&!jz(r)}var hw=nze;function aze(r,e,t){var i=-1,n=r.length;e<0&&(e=-e>n?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var a=Array(n);++i<n;)a[i]=r[i+e];return a}var Xz=aze;var oze=Math.ceil,sze=Math.max;function Aze(r,e,t){(t?dz(r,e,t):e===void 0)?e=1:e=sze(hf(e),0);var i=r==null?0:r.length;if(!i||e<1)return[];for(var n=0,a=0,o=Array(oze(i/e));n<i;)o[a++]=Xz(r,n,n+=e);return o}var vf=Aze;function cze(r,e,t){return r===r&&(t!==void 0&&(r=r<=t?r:t),e!==void 0&&(r=r>=e?r:e)),r}var Zz=cze;function uze(r,e,t){return t===void 0&&(t=e,e=void 0),t!==void 0&&(t=Wn(t),t=t===t?t:0),e!==void 0&&(e=Wn(e),e=e===e?e:0),Zz(Wn(r),e,t)}var co=uze;function lze(){this.__data__=new ao,this.size=0}var $z=lze;function fze(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}var ej=fze;function gze(r){return this.__data__.get(r)}var rj=gze;function dze(r){return this.__data__.has(r)}var tj=dze;var hze=200;function Ize(r,e){var t=this.__data__;if(_instanceof(t,ao)){var i=t.__data__;if(!oo||i.length<hze-1)return i.push([r,e]),this.size=++t.size,this;t=this.__data__=new Is(i)}return t.set(r,e),this.size=t.size,this}var ij=Ize;function Ic(r){var e=this.__data__=new ao(r);this.size=e.size}Ic.prototype.clear=$z;Ic.prototype.delete=ej;Ic.prototype.get=rj;Ic.prototype.has=tj;Ic.prototype.set=ij;var uo=Ic;function pze(r,e){return r&&io(e,mn(e),r)}var nj=pze;function xze(r,e){return r&&io(e,uc(e),r)}var aj=xze;var cj=(typeof exports==="undefined"?"undefined":_type_of(exports))=="object"&&exports&&!exports.nodeType&&exports,oj=cj&&(typeof module==="undefined"?"undefined":_type_of(module))=="object"&&module&&!module.nodeType&&module,mze=oj&&oj.exports===cj,sj=mze?Ke.Buffer:void 0,Aj=sj?sj.allocUnsafe:void 0;function vze(r,e){if(e)return r.slice();var t=r.length,i=Aj?Aj(t):new r.constructor(t);return r.copy(i),i}var uj=vze;function Cze(r,e){for(var t=-1,i=r==null?0:r.length,n=0,a=[];++t<i;){var o=r[t];e(o,t,r)&&(a[n++]=o)}return a}var lj=Cze;function Bze(){return[]}var _p=Bze;var Eze=Object.prototype,yze=Eze.propertyIsEnumerable,fj=Object.getOwnPropertySymbols,Qze=fj?function Qze1(r){return r==null?[]:(r=Object(r),lj(fj(r),function(e){return yze.call(r,e)}))}:_p,pc=Qze;function bze(r,e){return io(r,pc(r),e)}var gj=bze;var wze=Object.getOwnPropertySymbols,Sze=wze?function Sze1(r){for(var e=[];r;)Sp(e,pc(r)),r=hc(r);return e}:_p,qp=Sze;function _ze(r,e){return io(r,qp(r),e)}var dj=_ze;function qze(r,e,t){var i=e(r);return nr(r)?i:Sp(i,t(r))}var Dp=qze;function Dze(r){return Dp(r,mn,pc)}var Cf=Dze;function Fze(r){return Dp(r,uc,qp)}var hj=Fze;var kze=zt(Ke,"DataView"),Fp=kze;var Rze=zt(Ke,"Promise"),kp=Rze;var Nze=zt(Ke,"Set"),Rp=Nze;var Ij="[object Map]",Oze="[object Object]",pj="[object Promise]",xj="[object Set]",mj="[object WeakMap]",vj="[object DataView]",Tze=Jn(Fp),Pze=Jn(oo),Mze=Jn(kp),Uze=Jn(Rp),Gze=Jn(ds),ps=Ir;(Fp&&ps(new Fp(new ArrayBuffer(1)))!=vj||oo&&ps(new oo)!=Ij||kp&&ps(kp.resolve())!=pj||Rp&&ps(new Rp)!=xj||ds&&ps(new ds)!=mj)&&(ps=function ps1(r){var e=Ir(r),t=e==Oze?r.constructor:void 0,i=t?Jn(t):"";if(i)switch(i){case Tze:return vj;case Pze:return Ij;case Mze:return pj;case Uze:return xj;case Gze:return mj}return e});var zn=ps;var Lze=Object.prototype,Hze=Lze.hasOwnProperty;function Wze(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&Hze.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var Cj=Wze;var Jze=Ke.Uint8Array,xc=Jze;function Kze(r){var e=new r.constructor(r.byteLength);return new xc(e).set(new xc(r)),e}var mc=Kze;function Vze(r,e){var t=e?mc(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var Bj=Vze;var Yze=/\w*$/;function zze(r){var e=new r.constructor(r.source,Yze.exec(r));return e.lastIndex=r.lastIndex,e}var Ej=zze;var yj=Ft?Ft.prototype:void 0,Qj=yj?yj.valueOf:void 0;function jze(r){return Qj?Object(Qj.call(r)):{}}var bj=jze;function Xze(r,e){var t=e?mc(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var wj=Xze;var Zze="[object Boolean]",$ze="[object Date]",eje="[object Map]",rje="[object Number]",tje="[object RegExp]",ije="[object Set]",nje="[object String]",aje="[object Symbol]",oje="[object ArrayBuffer]",sje="[object DataView]",Aje="[object Float32Array]",cje="[object Float64Array]",uje="[object Int8Array]",lje="[object Int16Array]",fje="[object Int32Array]",gje="[object Uint8Array]",dje="[object Uint8ClampedArray]",hje="[object Uint16Array]",Ije="[object Uint32Array]";function pje(r,e,t){var i=r.constructor;switch(e){case oje:return mc(r);case Zze:case $ze:return new i(+r);case sje:return Bj(r,t);case Aje:case cje:case uje:case lje:case fje:case gje:case dje:case hje:case Ije:return wj(r,t);case eje:return new i;case rje:case nje:return new i(r);case tje:return Ej(r);case ije:return new i;case aje:return bj(r)}}var Sj=pje;function xje(r){return typeof r.constructor=="function"&&!cc(r)?eo(hc(r)):{}}var _j=xje;var mje="[object Map]";function vje(r){return Ve(r)&&zn(r)==mje}var qj=vje;var Dj=kt&&kt.isMap,Cje=Dj?xn(Dj):qj,Fj=Cje;var Bje="[object Set]";function Eje(r){return Ve(r)&&zn(r)==Bje}var kj=Eje;var Rj=kt&&kt.isSet,yje=Rj?xn(Rj):kj,Nj=yje;var Qje=1,bje=2,wje=4,Oj="[object Arguments]",Sje="[object Array]",_je="[object Boolean]",qje="[object Date]",Dje="[object Error]",Tj="[object Function]",Fje="[object GeneratorFunction]",kje="[object Map]",Rje="[object Number]",Pj="[object Object]",Nje="[object RegExp]",Oje="[object Set]",Tje="[object String]",Pje="[object Symbol]",Mje="[object WeakMap]",Uje="[object ArrayBuffer]",Gje="[object DataView]",Lje="[object Float32Array]",Hje="[object Float64Array]",Wje="[object Int8Array]",Jje="[object Int16Array]",Kje="[object Int32Array]",Vje="[object Uint8Array]",Yje="[object Uint8ClampedArray]",zje="[object Uint16Array]",jje="[object Uint32Array]",fr={};fr[Oj]=fr[Sje]=fr[Uje]=fr[Gje]=fr[_je]=fr[qje]=fr[Lje]=fr[Hje]=fr[Wje]=fr[Jje]=fr[Kje]=fr[kje]=fr[Rje]=fr[Pj]=fr[Nje]=fr[Oje]=fr[Tje]=fr[Pje]=fr[Vje]=fr[Yje]=fr[zje]=fr[jje]=!0;fr[Dje]=fr[Tj]=fr[Mje]=!1;function Np(r,e,t,i,n,a){var o,s=e&Qje,A=e&bje,u=e&wje;if(t&&(o=n?t(r,i,n,a):t(r)),o!==void 0)return o;if(!Qr(r))return r;var c=nr(r);if(c){if(o=Cj(r),!s)return ac(r,o)}else{var l=zn(r),f=l==Tj||l==Fje;if(hs(r))return uj(r,s);if(l==Pj||l==Oj||f&&!n){if(o=A||f?{}:_j(r),!s)return A?dj(r,aj(o,r)):gj(r,nj(o,r))}else{if(!fr[l])return n?r:{};o=Sj(r,l,s)}}a||(a=new uo);var g=a.get(r);if(g)return g;a.set(r,o),Nj(r)?r.forEach(function(p){o.add(Np(p,e,t,p,r,a))}):Fj(r)&&r.forEach(function(p,m){o.set(m,Np(p,e,t,m,r,a))});var h=u?A?hj:Cf:A?uc:mn,d=c?void 0:h(r);return Ip(d||r,function(p,m){d&&(m=p,p=r[m]),Cp(o,m,Np(p,e,t,m,r,a))}),o}var Mj=Np;var Xje=1,Zje=4;function $je(r){return Mj(r,Xje|Zje)}var vc=$je;var eXe="__lodash_hash_undefined__";function rXe(r){return this.__data__.set(r,eXe),this}var Uj=rXe;function tXe(r){return this.__data__.has(r)}var Gj=tXe;function Op(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new Is;++e<t;)this.add(r[e])}Op.prototype.add=Op.prototype.push=Uj;Op.prototype.has=Gj;var Lj=Op;function iXe(r,e){for(var t=-1,i=r==null?0:r.length;++t<i;)if(e(r[t],t,r))return!0;return!1}var Hj=iXe;function nXe(r,e){return r.has(e)}var Wj=nXe;var aXe=1,oXe=2;function sXe(r,e,t,i,n,a){var o=t&aXe,s=r.length,A=e.length;if(s!=A&&!(o&&A>s))return!1;var u=a.get(r),c=a.get(e);if(u&&c)return u==e&&c==r;var l=-1,f=!0,g=t&oXe?new Lj:void 0;for(a.set(r,e),a.set(e,r);++l<s;){var h=r[l],d=e[l];if(i)var p=o?i(d,h,l,e,r,a):i(h,d,l,r,e,a);if(p!==void 0){if(p)continue;f=!1;break}if(g){if(!Hj(e,function(m,x){if(!Wj(g,x)&&(h===m||n(h,m,t,i,a)))return g.push(x)})){f=!1;break}}else if(!(h===d||n(h,d,t,i,a))){f=!1;break}}return a.delete(r),a.delete(e),f}var Tp=sXe;function AXe(r){var e=-1,t=Array(r.size);return r.forEach(function(i,n){t[++e]=[n,i]}),t}var Jj=AXe;function cXe(r){var e=-1,t=Array(r.size);return r.forEach(function(i){t[++e]=i}),t}var Kj=cXe;var uXe=1,lXe=2,fXe="[object Boolean]",gXe="[object Date]",dXe="[object Error]",hXe="[object Map]",IXe="[object Number]",pXe="[object RegExp]",xXe="[object Set]",mXe="[object String]",vXe="[object Symbol]",CXe="[object ArrayBuffer]",BXe="[object DataView]",Vj=Ft?Ft.prototype:void 0,Iw=Vj?Vj.valueOf:void 0;function EXe(r,e,t,i,n,a,o){switch(t){case BXe:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case CXe:return!(r.byteLength!=e.byteLength||!a(new xc(r),new xc(e)));case fXe:case gXe:case IXe:return to(+r,+e);case dXe:return r.name==e.name&&r.message==e.message;case pXe:case mXe:return r==e+"";case hXe:var s=Jj;case xXe:var A=i&uXe;if(s||(s=Kj),r.size!=e.size&&!A)return!1;var u=o.get(r);if(u)return u==e;i|=lXe,o.set(r,e);var c=Tp(s(r),s(e),i,n,a,o);return o.delete(r),c;case vXe:if(Iw)return Iw.call(r)==Iw.call(e)}return!1}var Yj=EXe;var yXe=1,QXe=Object.prototype,bXe=QXe.hasOwnProperty;function wXe(r,e,t,i,n,a){var o=t&yXe,s=Cf(r),A=s.length,u=Cf(e),c=u.length;if(A!=c&&!o)return!1;for(var l=A;l--;){var f=s[l];if(!(o?f in e:bXe.call(e,f)))return!1}var g=a.get(r),h=a.get(e);if(g&&h)return g==e&&h==r;var d=!0;a.set(r,e),a.set(e,r);for(var p=o;++l<A;){f=s[l];var m=r[f],x=e[f];if(i)var v=o?i(x,m,f,e,r,a):i(m,x,f,r,e,a);if(!(v===void 0?m===x||n(m,x,t,i,a):v)){d=!1;break}p||(p=f=="constructor")}if(d&&!p){var E=r.constructor,S=e.constructor;E!=S&&"constructor"in r&&"constructor"in e&&!(typeof E=="function"&&_instanceof(E,E)&&typeof S=="function"&&_instanceof(S,S))&&(d=!1)}return a.delete(r),a.delete(e),d}var zj=wXe;var SXe=1,jj="[object Arguments]",Xj="[object Array]",Pp="[object Object]",_Xe=Object.prototype,Zj=_Xe.hasOwnProperty;function qXe(r,e,t,i,n,a){var o=nr(r),s=nr(e),A=o?Xj:zn(r),u=s?Xj:zn(e);A=A==jj?Pp:A,u=u==jj?Pp:u;var c=A==Pp,l=u==Pp,f=A==u;if(f&&hs(r)){if(!hs(e))return!1;o=!0,c=!1}if(f&&!c)return a||(a=new uo),o||Ep(r)?Tp(r,e,t,i,n,a):Yj(r,e,A,t,i,n,a);if(!(t&SXe)){var g=c&&Zj.call(r,"__wrapped__"),h=l&&Zj.call(e,"__wrapped__");if(g||h){var d=g?r.value():r,p=h?e.value():e;return a||(a=new uo),n(d,p,t,i,a)}}return f?(a||(a=new uo),zj(r,e,t,i,n,a)):!1}var $j=qXe;function eX(r,e,t,i,n){return r===e?!0:r==null||e==null||!Ve(r)&&!Ve(e)?r!==r&&e!==e:$j(r,e,t,i,eX,n)}var Cc=eX;var DXe=1,FXe=2;function kXe(r,e,t,i){var n=t.length,a=n,o=!i;if(r==null)return!a;for(r=Object(r);n--;){var s=t[n];if(o&&s[2]?s[1]!==r[s[0]]:!(s[0]in r))return!1}for(;++n<a;){s=t[n];var A=s[0],u=r[A],c=s[1];if(o&&s[2]){if(u===void 0&&!(A in r))return!1}else{var l=new uo;if(i)var f=i(u,c,A,r,e,l);if(!(f===void 0?Cc(c,u,DXe|FXe,i,l):f))return!1}}return!0}var rX=kXe;function RXe(r){return r===r&&!Qr(r)}var Mp=RXe;function NXe(r){for(var e=mn(r),t=e.length;t--;){var i=e[t],n=r[i];e[t]=[i,n,Mp(n)]}return e}var tX=NXe;function OXe(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}var Up=OXe;function TXe(r){var e=tX(r);return e.length==1&&e[0][2]?Up(e[0][0],e[0][1]):function(t){return t===r||rX(t,r,e)}}var iX=TXe;function PXe(r,e){return r!=null&&e in Object(r)}var nX=PXe;function MXe(r,e,t){e=bp(e,r);for(var i=-1,n=e.length,a=!1;++i<n;){var o=Ao(e[i]);if(!(a=r!=null&&t(r,o)))break;r=r[o]}return a||++i!=n?a:(n=r==null?0:r.length,!!n&&Ac(n)&&ro(o,n)&&(nr(r)||Bp(r)))}var aX=MXe;function UXe(r,e){return r!=null&&aX(r,e,nX)}var oX=UXe;var GXe=1,LXe=2;function HXe(r,e){return lc(r)&&Mp(e)?Up(Ao(r),e):function(t){var i=Yz(t,r);return i===void 0&&i===e?oX(t,r):Cc(e,i,GXe|LXe)}}var sX=HXe;function WXe(r){return function(e){return e==null?void 0:e[r]}}var AX=WXe;function JXe(r){return function(e){return wp(e,r)}}var cX=JXe;function KXe(r){return lc(r)?AX(Ao(r)):cX(r)}var uX=KXe;function VXe(r){return typeof r=="function"?r:r==null?$a:(typeof r==="undefined"?"undefined":_type_of(r))=="object"?nr(r)?sX(r[0],r[1]):iX(r):uX(r)}var lX=VXe;function YXe(r){return function(e,t,i){for(var n=-1,a=Object(e),o=i(e),s=o.length;s--;){var A=o[r?s:++n];if(t(a[A],A,a)===!1)break}return e}}var fX=YXe;var zXe=fX(),gX=zXe;function jXe(r,e){return r&&gX(r,e,mn)}var dX=jXe;function XXe(r,e){return function(t,i){if(t==null)return t;if(!pn(t))return r(t,i);for(var n=t.length,a=e?n:-1,o=Object(t);(e?a--:++a<n)&&i(o[a],a,o)!==!1;);return t}}var hX=XXe;var ZXe=hX(dX),IX=ZXe;var $Xe=function $Xe1(){return Ke.Date.now()},Gp=$Xe;var eZe="Expected a function",rZe=Math.max,tZe=Math.min;function iZe(r,e,t){var i,n,a,o,s,A,u=0,c=!1,l=!1,f=!0;if(typeof r!="function")throw new TypeError(eZe);e=Wn(e)||0,Qr(t)&&(c=!!t.leading,l="maxWait"in t,a=l?rZe(Wn(t.maxWait)||0,e):a,f="trailing"in t?!!t.trailing:f);function g(B){var b=i,C=n;return i=n=void 0,u=B,o=r.apply(C,b),o}function h(B){return u=B,s=setTimeout(m,e),c?g(B):o}function d(B){var b=B-A,C=B-u,y=e-b;return l?tZe(y,a-C):y}function p(B){var b=B-A,C=B-u;return A===void 0||b>=e||b<0||l&&C>=a}function m(){var B=Gp();if(p(B))return x(B);s=setTimeout(m,d(B))}function x(B){return s=void 0,f&&i?g(B):(i=n=void 0,o)}function v(){s!==void 0&&clearTimeout(s),u=0,i=A=n=s=void 0}function E(){return s===void 0?o:x(Gp())}function S(){var B=Gp(),b=p(B);if(i=arguments,n=this,A=B,b){if(s===void 0)return h(A);if(l)return clearTimeout(s),s=setTimeout(m,e),g(A)}return s===void 0&&(s=setTimeout(m,e)),o}return S.cancel=v,S.flush=E,S}var xs=iZe;function nZe(r,e){var t=-1,i=pn(r)?Array(r.length):[];return IX(r,function(n,a,o){i[++t]=e(n,a,o)}),i}var pX=nZe;function aZe(r,e){var t=nr(r)?np:pX;return t(r,lX(e,3))}var pw=aZe;var oZe="[object String]";function sZe(r){return typeof r=="string"||!nr(r)&&Ve(r)&&Ir(r)==oZe}var xw=sZe;var AZe="[object Boolean]";function cZe(r){return r===!0||r===!1||Ve(r)&&Ir(r)==AZe}var mw=cZe;var uZe="[object Date]";function lZe(r){return Ve(r)&&Ir(r)==uZe}var xX=lZe;var mX=kt&&kt.isDate,fZe=mX?xn(mX):xX,vw=fZe;function gZe(r,e){return Cc(r,e)}var Bc=gZe;var dZe=Ke.isFinite;function hZe(r){return typeof r=="number"&&dZe(r)}var Ec=hZe;var IZe="[object Number]";function pZe(r){return typeof r=="number"||Ve(r)&&Ir(r)==IZe}var Cw=pZe;function xZe(r){return r==null}var jt=xZe;function mZe(r){return r===null}var Bw=mZe;var vZe="[object RegExp]";function CZe(r){return Ve(r)&&Ir(r)==vZe}var vX=CZe;var CX=kt&&kt.isRegExp,BZe=CX?xn(CX):vX,Ew=BZe;function EZe(r){return r===void 0}var yw=EZe;var yZe=32,Qw=gz(function(r,e){var t=Vn(e,sc(Qw));return uz(r,yZe,void 0,e,t)});Qw.placeholder={};var Bf=Qw;var QZe="Expected a function";function bZe(r,e,t){var i=!0,n=!0;if(typeof r!="function")throw new TypeError(QZe);return Qr(t)&&(i="leading"in t?!!t.leading:i,n="trailing"in t?!!t.trailing:n),xs(r,e,{leading:i,maxWait:e,trailing:n})}var bw=bZe;var Di=require("obsidian"),ug=Le(kr());var Lp=require("obsidian");var Ef=/*#__PURE__*/function(_Lp_Modal){"use strict";_inherits(Ef1,_Lp_Modal);function Ef1(t,i){_class_call_check(this,Ef1);var _this;_this=_call_super(this,Ef1,[t]);_this.tasks=i;_this.confirmed=!1;_this.selectedTasks=[];_this.selectedTasks=new Array(i.length).fill(!0);return _this}_create_class(Ef1,[{key:"onOpen",value:function onOpen(){var _this=this;this.setTitle(_.t("deleteConfirm.title"));var _this1=this,t=_this1.contentEl;t.empty();var i=t.createEl("p",{cls:"delete-confirm-instruction"});i.style.whiteSpace="pre-wrap",i.setText(_.t("deleteConfirm.instruction"));var a=t.createDiv({cls:"max-h-50vh overflow-y-auto"}).createEl("table",{cls:"task-list-table"}),s=a.createEl("thead").createEl("tr"),A=s.createEl("th",{text:_.t("deleteConfirm.select")});A.style.textAlign="center",s.createEl("th",{text:_.t("deleteConfirm.filePath")});var u=a.createEl("tbody");this.tasks.forEach(function(l,f){var g=u.createEl("tr"),h=g.createEl("td");h.style.textAlign="center";var d=h.createEl("input");d.type="checkbox",d.checked=_this.selectedTasks[f],d.addEventListener("change",function(p){_this.selectedTasks[f]=d.checked,p.stopPropagation()}),g.addEventListener("click",function(p){p.target!==d&&(d.checked=!d.checked,_this.selectedTasks[f]=d.checked,p.stopPropagation())}),g.createEl("td",{text:l.localPath})});var c=t.createDiv();c.style.marginTop="1rem",new Lp.Setting(c).addButton(function(l){l.setButtonText(_.t("deleteConfirm.deleteAndReupload")).setCta().onClick(function(){_this.confirmed=!0,_this.close()})}).addButton(function(l){l.setButtonText(_.t("deleteConfirm.skipForNow")).onClick(function(){_this.confirmed=!1,_this.close()})})}},{key:"open",value:function open(){var _this=this;var _this1=this,_superprop_get_open=function(){return _get(_get_prototype_of(Ef1.prototype),"open",_this)};return _async_to_generator(function(){var _this;return _ts_generator(this,function(_state){_this=this;return[2,(_superprop_get_open().call(_this1),new Promise(function(t){_this.onClose=function(){if(!_this.confirmed){t({tasksToDelete:[],tasksToReupload:[]});return}var i=_this.tasks.filter(function(a,o){return _this.selectedTasks[o]}),n=_this.tasks.filter(function(a,o){return!_this.selectedTasks[o]});t({tasksToDelete:i,tasksToReupload:n})}}))]})}).call(this)}}]);return Ef1}(Lp.Modal);var Hp=require("obsidian");var yf=/*#__PURE__*/function(_Hp_Modal){"use strict";_inherits(yf1,_Hp_Modal);function yf1(t,i){_class_call_check(this,yf1);var _this;_this=_call_super(this,yf1,[t]);_this.failedTasks=i;return _this}_create_class(yf1,[{key:"onOpen",value:function onOpen(){var _this=this;this.setTitle(_.t("failedTasks.title"));var _this1=this,t=_this1.contentEl;t.empty(),t.createEl("p",{cls:"failed-tasks-instruction"}).setText(_.t("failedTasks.instruction"));var a=t.createDiv({cls:"max-h-50vh overflow-y-auto"}).createEl("table",{cls:"task-list-table"}),s=a.createEl("thead").createEl("tr");s.createEl("th",{text:_.t("failedTasks.taskName")}),s.createEl("th",{text:_.t("failedTasks.localPath")}),s.createEl("th",{text:_.t("failedTasks.errorMessage")});var A=a.createEl("tbody");this.failedTasks.forEach(function(c){var l=A.createEl("tr");l.createEl("td",{text:c.taskName}),l.createEl("td",{text:c.localPath}),l.createEl("td",{text:c.errorMessage})});var u=t.createDiv();u.style.marginTop="1rem",new Hp.Setting(u).addButton(function(c){c.setButtonText(_.t("failedTasks.close")).setCta().onClick(function(){return _this.close()})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return yf1}(Hp.Modal);var zp=require("obsidian");var yX=require("obsidian"),Wp=Le(kr());var ar=/*#__PURE__*/function(){"use strict";function ar1(e){_class_call_check(this,ar1);this.options=e}_create_class(ar1,[{key:"vault",get:function get(){return this.options.vault}},{key:"syncRecord",get:function get(){return this.options.syncRecord}},{key:"webdav",get:function get(){return this.options.webdav}},{key:"remoteBaseDir",get:function get(){return this.options.remoteBaseDir}},{key:"remotePath",get:function get(){return(0,Wp.isAbsolute)(this.options.remotePath)?this.options.remotePath:(0,Wp.join)(this.remoteBaseDir,this.options.remotePath)}},{key:"localPath",get:function get(){return(0,yX.normalizePath)(this.options.localPath)}},{key:"toJSON",value:function toJSON(){var _this=this,e=_this.localPath,t=_this.remoteBaseDir,i=_this.remotePath;return{taskName:Wi(this),localPath:e,remoteBaseDir:t,remotePath:i}}}]);return ar1}(),lo=/*#__PURE__*/function(Error1){"use strict";_inherits(lo1,Error1);function lo1(t,i,n){_class_call_check(this,lo1);var _this;_this=_call_super(this,lo1,[t]);_this.task=i;_this.cause=n;_this.name="TaskError";return _this}return lo1}(_wrap_native_super(Error));function xr(r,e){if(_instanceof(r,lo))return r;var t=_instanceof(r,Error)?r.message:String(r);return new lo(t,e,_instanceof(r,Error)?r:void 0)}var Rt=/*#__PURE__*/function(ar1){"use strict";_inherits(Rt1,ar1);function Rt1(){_class_call_check(this,Rt1);return _call_super(this,Rt1,arguments)}_create_class(Rt1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.syncRecord.deleteFileRecord(this.localPath)];case 1:return[2,(_state.sent(),{success:!0,skipRecord:!0})];case 2:e=_state.sent();return[2,(z.error(this,e),{success:!1,error:xr(e,this)})];case 3:return[2]}})}).call(this)}}]);return Rt1}(ar);function SZe(r){return _async_to_generator(function(){return _ts_generator(this,function(_state){return[2,crypto.subtle.digest("SHA-256",r)]})})()}function ww(r){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,SZe(r)];case 1:e=_state.sent();return[2,wV(new Uint8Array(e),!1)]}})})()}var Jp=Le(bX());function Qf(r){function e(s,A){return r.setItem(s,A)}function t(s){return r.getItem(s)}function i(s){return r.removeItem(s)}function n(){return r.clear()}function a(){return _async_to_generator(function(){var s,A,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,u,c,err1;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,r.keys()];case 1:s=_state.sent(),A={};_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;_state.label=2;case 2:_state.trys.push([2,7,8,9]);_iterator=s[Symbol.iterator]();_state.label=3;case 3:if(!!(_iteratorNormalCompletion=(_step=_iterator.next()).done))return[3,6];u=_step.value;return[4,r.getItem(u)];case 4:c=_state.sent();c&&(A[u]=c);_state.label=5;case 5:_iteratorNormalCompletion=true;return[3,3];case 6:return[3,9];case 7:err1=_state.sent();_didIteratorError=true;_iteratorError=err1;return[3,9];case 8:try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}return[7];case 9:return[2,A]}})})()}function o(s){return _async_to_generator(function(){var A,_tmp,_tmp1,_tmp2,_i1,u,u2,_tmp3,_tmp4,_tmp5,_i2,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!s||(typeof s==="undefined"?"undefined":_type_of(s))!="object")throw new Error("Invalid data format for restore");return[4,a()];case 1:A=_state.sent();_state.label=2;case 2:_state.trys.push([2,8,,14]);return[4,r.clear()];case 3:_state.sent();_tmp=s;_tmp1=[];for(_tmp2 in _tmp)_tmp1.push(_tmp2);_i1=0;_state.label=4;case 4:if(!(_i1<_tmp1.length))return[3,7];_tmp2=_tmp1[_i1];if(!(_tmp2 in _tmp))return[3,6];u=_tmp2;return[4,r.setItem(u,s[u])];case 5:_state.sent();_state.label=6;case 6:_i1++;return[3,4];case 7:return[3,14];case 8:u2=_state.sent();return[4,r.clear()];case 9:_state.sent();_tmp3=A;_tmp4=[];for(_tmp5 in _tmp3)_tmp4.push(_tmp5);_i2=0;_state.label=10;case 10:if(!(_i2<_tmp4.length))return[3,13];_tmp5=_tmp4[_i2];if(!(_tmp5 in _tmp3))return[3,12];c=_tmp5;return[4,r.setItem(c,A[c])];case 11:_state.sent();_state.label=12;case 12:_i2++;return[3,10];case 13:return[3,14];case 14:return[2]}})})()}return{set:e,get:t,unset:i,clear:n,dump:a,restore:o}}var _w="Nutstore_Plugin_Cache",jn=Qf(Jp.default.createInstance({name:_w,storeName:"sync_record"})),bf=Qf(Jp.default.createInstance({name:_w,storeName:"base_blob_store"})),Cn=Qf(Jp.default.createInstance({name:_w,storeName:"traverse_webdav_cache"}));function _Ze(){function r(t){return bf.get(t)}function e(t){return _async_to_generator(function(){var i,n,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!_instanceof(t,Blob))return[3,3];return[4,t.arrayBuffer()];case 1:return[4,ww.apply(void 0,[_state.sent()])];case 2:_tmp=(i=_state.sent(),n=t);return[3,5];case 3:return[4,ww(t)];case 4:_tmp=(i=_state.sent(),n=new Blob([t]));_state.label=5;case 5:_tmp;_tmp1={key:i};return[4,bf.set(i,n)];case 6:return[2,(_tmp1.value=_state.sent(),_tmp1)]}})})()}return{get:r,store:e}}var Qc=_Ze();function wX(r){return r=r.trim().toLowerCase(),r.endsWith(".md")||r.endsWith(".markdown")}function wf(r){return wX(r)}function _X(r,e){var t={};for(var a=0;a<e.length;a++){var o=e[a];t[o]?t[o].push(a):t[o]=[a]}var n=[{buffer1index:-1,buffer2index:-1,chain:null}];for(var a1=0;a1<r.length;a1++){var o1=r[a1],s=t[o1]||[],A=0,u=n[0];for(var c=0;c<s.length;c++){var l=s[c],f=void 0;for(f=A;f<n.length&&!(n[f].buffer2index<l&&(f===n.length-1||n[f+1].buffer2index>l));f++);if(f<n.length){var g={buffer1index:a1,buffer2index:l,chain:n[f]};if(A===n.length?n.push(u):n[A]=u,A=f+1,u=g,A===n.length)break}}n[A]=u}return n[n.length-1]}function qX(r,e){var t=_X(r,e),i=[],n=r.length,a=e.length,o={common:[]};function s(){o.common.length&&(o.common.reverse(),i.push(o),o={common:[]})}for(var A=t;A!==null;A=A.chain){var u={buffer1:[],buffer2:[]};for(;--n>A.buffer1index;)u.buffer1.push(r[n]);for(;--a>A.buffer2index;)u.buffer2.push(e[a]);(u.buffer1.length||u.buffer2.length)&&(s(),u.buffer1.reverse(),u.buffer2.reverse(),i.push(u)),n>=0&&o.common.push(r[n])}return s(),i.reverse(),i}function SX(r,e){var t=_X(r,e),i=[],n=r.length,a=e.length;for(var o=t;o!==null;o=o.chain){var s=n-o.buffer1index-1,A=a-o.buffer2index-1;n=o.buffer1index,a=o.buffer2index,(s||A)&&i.push({buffer1:[n+1,s],buffer1Content:r.slice(n+1,n+1+s),buffer2:[a+1,A],buffer2Content:e.slice(a+1,a+1+A)})}return i.reverse(),i}function qZe(r,e,t){var i=[];function n(A,u){i.push({ab:u,oStart:A.buffer1[0],oLength:A.buffer1[1],abStart:A.buffer2[0],abLength:A.buffer2[1]})}SX(e,r).forEach(function(A){return n(A,"a")}),SX(e,t).forEach(function(A){return n(A,"b")}),i.sort(function(A,u){return A.oStart-u.oStart});var a=[],o=0;function s(A){A>o&&(a.push({stable:!0,buffer:"o",bufferStart:o,bufferLength:A-o,bufferContent:e.slice(o,A)}),o=A)}for(;i.length;){var A=i.shift(),u=A.oStart,c=A.oStart+A.oLength,l=[A];for(s(u);i.length;){var f=i[0],g=f.oStart;if(g>c)break;c=Math.max(c,g+f.oLength),l.push(i.shift())}if(l.length===1){if(A.abLength>0){var f2=A.ab==="a"?r:t;a.push({stable:!0,buffer:A.ab,bufferStart:A.abStart,bufferLength:A.abLength,bufferContent:f2.slice(A.abStart,A.abStart+A.abLength)})}}else{var f3={a:[r.length,-1,e.length,-1],b:[t.length,-1,e.length,-1]};for(;l.length;){A=l.shift();var x=A.oStart,v=x+A.oLength,E=A.abStart,S=E+A.abLength,B=f3[A.ab];B[0]=Math.min(E,B[0]),B[1]=Math.max(S,B[1]),B[2]=Math.min(x,B[2]),B[3]=Math.max(v,B[3])}var g2=f3.a[0]+(u-f3.a[2]),h=f3.a[1]+(c-f3.a[3]),d=f3.b[0]+(u-f3.b[2]),p=f3.b[1]+(c-f3.b[3]),m={stable:!1,aStart:g2,aLength:h-g2,aContent:r.slice(g2,h),oStart:u,oLength:c-u,oContent:e.slice(u,c),bStart:d,bLength:p-d,bContent:t.slice(d,p)};a.push(m)}o=c}return s(e.length),a}function Kp(r,e,t,i){i=Object.assign({excludeFalseConflicts:!0,stringSeparator:/\s+/},i),typeof r=="string"&&(r=r.split(i.stringSeparator)),typeof e=="string"&&(e=e.split(i.stringSeparator)),typeof t=="string"&&(t=t.split(i.stringSeparator));var a=[],o=qZe(r,e,t),s=[];function A(){s.length&&a.push({ok:s}),s=[]}function u(c,l){if(c.length!==l.length)return!1;for(var f=0;f<c.length;f++)if(c[f]!==l[f])return!1;return!0}return o.forEach(function(c){var _s1,_s2;c.stable?(_s1=s).push.apply(_s1,_to_consumable_array(c.bufferContent)):i.excludeFalseConflicts&&u(c.aContent,c.bContent)?(_s2=s).push.apply(_s2,_to_consumable_array(c.aContent)):(A(),a.push({conflict:{a:c.aContent,aIndex:c.aStart,o:c.oContent,oIndex:c.oStart,b:c.bContent,bIndex:c.bStart}}))}),A(),a}function DX(r,e,t,i){i=Object.assign({excludeFalseConflicts:!0,stringSeparator:/\s+/,label:{},useGitStyle:!1},i);var a=i.useGitStyle?"<<<<<<<":'<mark class="conflict ours">',o=i.useGitStyle?"=======":'</mark><mark class="conflict theirs">',s=i.useGitStyle?">>>>>>>":"</mark>",A=Kp(r,e,t,i),u=!1,c=[];return A.forEach(function(l){if(l.ok)c=c.concat(l.ok);else{var f=qX(l.conflict.a,l.conflict.b);for(var g=0;g<f.length;g++){var h=f[g];h.common?c=c.concat(h.common):(u=!0,c=c.concat([a],h.buffer1,[o],h.buffer2,[s]))}}}),{conflict:u,result:c}}var bc=require("obsidian"),qw=Le(kr());function Xt(r,e){return _async_to_generator(function(){var t;return _ts_generator(this,function(_state){e=(0,bc.normalizePath)(e);t=r.getAbstractFileByPath(e);if(t){if(_instanceof(t,bc.TFolder))return[2,{path:e,basename:(0,qw.basename)(e),isDir:!0,isDeleted:!1}];if(_instanceof(t,bc.TFile))return[2,{path:e,basename:(0,qw.basename)(e),isDir:!1,isDeleted:!1,mtime:t.stat.mtime,size:t.stat.size}]}return[2]})})()}var FX=Le(kr());function fo(r){return{path:r.filename,basename:r.basename,isDir:r.type==="directory",isDeleted:!1,mtime:new Date(r.lastmod).valueOf(),size:r.size}}function kX(r,e){return _async_to_generator(function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(0,FX.isAbsolute)(e))throw new Error("stat WebDAV item, path must be absolute: "+e);return[4,r.stat(e,{details:!1})];case 1:t=_state.sent();return[2,fo(t)]}})})()}var NX=Le(RX());function OX(r){var e=r.localMtime,t=r.remoteMtime,i=r.localContent,n=r.remoteContent;return t===e?{status:0}:t>e?Bc(i,n)?{status:0}:{status:1,content:n}:Bc(i,n)?{status:0}:{status:2,content:i}}function DZe(r,e,t){var i=Kp(e,r,t,{excludeFalseConflicts:!0,stringSeparator:"\n"});if(i.some(function(a){return!a.ok}))return!1;var n=[];var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=i[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;a.ok&&n.push(a.ok)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return n.flat().join("\n")}function TX(r){return _async_to_generator(function(){var e,t,i,n,a,o,s,_a_patch_apply,A,u;return _ts_generator(this,function(_state){e=r.localContentText,t=r.remoteContentText,i=r.baseContentText;if(e===t)return[2,{success:!0,isIdentical:!0}];n=DZe(i,e,t);if(n!==!1)return[2,{success:!0,mergedText:n}];a=new NX.diff_match_patch;a.Match_Threshold=.2,a.Patch_Margin=2;o=a.diff_main(i,t),s=a.patch_make(i,o),_a_patch_apply=_sliced_to_array(a.patch_apply(s,e),2),A=_a_patch_apply[0],u=_a_patch_apply[1];return[2,u.includes(!1)?{success:!1}:{success:!0,mergedText:A}]})})()}var Xn=/*#__PURE__*/function(ar1){"use strict";_inherits(Xn1,ar1);function Xn1(t){_class_call_check(this,Xn1);var _this;_this=_call_super(this,Xn1,[t]);_this.options=t;return _this}_create_class(Xn1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var t,i,_$n,_tmp,a,_tmp1,_2,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,13,,14]);if(!((t=this.options.localStat)!=null))return[3,1];_tmp=t;return[3,3];case 1:return[4,Xt(this.vault,this.localPath)];case 2:_tmp=_state.sent();_state.label=3;case 3:_$n=_tmp;if(!_$n)throw new Error("Local file not found: "+this.localPath);if(!((i=this.options.remoteStat)!=null))return[3,4];_tmp1=i;return[3,6];case 4:return[4,kX(this.webdav,this.remotePath)];case 5:_tmp1=_state.sent();_state.label=6;case 6:a=_tmp1;if(a.isDir)throw new Error("Remote path is a directory: "+this.remotePath);if(_$n.isDir)throw new Error("Local path is a directory: "+this.localPath);if(_$n.size===0&&a.size===0)return[2,{success:!0}];_2=this.options.strategy;switch(_2){case"diff-match-patch":return[3,7];case"latest-timestamp":return[3,9];case"skip":return[3,11]}return[3,12];case 7:return[4,this.execIntelligentMerge()];case 8:return[2,_state.sent()];case 9:return[4,this.execLatestTimeStamp(_$n,a)];case 10:return[2,_state.sent()];case 11:return[2,{success:!0,skipRecord:!0}];case 12:return[3,14];case 13:n=_state.sent();return[2,(z.error(this,n),{success:!1,error:xr(n,this)})];case 14:return[2]}})}).call(this)}},{key:"execLatestTimeStamp",value:function execLatestTimeStamp(t,i){return _async_to_generator(function(){var _$n,a,o,s,A,u,_2,c,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,9,,10]);_$n=t.mtime,a=i.mtime;if(a===_$n)return[2,{success:!0}];o=this.vault.getFileByPath(this.localPath);if(!o)return[2,{success:!1,error:xr(new Error("cannot find file in local fs: "+this.localPath),this)}];return[4,this.vault.readBinary(o)];case 1:s=_state.sent();return[4,this.webdav.getFileContents(this.remotePath,{details:!1,format:"binary"})];case 2:A=_state.sent(),u=OX({localMtime:_$n,remoteMtime:a,localContent:s,remoteContent:A});_2=u.status;switch(_2){case 1:return[3,3];case 2:return[3,5];case 0:return[3,7]}return[3,8];case 3:c=_instanceof(u.content,ArrayBuffer)?u.content:new Uint8Array(u.content).buffer;return[4,this.vault.modifyBinary(o,c)];case 4:_state.sent();return[3,8];case 5:return[4,this.webdav.putFileContents(this.remotePath,u.content,{overwrite:!0})];case 6:_state.sent();return[3,8];case 7:If();return[3,8];case 8:return[2,{success:!0}];case 9:n=_state.sent();return[2,(z.error(this,n),{success:!1,error:xr(n,this)})];case 10:return[2]}})}).call(this)}},{key:"execIntelligentMerge",value:function execIntelligentMerge(){return _async_to_generator(function(){var t,i,_$n,a,o,_this_options,s,A,u,_tmp,c,l,f,g,h,d,v,p,_tmp1,_tmp2,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,19,,20]);_$n=this.vault.getFileByPath(this.localPath);if(!_$n)throw new Error("cannot find file in local fs: "+this.localPath);return[4,this.vault.readBinary(_$n)];case 1:a=_state.sent();return[4,this.webdav.getFileContents(this.remotePath,{format:"binary",details:!1})];case 2:o=_state.sent();if(Bc(a,o))return[2,{success:!0}];_this_options=this.options,s=_this_options.record,A=null,u=(t=s==null?void 0:s.base)==null?void 0:t.key;_tmp=u;if(!_tmp)return[3,4];return[4,Qc.get(u)];case 3:_tmp=A=_state.sent();_state.label=4;case 4:_tmp;c=wf(_$n.path),l=wf(this.remotePath);if(!(c&&l))throw new Error(_.t("sync.error.mergeNotSupported"));return[4,new Blob([new Uint8Array(a)]).text()];case 5:f=_state.sent();return[4,new Blob([new Uint8Array(o)]).text()];case 6:g=_state.sent();return[4,A==null?void 0:A.text()];case 7:h=(i=_state.sent())!=null?i:f;return[4,TX({localContentText:f,remoteContentText:g,baseContentText:h})];case 8:d=_state.sent();if(!!d.success)return[3,12];v=DX(f,h,g,{stringSeparator:"\n",useGitStyle:this.options.useGitStyle}).result.join("\n");return[4,this.webdav.putFileContents(this.remotePath,v,{overwrite:!0})];case 9:if(!_state.sent())return[3,11];return[4,this.vault.modify(_$n,v)];case 10:return[2,(_state.sent(),{success:!0})];case 11:throw new Error(_.t("sync.error.failedToUploadMerged"));case 12:if(d.isIdentical)return[2,{success:!0}];p=d.mergedText;if(!(p===g))return[3,15];_tmp1=p!==f;if(!_tmp1)return[3,14];return[4,this.vault.modify(_$n,p)];case 13:_tmp1=_state.sent();_state.label=14;case 14:return[2,(_tmp1,{success:!0})];case 15:return[4,this.webdav.putFileContents(this.remotePath,p,{overwrite:!0})];case 16:if(!_state.sent())throw new Error(_.t("sync.error.failedToUploadMerged"));_tmp2=f!==p;if(!_tmp2)return[3,18];return[4,this.vault.modify(_$n,p)];case 17:_tmp2=_state.sent();_state.label=18;case 18:return[2,(_tmp2,{success:!0})];case 19:n=_state.sent();return[2,(z.error(this,n),{success:!1,error:xr(n,this)})];case 20:return[2]}})}).call(this)}}]);return Xn1}(ar);var FZe=':*?"<>|',PX=FZe.split("");function go(r){return PX.some(function(e){return r.includes(e)})}function MX(r){return PX.filter(function(e){return r.includes(e)})}var Sf=/*#__PURE__*/function _target(Error1){"use strict";_inherits(Sf1,Error1);function Sf1(t,i){_class_call_check(this,Sf1);var _this;var n;_this=_call_super(this,Sf1);_this.invalidChars=t;_this.filePath=i;_this.name="FilenameError",(n=Object.setPrototypeOf)==null||n.call(Object,_this,(_instanceof(this,Sf1)?this.constructor:void 0).prototype),Object.defineProperty(_this,"message",{configurable:!0,get:function(){return Sf.format(_this.invalidChars,_this.filePath)}});return _this}_create_class(Sf1,null,[{key:"format",value:function format(t,i){var a=Array.from(new Set(t)).map(function(o){return"'".concat(o,"'")}).join(", ");return _.t("errors.filenameUnsupportedChars",{chars:a,path:i})}}]);return Sf1}(_wrap_native_super(Error)),Zn=/*#__PURE__*/function(ar1){"use strict";_inherits(Zn1,ar1);function Zn1(){_class_call_check(this,Zn1);return _call_super(this,Zn1,arguments)}_create_class(Zn1,[{key:"exec",value:function exec(){var e=MX(this.localPath);return{success:!1,error:xr(new Sf(e,this.localPath),this)}}}]);return Zn1}(ar);var Vp=Le(kr());function Yp(r,e){return _async_to_generator(function(){var t,i,n,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:t=[],i=(0,Vp.normalize)(e);if(!(!(i==="/"||i===".")&&!r.getAbstractFileByPath(i)))return[3,5];for(;i!==""&&i!=="/"&&i!=="."&&jt(r.getAbstractFileByPath(i));)t.push(i),i=(0,Vp.dirname)(i);_state.label=1;case 1:if(!t.length)return[3,5];n=t.pop();_tmp=n;if(!_tmp)return[3,3];return[4,r.createFolder(n)];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;_state.label=4;case 4:return[3,1];case 5:return[2]}})})()}var $n=/*#__PURE__*/function(ar1){"use strict";_inherits($n1,ar1);function $n1(){_class_call_check(this,$n1);return _call_super(this,$n1,arguments)}_create_class($n1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,Yp(this.vault,this.localPath)];case 1:return[2,(_state.sent(),{success:!0})];case 2:e=_state.sent();return[2,(z.error(this,e),{success:!1,error:xr(e,this)})];case 3:return[2]}})}).call(this)}}]);return $n1}(ar);var Ct=/*#__PURE__*/function(ar1){"use strict";_inherits(Ct1,ar1);function Ct1(){_class_call_check(this,Ct1);return _call_super(this,Ct1,arguments)}_create_class(Ct1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,Xt(this.vault,this.localPath)];case 1:if(!_state.sent())throw z.debug("PullTask: local path:",this.localPath),z.debug("PullTask: local stat is null"),new Error(_.t("sync.error.localPathNotFound",{path:this.localPath}));return[4,this.webdav.createDirectory(this.remotePath,{recursive:!0})];case 2:return[2,(_state.sent(),{success:!0})];case 3:e=_state.sent();return[2,(z.error(this,e),{success:!1,error:xr(e,this)})];case 4:return[2]}})}).call(this)}}]);return Ct1}(ar);var Ji=/*#__PURE__*/function(ar1){"use strict";_inherits(Ji1,ar1);function Ji1(t){_class_call_check(this,Ji1);var _this;_this=_call_super(this,Ji1,[t]);_this.additionalPaths=t.additionalPaths;return _this}_create_class(Ji1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,Xt(this.vault,this.localPath)];case 1:if(!_state.sent())throw z.debug("MkdirsRemoteTask: local path:",this.localPath),z.debug("MkdirsRemoteTask: local stat is null"),new Error(_.t("sync.error.localPathNotFound",{path:this.localPath}));return[4,this.webdav.createDirectory(this.remotePath,{recursive:!0})];case 2:return[2,(_state.sent(),{success:!0})];case 3:t=_state.sent();return[2,(z.error(this,t),{success:!1,error:xr(t,this)})];case 4:return[2]}})}).call(this)}},{key:"getAllPaths",value:function getAllPaths(){return[{localPath:this.localPath,remotePath:this.remotePath}].concat(_to_consumable_array(this.additionalPaths))}},{key:"toJSON",value:function toJSON(){return _object_spread_props(_object_spread({},_get(_get_prototype_of(Ji1.prototype),"toJSON",this).call(this)),{additionalPaths:this.additionalPaths,totalDirs:this.getAllPaths().length})}}]);return Ji1}(ar);var Zt=/*#__PURE__*/function(ar1){"use strict";_inherits(Zt1,ar1);function Zt1(){_class_call_check(this,Zt1);return _call_super(this,Zt1,arguments)}_create_class(Zt1,[{key:"exec",value:function exec(){return{success:!0}}}]);return Zt1}(ar);var UX=Le(kr());var ea=/*#__PURE__*/function(ar1){"use strict";_inherits(ea1,ar1);function ea1(t){_class_call_check(this,ea1);var _this;_this=_call_super(this,ea1,[t]);_this.options=t;return _this}_create_class(ea1,[{key:"remoteSize",get:function get(){return this.options.remoteSize}},{key:"exec",value:function exec(){return _async_to_generator(function(){var t,_$i,n,_tmp,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.vault.getFileByPath(this.localPath)];case 1:t=_state.sent();_state.label=2;case 2:_state.trys.push([2,9,,10]);return[4,this.webdav.getFileContents(this.remotePath,{format:"binary",details:!1})];case 3:_$i=_state.sent(),n=kZe(_$i);if(n.byteLength!==this.remoteSize)throw new Error("Remote Size Not Match!");if(!t)return[3,5];return[4,this.vault.modifyBinary(t,n)];case 4:_tmp=_state.sent();return[3,8];case 5:return[4,Yp(this.vault,(0,UX.dirname)(this.localPath))];case 6:_state.sent();return[4,this.vault.createBinary(this.localPath,n)];case 7:_tmp=_state.sent();_state.label=8;case 8:return[2,(_tmp,{success:!0})];case 9:i=_state.sent();return[2,(z.error(this,i),{success:!1,error:xr(i,this)})];case 10:return[2]}})}).call(this)}}]);return ea1}(ar);function kZe(r){return _instanceof(r,ArrayBuffer)?r:RZe(r)}function RZe(r){if(_instanceof(r.buffer,SharedArrayBuffer)){var e=new ArrayBuffer(r.byteLength);return new Uint8Array(e).set(r),e}return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}var Ki=/*#__PURE__*/function(ar1){"use strict";_inherits(Ki1,ar1);function Ki1(){_class_call_check(this,Ki1);return _call_super(this,Ki1,arguments)}_create_class(Ki1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var _$e1,t,i,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);_$e1=this.vault.getFileByPath(this.localPath);if(!_$e1)throw new Error("cannot find file in local fs: "+this.localPath);return[4,this.vault.readBinary(_$e1)];case 1:t=_state.sent();return[4,this.webdav.putFileContents(this.remotePath,t,{overwrite:!0})];case 2:i=_state.sent();if(!i)throw new Error("Upload failed");return[2,{success:i}];case 3:e=_state.sent();return[2,(z.error(this,e),{success:!1,error:xr(e,this)})];case 4:return[2]}})}).call(this)}}]);return Ki1}(ar);var Si=/*#__PURE__*/function(ar1){"use strict";_inherits(Si1,ar1);function Si1(t){_class_call_check(this,Si1);var _this;_this=_call_super(this,Si1,[t]);_this.options=t;return _this}_create_class(Si1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var i,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,Xt(this.vault,this.localPath)];case 1:if(!_state.sent())return[2,{success:!0}];i=this.vault.getAbstractFileByPath(this.localPath);if(!i)throw new Error("cannot find file in local fs: "+this.localPath);return[4,this.vault.trash(i,!1)];case 2:return[2,(_state.sent(),{success:!0})];case 3:t=_state.sent();return[2,(z.error(t),{success:!1,error:xr(t,this)})];case 4:return[2]}})}).call(this)}}]);return Si1}(ar);var Vi=/*#__PURE__*/function(ar1){"use strict";_inherits(Vi1,ar1);function Vi1(){_class_call_check(this,Vi1);return _call_super(this,Vi1,arguments)}_create_class(Vi1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.webdav.deleteFile(this.remotePath)];case 1:return[2,(_state.sent(),{success:!0})];case 2:e=_state.sent();return[2,(z.error(e),{success:!1,error:xr(e,this)})];case 3:return[2]}})}).call(this)}}]);return Vi1}(ar);var _i=/*#__PURE__*/function(ar1){"use strict";_inherits(_i1,ar1);function _i1(){_class_call_check(this,_i1);return _call_super(this,_i1,arguments)}_create_class(_i1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.webdav.deleteFile(this.remotePath)];case 1:return[2,(_state.sent(),{success:!0})];case 2:e=_state.sent();return[2,(z.error(e),{success:!1,error:xr(e,this)})];case 3:return[2]}})}).call(this)}}]);return _i1}(ar);var ai=/*#__PURE__*/function(ar1){"use strict";_inherits(ai1,ar1);function ai1(t){_class_call_check(this,ai1);var _this;_this=_call_super(this,ai1,[t]);_this.options=t;return _this}_create_class(ai1,[{key:"exec",value:function exec(){return{success:!0,skipRecord:!0}}}]);return ai1}(ar);function Wi(r){if(_instanceof(r,Rt))return _.t("sync.fileOp.cleanRecord");if(_instanceof(r,Xn))return _.t("sync.fileOp.merge");if(_instanceof(r,Zn))return _.t("sync.fileOp.filenameError");if(_instanceof(r,$n))return _.t("sync.fileOp.createLocalDir");if(_instanceof(r,Ct))return _.t("sync.fileOp.createRemoteDir");if(_instanceof(r,Ji))return _.t("sync.fileOp.createRemoteDirs");if(_instanceof(r,Zt))return _.t("sync.fileOp.noop");if(_instanceof(r,ea))return _.t("sync.fileOp.download");if(_instanceof(r,Ki))return _.t("sync.fileOp.upload");if(_instanceof(r,Si))return _.t("sync.fileOp.removeLocal");if(_instanceof(r,_i))return _.t("sync.fileOp.removeRemote");if(_instanceof(r,Vi))return _.t("sync.fileOp.removeRemoteRecursively");if(_instanceof(r,ai)){var e=_.t("sync.skipReason.".concat(r.options.reason));return"".concat(_.t("sync.fileOp.skip"),": ").concat(e)}return _.t("sync.fileOp.sync")}var _f=/*#__PURE__*/function(_zp_Modal){"use strict";_inherits(_f1,_zp_Modal);function _f1(t,i){_class_call_check(this,_f1);var _this;_this=_call_super(this,_f1,[t]);_this.tasks=i;_this.result=!1;_this.selectedTasks=[];_this.selectedTasks=new Array(i.length).fill(!0);return _this}_create_class(_f1,[{key:"onOpen",value:function onOpen(){var _this=this;this.setTitle(_.t("taskList.title"));var _this1=this,t=_this1.contentEl;t.empty(),t.createEl("p").setText(_.t("taskList.instruction"));var a=t.createDiv({cls:"max-h-50vh overflow-y-auto"}).createEl("table",{cls:"task-list-table"}),s=a.createEl("thead").createEl("tr");s.createEl("th",{text:_.t("taskList.execute")}),s.createEl("th",{text:_.t("taskList.action")}),s.createEl("th",{text:_.t("taskList.localPath")}),s.createEl("th",{text:_.t("taskList.remotePath")});var A=a.createEl("tbody");this.tasks.forEach(function(c,l){var f=A.createEl("tr"),h=f.createEl("td").createEl("input");h.type="checkbox",h.checked=_this.selectedTasks[l],h.addEventListener("change",function(d){_this.selectedTasks[l]=h.checked,d.stopPropagation()}),f.addEventListener("click",function(d){d.target!==h&&(h.checked=!h.checked,_this.selectedTasks[l]=h.checked,d.stopPropagation())}),f.createEl("td",{text:Wi(c)}),f.createEl("td",{text:c.localPath}),f.createEl("td",{text:c.remotePath})});var u=t.createDiv();u.style.marginTop="1rem",new zp.Setting(u).addButton(function(c){c.setButtonText(_.t("taskList.continue")).setCta().onClick(function(){_this.result=!0,_this.close()})}).addButton(function(c){c.setButtonText(_.t("taskList.cancel")).onClick(function(){_this.result=!1,_this.close()})})}},{key:"open",value:function open(){var _this=this;var _this1=this,_superprop_get_open=function(){return _get(_get_prototype_of(_f1.prototype),"open",_this)};return _async_to_generator(function(){var _this;return _ts_generator(this,function(_state){_this=this;return[2,(_superprop_get_open().call(_this1),new Promise(function(t){_this.onClose=function(){var i=_this.tasks.filter(function(n,a){return _this.selectedTasks[a]});t({confirm:_this.result,tasks:i})}}))]})}).call(this)}}]);return _f1}(zp.Modal);var F0=require("obsidian");var GX=new Gr,LX=function(){return GX.asObservable()},HX=function(r){return GX.next(r)};function qf(r){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,new Promise(function(e){return window.setTimeout(e,r)})];case 1:_state.sent();return[2]}})})()}function ms(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;return _async_to_generator(function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Promise.resolve(r())];case 1:t=_state.sent();if(t)return[2,t];return[4,qf(e)];case 2:_state.sent();_state.label=3;case 3:return[3,0];case 4:return[2]}})})()}(function(r,e){var t={_0x5cf91e:1609,_0x3faf49:1377,_0x5120ac:1289,_0x2f5ef4:"ejE(",_0x2cd6cc:1094,_0x2c966b:1717,_0x17ae12:1758,_0x51b4:1193,_0x3bcad0:481,_0x5df4d4:638,_0x8ba02:645,_0x1f3ae4:438,_0x30de76:501,_0x587f8e:495,_0x2efe7b:"o)FD",_0xf40806:1523,_0x126189:"N0Iq",_0x5ea1cb:644,_0x374dff:485,_0x4969c8:454,_0x578a1c:"Iozt",_0x562047:934,_0x1160b4:295,_0x4cb40b:838,_0x55f294:"iqpp",_0x3e2c3e:1084,_0x1b8ae4:1210,_0x3058bd:"RtOR",_0x377b2a:1191,_0x4ea89d:320,_0x33694f:83},i={_0x2ccfe8:417},n={_0xfad580:312},a={_0x3df5d1:14};function o(g,h,d,p,m){return Ie(p- -a._0x3df5d1,d)}function s(g,h,d,p,m){return Ie(d-199,p)}function A(g,h,d,p,m){return Ie(p- -35,h)}function u(g,h,d,p,m){return Ie(p-n._0xfad580,m)}function c(g,h,d,p,m){return Ie(h- -i._0x2ccfe8,g)}for(var l=r();[];)try{var f=parseInt(u(1461,t._0x5cf91e,t._0x3faf49,t._0x5120ac,t._0x2f5ef4))/1+parseInt(u(t._0x2cd6cc,t._0x2c966b,t._0x17ae12,1356,"DLFC"))/2*(parseInt(u(t._0x51b4,1126,t._0x3bcad0,825,"ejE("))/3)+parseInt(u(t._0x5df4d4,t._0x8ba02,t._0x1f3ae4,792,"o)FD"))/4+parseInt(u(1119,t._0x30de76,t._0x587f8e,845,t._0x2efe7b))/5*(parseInt(u(1108,t._0xf40806,1296,1305,"V&B%"))/6)+parseInt(c(t._0x126189,t._0x5ea1cb,t._0x374dff,593,391))/7*(-parseInt(A(t._0x4969c8,t._0x578a1c,t._0x562047,575,t._0x1160b4))/8)+parseInt(s(t._0x4cb40b,645,989,t._0x55f294,1130))/9+parseInt(s(1588,t._0x3e2c3e,t._0x1b8ae4,t._0x3058bd,t._0x377b2a))/10*(-parseInt(c("s!LQ",t._0x4ea89d,-t._0x33694f,119,265))/11);if(f===e)break;l.push(l.shift())}catch(g){l.push(l.shift())}})(jp,624791);var NZe=Object[j("wS8$",553,212,371,8)+"e"],JX=Object[j("r^O1",507,120,124,-69)+j("fdfK",300,672,280,465)+Z(1093,1435,1838,"o5uN",1474)],OZe=Object[j("N0Iq",-207,-111,-266,-345)+ne("QwuZ",1462,1571,1840,1821)+se(-31,"V&B%",-408,-314,152)+Z(1710,2056,1416,"QwuZ",1724)+se(-177,"XKg0",-537,-317,-92)],TZe=Object[j("Iozt",79,-650,-307,-363)+re("bVi3",1108,1698,1572,1488)+ne("bVi3",1211,1244,845,1246)+j("N0Iq",-259,-65,-20,102)],PZe=Object[j("SAMA",226,-484,-112,24)+j("V&B%",749,722,429,795)+Z(1236,1161,1700,"s!LQ",1505)],MZe=Object[re("o5uN",1353,1418,1505,1524)+se(-342,"*YWj",-685,-563,-424)][Z(1152,641,745,"7r4f",989)+Z(1180,1573,1080,"848R",1330)+re("N2PL",1608,1749,1038,1359)],KX={};KX[ne("Zr4y",1522,1236,1729,1220)+"ts"]={};var UZe=function(r,e){return function(){return e||r((e=KX)[j("DLFC",-19,439,183,173)+"ts"],e),e[j("ejE(",394,129,225,612)+"ts"]}},GZe=function(r,e,t,i){var c=function c(d,p,m,x,v){return ne(p,d-u._0x13b464,m-u._0x164e32,x-270,v-66)};var l=function l(d,p,m,x,v){return j(m,p-426,m-A._0x56d95e,v-1330,v-A._0x3916e9)};var f=function f(d,p,m,x,v){return j(v,p-s._0x139304,m-298,p-1252,v-343)};var g=function g(d,p,m,x,v){return re(m,p-o._0x2f79ff,m-o._0x3fb4a0,x-145,d- -297)};var h=function h(d,p,m,x,v){return Z(d-10,p-a._0x4f2c85,m-436,p,d-40)};var n={_0x46dc05:1288,_0x2cf1ec:"JNeN",_0x3f78c5:1300,_0x5c298e:1563,_0x1627f1:1527,_0x5de1c1:1305,_0x1bd299:1430,_0x23642d:"N2PL",_0x4e3302:"7r4f",_0x2d5b51:1246,_0x40363a:1008,_0xf3d49a:1005,_0x134dd5:981,_0x210600:"AQmA",_0x3cda24:867,_0x4f040c:1088},a={_0x4f2c85:153},o={_0x2f79ff:53,_0x3fb4a0:259},s={_0x139304:292},A={_0x56d95e:204,_0x3916e9:234},u={_0x13b464:533,_0x164e32:339};var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(e&&(typeof e==="undefined"?"undefined":_type_of(e))==l(1811,n._0x46dc05,n._0x2cf1ec,n._0x3f78c5,1632)+"t"||(typeof e==="undefined"?"undefined":_type_of(e))==l(n._0x5c298e,n._0x1627f1,"X@hs",1383,n._0x5de1c1)+g(1195,n._0x1bd299,n._0x23642d,1207,914))try{var _loop=function(){var d=_step.value;!MZe[l(1602,1630,n._0x4e3302,1406,1626)](r,d)&&d!==t&&JX(r,d,{get:function(){return e[d]},enumerable:!(i=OZe(e,d))||i[g(n._0x2d5b51,n._0x40363a,"QdMv",1545,n._0xf3d49a)+l(n._0x134dd5,911,n._0x210600,n._0x3cda24,n._0x4f040c)]})};for(var _iterator=TZe(e)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return r},Xp=function(r,e,t){return t=r!=null?NZe(PZe(r)):{},GZe(e||!r||!r[Z(1461,1565,1550,"Td@a",1498)+j("*YWj",57,458,136,470)]?JX(t,Z(1264,1334,1552,"V&B%",1516)+"lt",{value:r,enumerable:!0}):t,r)},_c=function(r,e,t){return new Promise(function(i,n){var p=function p(S,B,b,C,y){return se(B-1636,C,b-u._0x1816fc,C-u._0x39f5e0,y-232)};var m=function m(S,B,b,C,y){return re(B,B-A._0x5d5dfe,b-452,C-497,y- -1382)};var x=function x(S,B,b,C,y){return se(S-s._0x3eff3f,C,b-s._0x12fd2d,C-177,y-49)};var v=function v(S,B,b,C,y){return se(B-1348,b,b-412,C-330,y-44)};var E=function E(S,B,b,C,y){return j(B,B-o._0x64f9da,b-o._0x3a440f,S-52,y-o._0x5e0269)};var a={_0x1e13d3:"wS8$",_0x401b9f:329,_0x59665c:461},o={_0x64f9da:161,_0x3a440f:410,_0x5e0269:460},s={_0x3eff3f:1355,_0x12fd2d:364},A={_0x5d5dfe:164},u={_0x1816fc:279,_0x39f5e0:110},c={_0x5b7525:88,_0xc3ebd5:477,_0x5c4429:159,_0x3356bc:"ix8k",_0x18415e:83,_0x519845:207,_0x176fe4:128,_0x2a03e9:20,_0x329d56:"Zr4y",_0x601cab:155,_0x835e94:1276,_0x2afa5a:1602,_0x49af3c:1891,_0x34e983:2153,_0x437779:"Iozt",_0x42b754:2148,_0x1c95c2:2226,_0x2cf41b:1527,_0x43d1e0:1465,_0x1a8771:753,_0xef95ff:537,_0x524270:19,_0x428fe1:343,_0x5a5724:1657,_0x4cd4cd:1764,_0x5e5d57:1486,_0x14ddfe:"JNeN",_0x41b554:1546,_0xc4c2e:"tghG",_0xe231e2:402,_0xf62f63:292},l={_0x91c602:136},f={_0xd08b04:296,_0x22ee44:20,_0x436e99:212,_0x4e7849:105,_0x2ae8bc:355,_0x39c870:142,_0x308e10:1301,_0x395f66:"MVwD",_0x540eff:1756,_0x59acbf:1363,_0x1044b3:1099,_0x5005e7:"SAMA",_0x1930ce:865,_0x19a896:932,_0x4a313d:1358,_0x5bd2e2:1711,_0x28f913:1048,_0x5df361:91,_0x12f5cb:9,_0x1c9436:1361,_0x157474:"848R",_0x1827e7:1362,_0x3578fd:1230,_0x46fff8:1148,_0x23664a:1229,_0x4ace64:"s!LQ",_0x150da1:540,_0x20d8e9:1427,_0x1915fe:1213,_0x2ddf10:1335,_0x2dc58c:"fdfK",_0x4cd2fc:1286,_0x460c5b:285,_0xde2caa:217,_0x9367d3:"ix8k",_0x2ec30c:252,_0x1fb50a:398,_0x53b334:116,_0x4d6f00:"DgfB",_0x5ec534:187,_0x5376ed:1226,_0x41cb1b:1324,_0x1e7f85:"*YWj",_0x2541ce:707,_0xa87ac3:205,_0x58d686:86,_0x26cdb9:1346,_0x25054a:1134,_0x145b9a:1231,_0x20ee3b:"AQmA"},g=function(S){var b=function b(Ce,L,Ae,pe,le){return Ie(le-257,L)};var C=function C(Ce,L,Ae,pe,le){return Ie(le- -892,L)};var y=function y(Ce,L,Ae,pe,le){return Ie(le- -806,pe)};var q=function q(Ce,L,Ae,pe,le){return Ie(Ce-672,le)};var w=function w(Ce,L,Ae,pe,le){return Ie(le-B._0x7b60e4,pe)};var B={_0x7b60e4:790};try{if(C(-f._0xd08b04,"Z(VR",-34,-232,-3)!==C(321,"ejE(",74,-f._0x22ee44,-18)){var N,F=_0x158a46(_0x59c9e7),M=F[0],U=F[1],G=new _0x3fea05(_0x198db1(_0x5dbfd8,M,U)),K=0,ce=U>0?M-4:M,J;for(J=0;J<ce;J+=4)N=_0x571da1[_0x3b9e76[C(-f._0x436e99,"XKg0",f._0x4e7849,-f._0x2ae8bc,-f._0x39c870)+b(f._0x308e10,f._0x395f66,f._0x540eff,1442,f._0x59acbf)](J)]<<18|_0x3ca8ca[_0x4ad1fa[q(1427,1611,1156,f._0x1044b3,f._0x5005e7)+b(f._0x1930ce,"QDD]",f._0x19a896,1077,860)](J+1)]<<12|_0x2d28dd[_0x3c5ef2[q(f._0x4a313d,f._0x5bd2e2,1202,f._0x28f913,"fdfK")+C(-287,"Iozt",40,f._0x5df361,-f._0x12f5cb)](J+2)]<<6|_0x9ab02e[_0x84d8bf[q(f._0x1c9436,1502,1341,1168,f._0x157474)+q(1141,1380,f._0x1827e7,f._0x3578fd,"848R")](J+3)],G[K++]=N>>16&255,G[K++]=N>>8&255,G[K++]=N&255;return U===2&&(N=_0x2ffce1[_0x225df2[w(1433,1353,f._0x46fff8,"848R",1479)+q(1490,1164,f._0x23664a,1649,f._0x4ace64)](J)]<<2|_0x2eba17[_0x4429bb[C(7,"7r4f",-f._0x150da1,17,-232)+w(f._0x20d8e9,f._0x1915fe,f._0x2ddf10,f._0x2dc58c,f._0x4cd2fc)](J+1)]>>4,G[K++]=N&255),U===1&&(N=_0x407cd4[_0x3d93e2[y(f._0x460c5b,375,f._0xde2caa,f._0x9367d3,f._0x2ec30c)+y(-f._0x1fb50a,-511,-f._0x53b334,f._0x4d6f00,-f._0x5ec534)](J)]<<10|_0x14ba3f[_0x2c26e7[q(f._0x5376ed,1221,f._0x41cb1b,1088,f._0x1e7f85)+b(1213,"s!LQ",1383,f._0x2541ce,1075)](J+1)]<<4|_0x3bca79[_0x566379[y(-f._0xa87ac3,142,-123,"(uUF",f._0x58d686)+q(1251,1270,f._0x26cdb9,f._0x25054a,")u!k")](J+2)]>>2,G[K++]=N>>8&255,G[K++]=N&255),G}else d(t[q(f._0x145b9a,1552,1285,1483,f._0x20ee3b)](S))}catch(Ce){n(Ce)}},h=function(S){var C=function C(F,M,U,G,K){return Ie(M-b._0x5bcf6d,G)};var y=function y(F,M,U,G,K){return Ie(U- -999,G)};var q=function q(F,M,U,G,K){return Ie(M- -689,K)};var w=function w(F,M,U,G,K){return Ie(G- -l._0x91c602,F)};var N=function N(F,M,U,G,K){return Ie(U-B._0x1a2d3e,G)};var B={_0x1a2d3e:490},b={_0x5bcf6d:681};if(y(-c._0x5b7525,c._0xc3ebd5,c._0x5c4429,c._0x3356bc,c._0x18415e)===y(c._0x519845,c._0x176fe4,c._0x2a03e9,c._0x329d56,-c._0x601cab))_0x1b5cd6(_0x3d1fbb);else try{d(t[C(1007,1349,1546,"fdfK",c._0x835e94)](S))}catch(F){if(C(c._0x2afa5a,c._0x49af3c,c._0x34e983,c._0x437779,1871)!==C(c._0x42b754,1891,1919,"Iozt",c._0x1c95c2)){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(_0x4bc1a4&&(typeof _0x3b5b16==="undefined"?"undefined":_type_of(_0x3b5b16))==C(1534,c._0x2cf41b,c._0x43d1e0,"#I1X",1213)+"t"||(typeof _0x1f1777==="undefined"?"undefined":_type_of(_0x1f1777))==y(-831,-453,-483,"RzAx",-c._0x1a8771)+q(176,-205,-c._0xef95ff,-345,"QwuZ"))try{var _loop=function(){var M=_step.value;!_0x5dedf0[q(-399,-c._0x524270,-c._0x428fe1,-84,c._0x3356bc)](_0x391987,M)&&M!==_0x143cd7&&_0x18d15a(_0x3f7921,M,{get:function(){return _0x9e6ea0[M]},enumerable:!(_0x2e5242=_0xab3389(_0x5469f2,M))||_0x45dbdb[C(c._0x5a5724,c._0x4cd4cd,c._0x5e5d57,c._0x14ddfe,c._0x41b554)+w(c._0xc4c2e,480,542,c._0xe231e2,c._0xf62f63)]})};for(var _iterator=_0xd71512(_0x6fc4f8)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return _0x297e62}else n(F)}},d=function(S){return S[p(1490,1883,2008,"SAMA",1587)]?i(S[m(868,"*qL$",912,918,539)]):Promise[m(64,"Iozt",-134,-54,-99)+"ve"](S[x(1232,1253,928,"JNeN",1073)])[m(-232,"JMc^",61,223,32)](g,h)};d((t=t[v(1278,1068,"N0Iq",932,1039)](r,e))[m(775,a._0x1e13d3,846,a._0x401b9f,a._0x59665c)]())})},Zp=UZe(function(r){"use strict";var y=function y(fe,Qe,Be,Fe,Oe){return Z(fe-288,Qe-427,Be-C._0x414496,Oe,fe- -C._0x258feb)};var M=function M(fe,Qe,Be,Fe,Oe){return se(Oe-726,Be,Be-b._0x516e4d,Fe-98,Oe-b._0x4cc1fa)};var K=function K(fe,Qe,Be,Fe,Oe){return Z(fe-157,Qe-B._0x16c8e1,Be-18,Be,fe-78)};var ce=function ce(fe){var Qe={_0x2f7fab:47,_0x1c12b3:45},Be={_0x4a6b59:522,_0x1d7e12:172},Fe=fe[or(1427,"o)FD",v._0x2e397c,1269,1503)+"h"];if(Fe%4>0)throw new Error(Oe("Td@a",-v._0x3abc68,-8,128,-117)+Te(v._0x387d9a,"*YWj",v._0x41a9d3,103,649)+Te(369,"DLFC",120,-18,494)+je(801,v._0x1c02f9,398,484,"Z[fC")+Oe(v._0x2f8f88,v._0x143e7e,v._0x104046,-102,-v._0x2f36da)+je(467,822,741,758,v._0x58236d)+Te(809,"6xFd",1134,1124,v._0x44583d)+qr(v._0x180965,v._0x3322e5,v._0x529e6b,1427,v._0x4cee35)+je(236,v._0x52e965,380,v._0x397350,v._0xd227db)+"4");function Oe(Me,We,ir,Sr,Ue){return y(Ue- -777,We-S._0x312a23,ir-S._0x4d89c5,Sr-140,Me)}function or(Me,We,ir,Sr,Ue){return J(Me-347,We-496,We,Sr-133,ir-336)}function Te(Me,We,ir,Sr,Ue){return L(Me-107,We,Me-Be._0x4a6b59,Sr-Be._0x1d7e12,Ue-188)}function je(Me,We,ir,Sr,Ue){return J(Me-Qe._0x2f7fab,We-468,Ue,Sr-Qe._0x1c12b3,Me- -333)}var dr=fe[je(v._0x1a7997,621,398,613,v._0x2bf5ff)+"Of"]("=");dr===-1&&(dr=Fe);var qe=dr===Fe?0:4-dr%4;function qr(Me,We,ir,Sr,Ue){return K(Me- -E._0xf29e97,We-E._0x1380de,Ue,Sr-E._0x3b13ab,Ue-424)}return[dr,qe]};var J=function J(fe,Qe,Be,Fe,Oe){return Z(fe-246,Qe-x._0x55cf92,Be-399,Be,Oe- -x._0x579771)};var Ce=function Ce(fe){var Qe={_0x331676:76,_0x3210c7:1595,_0x21642f:238,_0x5e1d23:118};function Be(dr,qe,qr,Me,We){return K(qe- -615,qe-m._0x1f73ed,We,Me-m._0x1c2ee9,We-449)}function Fe(dr,qe,qr,Me,We){return M(dr-491,qe-p._0x7161e1,dr,Me-64,qr-p._0x125f47)}function Oe(dr,qe,qr,Me,We){return L(dr-Qe._0x331676,qr,dr-Qe._0x3210c7,Me-Qe._0x21642f,We-Qe._0x5e1d23)}if(Fe("DLFC",d._0x535bfd,d._0x375cb5,d._0x555c92,d._0x3d7583)===Fe("DgfB",511,872,d._0x3530d2,766)){var or=ce(fe),Te=or[0],je=or[1];return(Te+je)*3/4-je}else _0x34391a(_0x8c7a4c[Oe(1322,d._0x5c786d,d._0x2b270a,1215,1342)](_0x3357dd))};var L=function L(fe,Qe,Be,Fe,Oe){return Z(fe-h._0x5596aa,Qe-65,Be-494,Qe,Be- -h._0x52205e)};var Ae=function Ae(fe,Qe,Be){return(Qe+Be)*3/4-Be};var pe=function pe(fe){var Qe={_0x14bc78:359,_0x2edd8c:169,_0x40bf02:30},Be,Fe=ce(fe),Oe=Fe[0],or=Fe[1],Te=new N(Ae(fe,Oe,or)),je=0,dr=or>0?Oe-4:Oe,qe;function qr(Ue,cr,ht,vr,Or){return L(Ue-222,Or,Ue-91,vr-g._0xa39208,Or-427)}function Me(Ue,cr,ht,vr,Or){return y(cr- -f._0x321801,cr-f._0x2f5466,ht-f._0x4f5ad9,vr-496,ht)}function We(Ue,cr,ht,vr,Or){return M(Ue-136,cr-260,cr,vr-l._0x52027e,ht- -l._0x51356d)}function ir(Ue,cr,ht,vr,Or){return K(vr- -c._0x5a6e02,cr-c._0x9ea0b4,Or,vr-c._0x5e9047,Or-212)}for(qe=0;qe<dr;qe+=4)Be=w[fe[qr(412,u._0x4782a9,12,u._0x3be910,"JNeN")+qr(417,130,u._0x212e1c,703,"bVi3")](qe)]<<18|w[fe[Me(u._0x819dab,360,"Iozt",479,140)+We(429,"[3cA",u._0x1427b8,u._0x297a9d,0)](qe+1)]<<12|w[fe[ir(u._0x51a484,842,375,u._0x1cef05,u._0x333843)+qr(-166,-566,-u._0xc6a43c,-u._0x13f6c6,"X@hs")](qe+2)]<<6|w[fe[qr(u._0xdea3fa,363,u._0x55c9d0,u._0x5e2cd1,u._0x1a631a)+ir(u._0x5e2cd1,738,719,u._0x1df41c,"Zr4y")](qe+3)],Te[je++]=Be>>16&255,Te[je++]=Be>>8&255,Te[je++]=Be&255;function Sr(Ue,cr,ht,vr,Or){return L(Ue-Qe._0x14bc78,cr,Ue-29,vr-Qe._0x2edd8c,Or-Qe._0x40bf02)}return or===2&&(Be=w[fe[ir(u._0x2dd05e,1505,u._0x2d3a10,u._0x3c42e1,u._0x19892d)+ir(u._0x34f435,528,504,u._0x49b080,"848R")](qe)]<<2|w[fe[Sr(325,u._0xd84e5,u._0x352693,u._0x2d3535,347)+Me(u._0x4a30cd,u._0x2d1d21,"AQmA",u._0x460234,471)](qe+1)]>>4,Te[je++]=Be&255),or===1&&(Be=w[fe[ir(u._0x1fde8e,1055,u._0x5a62b0,1207,u._0x129560)+Me(u._0xe8ca7,u._0x1c13cd,u._0x5e4c33,764,541)](qe)]<<10|w[fe[We(147,u._0x52ad0b,u._0x228330,u._0x138f0d,-210)+ir(792,661,427,u._0x4ff894,u._0x570bb4)](qe+1)]<<4|w[fe[ir(u._0x4c5cfa,u._0x5237a2,1557,1276,"ejE(")+Me(47,419,"RzAx",102,u._0x550cbc)](qe+2)]>>2,Te[je++]=Be>>8&255,Te[je++]=Be&255),Te};var le=function le(fe){function Qe(Fe,Oe,or,Te,je){return y(or-824,Oe-A._0x15e21e,or-476,Te-422,Te)}function Be(Fe,Oe,or,Te,je){return J(Fe-205,Oe-s._0x3da765,je,Te-425,Te-s._0x21b925)}return Be(o._0x2517ff,1768,2225,o._0x22b8af,"iqpp")!==Qe(o._0x10d98f,o._0x514ef7,o._0x8bea9b,"AQmA",o._0x41a417)?q[fe>>18&63]+q[fe>>12&63]+q[fe>>6&63]+q[fe&63]:(_0x4c31f9+_0x36f058)*3/4-_0x436c60};var ue=function ue(fe,Qe,Be){for(var Fe={_0x249212:135,_0x855680:451,_0x141d4d:431},Oe={_0xec8bdb:334,_0x57ac78:222},or,Te=[],je=Qe;je<Be;je+=3)or=(fe[je]<<16&0xff0000)+(fe[je+1]<<8&65280)+(fe[je+2]&255),Te[qe(a._0x435b41,32,a._0x1f46ab,400,-a._0x3b03ea)](le(or));function dr(qr,Me,We,ir,Sr){return M(qr-117,Me-223,We,ir-Oe._0xec8bdb,Me- -Oe._0x57ac78)}function qe(qr,Me,We,ir,Sr){return L(qr-Fe._0x249212,We,Me-Fe._0x855680,ir-Fe._0x141d4d,Sr-281)}return Te[qe(a._0x3ad9f8,258,a._0x30b7a0,a._0x3d7250,a._0x27fb0b)]("")};var Ge=function Ge(fe){var Qe={_0x88c7eb:156,_0x12b1a7:491,_0x1cbb35:57},Be={_0x35b23f:1111,_0x289d5d:253};function Fe(Ue,cr,ht,vr,Or){return y(cr- -Be._0x35b23f,cr-38,ht-Be._0x289d5d,vr-216,Ue)}function Oe(Ue,cr,ht,vr,Or){return M(Ue-105,cr-315,vr,vr-n._0x1c5e7a,Ue-n._0x5936e5)}function or(Ue,cr,ht,vr,Or){return K(Or- -288,cr-97,cr,vr-i._0x5bada5,Or-i._0x4a52b5)}function Te(Ue,cr,ht,vr,Or){return L(Ue-170,Ue,cr-1254,vr-184,Or-205)}function je(Ue,cr,ht,vr,Or){return M(Ue-Qe._0x88c7eb,cr-Qe._0x12b1a7,cr,vr-Qe._0x1cbb35,Ue-885)}if(Te("wS8$",924,t._0x139e10,t._0x1512d5,645)!==Te(t._0x5c38d8,1432,1421,1650,t._0x496d7f))return _0x372688[_0x171277>>18&63]+_0x21f90c[_0x350463>>12&63]+_0x1f9cfc[_0x3c9f4d>>6&63]+_0x25a1e0[_0x2ccba5&63];for(var dr,qe=fe[Te(t._0x1f658f,t._0x53b1b7,t._0xc66d6e,1261,t._0x32a185)+"h"],qr=qe%3,Me=[],We=16383,ir=0,Sr=qe-qr;ir<Sr;ir+=We)Me[or(t._0x5bd1cf,"JNeN",t._0x49d4e4,1057,t._0x39fdfd)](ue(fe,ir,ir+We>Sr?Sr:ir+We));return qr===1?(dr=fe[qe-1],Me[or(1048,"6xFd",1480,1469,1433)](q[dr>>2]+q[dr<<4&63]+"==")):qr===2&&(dr=(fe[qe-2]<<8)+fe[qe-1],Me[Te(t._0x1457f7,995,t._0x286066,954,t._0xc92eb3)](q[dr>>10]+q[dr>>4&63]+q[dr<<2&63]+"=")),Me[Oe(889,667,t._0x3a4450,"MVwD",t._0x19ed01)]("")};var e={_0x1a9dac:811,_0x48fce4:220,_0x33ef30:758,_0x1fc95b:482,_0x5b3dfe:878,_0x5af859:643,_0x121ff2:"(uUF",_0x32f9c5:677,_0x491ee3:1267,_0x3547c5:1127,_0x5d3d69:"qSP&",_0x44ca64:4,_0x3b555e:1149,_0x660270:618,_0x3ae20a:1443,_0x168f72:676,_0x44b16a:"wS8$",_0x451558:1735,_0x67db47:1104,_0x828b49:1655,_0x85a533:"o)FD",_0x33f8d9:769,_0x4137bb:740,_0x46d4fd:554,_0x580dd8:170,_0x11410a:50,_0x164866:"QdMv",_0x1a56ba:323,_0x4300be:288,_0x589f42:298,_0x18912c:"V&B%",_0xb417d8:329,_0x20f367:377,_0x2081b2:525,_0x5f0b79:1020,_0x34fb0a:1263,_0x1e9fb3:1619,_0x2aca60:71,_0x328675:1315,_0x558f45:1118,_0x2c27ab:1311,_0x3ae91a:768,_0x4a89ac:275,_0x4b1367:1208,_0x59596f:"6xFd",_0x3aa75a:1334,_0x1b7023:"JMc^",_0x1a1aa6:1037,_0xc52709:1773,_0x30a606:1791,_0x4b063b:"RzAx",_0x91078c:1406,_0x284da0:1321,_0x14ca07:"V&B%"},t={_0x139e10:902,_0x1512d5:1194,_0x5c38d8:"tghG",_0x496d7f:1750,_0x1f658f:"Td@a",_0x53b1b7:1413,_0xc66d6e:1467,_0x32a185:1544,_0x5bd1cf:1556,_0x49d4e4:1148,_0x39fdfd:1226,_0x1457f7:"QdMv",_0x286066:847,_0xc92eb3:1273,_0x3a4450:1001,_0x19ed01:1004},i={_0x5bada5:149,_0x4a52b5:244},n={_0x1c5e7a:350,_0x5936e5:308},a={_0x435b41:227,_0x1f46ab:"[3cA",_0x3b03ea:204,_0x3ad9f8:303,_0x30b7a0:"848R",_0x3d7250:46,_0x27fb0b:220},o={_0x2517ff:1968,_0x22b8af:1863,_0x10d98f:1918,_0x514ef7:1486,_0x8bea9b:1790,_0x41a417:1744},s={_0x3da765:104,_0x21b925:974},A={_0x15e21e:447},u={_0x4782a9:193,_0x3be910:39,_0x212e1c:643,_0x819dab:42,_0x1427b8:242,_0x297a9d:633,_0x51a484:500,_0x1cef05:754,_0x333843:"V&B%",_0xc6a43c:322,_0x13f6c6:193,_0xdea3fa:424,_0x55c9d0:455,_0x5e2cd1:522,_0x1a631a:"dT8K",_0x1df41c:706,_0x2dd05e:1466,_0x2d3a10:1571,_0x3c42e1:1344,_0x19892d:"X@hs",_0x34f435:484,_0x49b080:618,_0xd84e5:"Z[fC",_0x352693:143,_0x2d3535:61,_0x4a30cd:242,_0x2d1d21:264,_0x460234:383,_0x1fde8e:1529,_0x5a62b0:1162,_0x129560:"ix8k",_0xe8ca7:868,_0x1c13cd:571,_0x5e4c33:"qSP&",_0x52ad0b:"s!LQ",_0x228330:55,_0x138f0d:202,_0x4ff894:618,_0x570bb4:"848R",_0x4c5cfa:875,_0x5237a2:1462,_0x550cbc:358},c={_0x5a6e02:378,_0x9ea0b4:268,_0x5e9047:454},l={_0x52027e:159,_0x51356d:470},f={_0x321801:643,_0x2f5466:242,_0x4f5ad9:177},g={_0xa39208:281},h={_0x5596aa:266,_0x52205e:1361},d={_0x535bfd:767,_0x375cb5:677,_0x555c92:284,_0x3d7583:980,_0x3530d2:1035,_0x5c786d:1483,_0x2b270a:"rAUW"},p={_0x7161e1:33,_0x125f47:224},m={_0x1f73ed:239,_0x1c2ee9:500},x={_0x55cf92:59,_0x579771:477},v={_0x2e397c:1227,_0x3abc68:208,_0x387d9a:431,_0x41a9d3:55,_0x1c02f9:806,_0x2f8f88:"Td@a",_0x143e7e:150,_0x104046:93,_0x2f36da:60,_0x58236d:"XKg0",_0x44583d:468,_0x180965:1350,_0x3322e5:1532,_0x529e6b:1290,_0x4cee35:"r^O1",_0x52e965:231,_0x397350:350,_0xd227db:"848R",_0x1a7997:426,_0x2bf5ff:"fdfK"},E={_0xf29e97:232,_0x1380de:119,_0x3b13ab:182},S={_0x312a23:473,_0x4d89c5:28},B={_0x16c8e1:9},b={_0x516e4d:443,_0x4cc1fa:89},C={_0x414496:12,_0x258feb:312};r[M(538,e._0x1a9dac,"SAMA",e._0x48fce4,522)+J(1203,e._0x33ef30,"o)FD",e._0x1fc95b,e._0x5b3dfe)]=Ce,r[M(e._0x5af859,414,e._0x121ff2,e._0x32f9c5,351)+y(1015,1175,e._0x491ee3,e._0x3547c5,e._0x5d3d69)+"y"]=pe;r[L(-84,"AQmA",-384,-e._0x44ca64,-476)+M(e._0x3b555e,e._0x660270,"DLFC",703,798)+K(1051,713,"wS8$",e._0x3ae20a,e._0x168f72)]=Ge;var q=[],w=[],N=(typeof Uint8Array==="undefined"?"undefined":_type_of(Uint8Array))!=K(1428,1681,e._0x44b16a,e._0x451558,e._0x67db47)+L(-39,"QDD]",216,510,169)?Uint8Array:Array,F=K(1699,e._0x828b49,e._0x85a533,1991,1604)+M(e._0x33f8d9,743,"7r4f",494,e._0x4137bb)+L(115,"6xFd",-158,-339,-436)+L(e._0x46d4fd,"qSP&",e._0x580dd8,201,108)+L(e._0x11410a,e._0x164866,e._0x1a56ba,e._0x4300be,127)+M(e._0x589f42,279,e._0x18912c,e._0xb417d8,e._0x20f367)+J(e._0x2081b2,684,e._0x85a533,e._0x5f0b79,682)+y(e._0x34fb0a,1488,1622,e._0x1e9fb3,"o5uN")+L(139,"QDD]",-e._0x2aca60,-136,-273)+y(e._0x328675,e._0x558f45,1616,1325,"r^O1")+K(1145,973,"ix8k",e._0x2c27ab,e._0x3ae91a)+y(607,e._0x4a89ac,724,427,"DLFC")+M(e._0x4b1367,644,e._0x59596f,532,857);for(U=0,G=F[J(e._0x3aa75a,991,e._0x1b7023,1126,e._0x1a1aa6)+"h"];U<G;++U)q[U]=F[U],w[F[K(e._0xc52709,e._0x30a606,e._0x4b063b,1913,e._0x91078c)+y(e._0x284da0,1215,1371,1350,e._0x14ca07)](U)]=U;var U,G;w[45]=62,w[95]=63}),LZe=Xp(Zp()),dt=[];for(var r=0;r<256;++r)dt[j("r^O1",28,-80,-69,318)]((r+256)[re("wS8$",1470,1225,1485,1304)+ne("(uUF",901,1233,641,1195)](16)[Z(1258,1284,1282,"bVi3",1389)](1));function ne(r,e,t,i,n){return Ie(e-399,r)}function HZe(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;var t={_0x129a7c:1486,_0xee1c0b:1538,_0x5629e1:"s!LQ",_0x86aab1:"*YWj",_0x140bf7:1477,_0x3a81f2:984},i={_0x308d8b:1277,_0x37ef9d:62};function n(o,s,A,u,c){return se(u-i._0x308d8b,s,A-i._0x37ef9d,u-207,c-323)}function a(o,s,A,u,c){return j(c,s-161,A-339,o-1552,c-489)}return(dt[r[e+0]]+dt[r[e+1]]+dt[r[e+2]]+dt[r[e+3]]+"-"+dt[r[e+4]]+dt[r[e+5]]+"-"+dt[r[e+6]]+dt[r[e+7]]+"-"+dt[r[e+8]]+dt[r[e+9]]+"-"+dt[r[e+10]]+dt[r[e+11]]+dt[r[e+12]]+dt[r[e+13]]+dt[r[e+14]]+dt[r[e+15]])[a(t._0x129a7c,1632,1205,t._0xee1c0b,t._0x5629e1)+n(1406,t._0x86aab1,t._0x140bf7,1241,t._0x3a81f2)+"e"]()}function Ie(r,e){var t=jp();return Ie=function(i,n){i=i-465;var a=t[i];if(Ie.tmMvFG===void 0){var o=function o(l){for(var f="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",g="",h="",d=0,p,m,x=0;m=l.charAt(x++);~m&&(p=d%4?p*64+m:m,d++%4)?g+=String.fromCharCode(255&p>>(-2*d&6)):0)m=f.indexOf(m);for(var v=0,E=g.length;v<E;v++)h+="%"+("00"+g.charCodeAt(v).toString(16)).slice(-2);return decodeURIComponent(h)},s=function s(l,f){var g=[],h=0,d,p="";l=o(l);var m;for(m=0;m<256;m++)g[m]=m;for(m=0;m<256;m++)h=(h+g[m]+f.charCodeAt(m%f.length))%256,d=g[m],g[m]=g[h],g[h]=d;m=0,h=0;for(var x=0;x<l.length;x++)m=(m+1)%256,h=(h+g[m])%256,d=g[m],g[m]=g[h],g[h]=d,p+=String.fromCharCode(l.charCodeAt(x)^g[(g[m]+g[h])%256]);return p};Ie.jKINWI=s,r=arguments,Ie.tmMvFG=!![]}var A=t[0],u=i+A,c=r[u];return c?a=c:(Ie.pZvLXO===void 0&&(Ie.pZvLXO=!![]),a=Ie.jKINWI(a,n),r[u]=a),a},Ie(r,e)}var Dw,WZe=new Uint8Array(16);function JZe(){var r={_0x32d940:1151,_0xea23c0:1239,_0x5044e8:"*qL$",_0x12345f:561,_0x21f690:364,_0xc31a3d:214,_0x76f73a:1183,_0x3a0197:"SAMA",_0x5295ea:617,_0x5e7335:770,_0x2dab3a:713,_0x52f92e:1001,_0x112acb:1420,_0x4acfa2:1674,_0x356f81:703,_0x362047:403,_0x9fe35d:"6xFd",_0x212057:1115,_0x4b1e18:1517,_0x15d5cf:1008,_0x5757c4:888,_0xb0d7e6:1017,_0x53ad6d:1202,_0xf32360:1820,_0x32adaa:1754,_0x169830:"Z(VR",_0x383484:1734,_0x18763f:1521,_0x5e95d7:721,_0x4ac63b:384,_0x38b915:630,_0x142cdd:1370,_0x10e419:1732,_0x4604b7:"RtOR",_0x1ce82f:1472,_0x1383b5:1387,_0x186353:592,_0x57fb98:"T4sb",_0x248325:758,_0x47d4f8:732,_0x19fe75:"6xFd",_0x487a9a:518,_0x1a7f1e:467,_0x3e3bed:382,_0x363794:1577,_0x5bb5b7:"X@hs",_0x29b9d9:1190,_0x52819f:352,_0x24a8d1:542,_0x2be754:875,_0x4a88bf:497,_0x23003c:386,_0x2c5298:"ix8k",_0x1ac04f:65,_0x54815d:1856,_0x2c8d7a:1600,_0x11cc88:1641,_0x5ff608:1400,_0x4a8daf:638,_0x253e95:"DLFC",_0x2c0a97:600,_0x2f8325:180,_0x3bade8:1060,_0x30be66:805,_0x24374a:1312,_0x53fe0f:10,_0x21d771:216,_0x2d02bf:311},e={_0x2b3486:349,_0x3a69df:401},t={_0x5c67d7:1318},i={_0x5ecfae:352,_0x57c1c3:222},n={_0x29e1de:171},a={_0x4f6b99:354,_0x155025:151,_0x5b3aa5:22,_0x35e9f7:379};function o(l,f,g,h,d){return ne(g,l- -a._0x4f6b99,g-a._0x155025,h-a._0x5b3aa5,d-a._0x35e9f7)}function s(l,f,g,h,d){return j(l,f-428,g-n._0x29e1de,f-707,d-499)}function A(l,f,g,h,d){return ne(h,g- -1156,g-408,h-i._0x5ecfae,d-i._0x57c1c3)}function u(l,f,g,h,d){return j(g,f-367,g-434,h-t._0x5c67d7,d-264)}if(!Dw){if((typeof crypto==="undefined"?"undefined":_type_of(crypto))==c(r._0x32d940,935,r._0xea23c0,r._0x5044e8,1278)+o(600,r._0x12345f,"RzAx",r._0x21f690,r._0xc31a3d)||!crypto[c(r._0x76f73a,1050,1505,r._0x3a0197,1314)+c(r._0x5295ea,220,249,"V&B%",925)+c(876,r._0x5e7335,914,"o)FD",536)])throw new Error(o(597,r._0x2dab3a,"DgfB",r._0x52f92e,624)+u(1558,r._0x112acb,"QwuZ",r._0x4acfa2,1800)+s("X@hs",437,r._0x356f81,694,r._0x362047)+s(r._0x9fe35d,r._0x212057,r._0x4b1e18,1313,1001)+c(1313,1045,1358,"X@hs",r._0x15d5cf)+o(1095,1468,"tghG",r._0x5757c4,768)+s("V&B%",r._0xb0d7e6,r._0x53ad6d,1278,1197)+u(r._0xf32360,r._0x32adaa,r._0x169830,r._0x383484,r._0x18763f)+A(452,r._0x5e95d7,r._0x4ac63b,"iqpp",r._0x38b915)+o(1074,1426,"T4sb",779,r._0x142cdd)+u(r._0x10e419,1108,r._0x4604b7,r._0x1ce82f,r._0x1383b5)+o(r._0x186353,511,r._0x57fb98,290,r._0x248325)+c(r._0x47d4f8,409,367,r._0x19fe75,527)+c(585,r._0x487a9a,r._0x1a7f1e,"Z(VR",r._0x3e3bed)+u(r._0x363794,1768,r._0x5bb5b7,1437,r._0x29b9d9)+o(725,1049,"^I18",883,r._0x52819f)+o(r._0x24a8d1,r._0x2be754,")u!k",640,836)+A(526,r._0x4a88bf,r._0x23003c,r._0x2c5298,r._0x1ac04f)+u(r._0x54815d,r._0x2c8d7a,"dT8K",r._0x11cc88,r._0x5ff608)+A(r._0x4a8daf,340,290,r._0x253e95,r._0x2c0a97)+A(-418,-294,-121,"*qL$",r._0x2f8325));Dw=crypto[o(678,827,"m5Ud",935,931)+c(r._0x3bade8,r._0x30be66,1178,"XKg0",r._0x24374a)+A(-r._0x53fe0f,-596,-r._0x21d771,"T4sb",-r._0x2d02bf)][o(1261,1581,"o5uN",1630,1213)](crypto)}function c(l,f,g,h,d){return ne(h,l- -e._0x2b3486,g-331,h-62,d-e._0x3a69df)}return Dw(WZe)}var KZe=(typeof crypto==="undefined"?"undefined":_type_of(crypto))!=se(-165,"N0Iq",-133,-400,-367)+ne("N2PL",1152,1103,968,971)&&crypto[re("DLFC",1630,1205,1843,1439)+Z(1967,1549,1521,"o)FD",1591)]&&crypto[se(-353,"o5uN",-263,-449,-103)+j("#I1X",607,211,282,-96)][re("DgfB",1604,2082,1969,1798)](crypto),WX={randomUUID:KZe};function VZe(r,e,t){var i={_0x29e6cd:1063,_0x141e5f:1032,_0x1a3c8f:949,_0x30ef51:"*YWj",_0x275148:1174,_0x7cc276:"SAMA",_0x5c6d0c:1251,_0x2b1a4d:943,_0xa74665:1148,_0x506cc5:1199,_0x5bf20c:"*qL$",_0x38c209:1650,_0x5978bc:1900,_0x411dcb:2012,_0x1e2379:"o)FD",_0x33af11:367,_0x4f2cd6:61,_0x18cf02:1639,_0x57d24f:1819,_0xfaf042:1595,_0xf6f761:1619,_0x2c4d35:924,_0x1ac134:"X@hs",_0x367b00:1055,_0x3b081f:"JMc^",_0x13d005:1449,_0xa2dc96:1699,_0x576f0d:"qSP&",_0x45635c:1160,_0x1cab33:"QDD]",_0x4656d5:2127,_0x4fee04:"s!LQ",_0x1fec75:1913,_0x3a5453:1853,_0x1fc00f:1138,_0x19406f:1204,_0x4ec4c3:")u!k",_0xf71656:1002,_0x3bd16b:972,_0x35a6a9:658,_0x667392:1530,_0x1d6c8c:1839,_0x418ea8:"RtOR",_0x35be3b:437,_0x4ec5b2:344,_0x4fcf6d:115,_0x5ee30f:2117,_0x5d8f6a:525,_0x22f022:"MVwD",_0x1deef1:1335,_0x4ca36a:1497,_0x2e7c9b:1435,_0x184b8e:2016,_0x162001:1463,_0x5f3276:306,_0x31155e:138,_0x4d23a9:127,_0x57a738:136,_0x43858d:82,_0x3f09b9:"Td@a",_0x21e9fc:1699,_0x2aa80b:1513,_0x631af1:454,_0x223c13:279,_0x1e1ae2:261,_0x250e9b:1489,_0x46ec2b:1277,_0x3ba566:"m5Ud"},n={_0x3d52dd:40,_0x565c87:162,_0x19c1c4:319},a={_0x252cf5:462},o={_0x4de97f:329,_0x54eb79:318},s={_0x54d544:417,_0x41199b:43},A,u,c;if(WX[l(i._0x29e6cd,i._0x141e5f,i._0x1a3c8f,1255,i._0x30ef51)+l(1161,730,1027,i._0x275148,i._0x7cc276)]&&!e&&!r)return WX[l(i._0x5c6d0c,i._0x2b1a4d,i._0xa74665,i._0x506cc5,i._0x5bf20c)+g(i._0x38c209,i._0x5978bc,"MVwD",1680,i._0x411dcb)]();r=r||{};function l(m,x,v,E,S){return Z(m-257,x-32,v-s._0x54d544,S,v- -s._0x41199b)}var f=(c=(u=r[p(i._0x1e2379,i._0x33af11,183,276,i._0x4f2cd6)+"m"])!=null?u:(A=r[l(i._0x18cf02,i._0x57d24f,i._0xfaf042,i._0xf6f761,"(uUF")])==null?void 0:A[l(1093,682,i._0x2c4d35,1209,i._0x1ac134)](r))!=null?c:JZe();function g(m,x,v,E,S){return re(v,x-86,v-357,E-274,x-185)}if(f[h(i._0x367b00,1125,i._0x3b081f,768,1242)+"h"]<16)throw new Error(l(1843,1083,i._0x13d005,i._0xa2dc96,i._0x576f0d)+d(i._0x45635c,1053,i._0x1cab33,1448,1839)+g(i._0x4656d5,2068,i._0x4fee04,i._0x1fec75,i._0x3a5453)+l(i._0x1fc00f,1302,1231,i._0x19406f,"JNeN")+h(756,713,i._0x4ec4c3,878,421)+l(i._0xf71656,957,i._0x3bd16b,i._0x35a6a9,"N0Iq")+g(1152,i._0x667392,"QdMv",i._0x1d6c8c,1497));function h(m,x,v,E,S){return re(v,x-o._0x4de97f,v-o._0x54eb79,E-74,m- -703)}function d(m,x,v,E,S){return re(v,x-500,v-a._0x252cf5,E-248,E- -198)}if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,e)if(p(i._0x418ea8,i._0x35be3b,i._0x4ec5b2,i._0x4fcf6d,193)!==g(1803,2075,"s!LQ",1875,i._0x5ee30f))try{_0x15ce9b(_0x17e252[h(683,i._0x5d8f6a,i._0x22f022,394,768)](_0x47c339))}catch(m){_0xcc486e(m)}else{if(t=t||0,t<0||t+16>e[g(i._0x1deef1,1683,"o5uN",i._0x4ca36a,1751)+"h"])throw new RangeError(g(i._0x2e7c9b,1705,i._0x418ea8,i._0x38c209,i._0x184b8e)+h(1094,1264,"fdfK",i._0x162001,1178)+p("Z[fC",-i._0x5f3276,-i._0x31155e,-i._0x4d23a9,-92)+" "+t+":"+(t+15)+(p("JMc^",89,-353,-i._0x57a738,i._0x43858d)+g(1919,1866,i._0x3f09b9,2267,i._0x21e9fc)+d(1634,1755,"r^O1",i._0x2aa80b,1603)+p("qSP&",535,i._0x631af1,i._0x223c13,i._0x1e1ae2)+l(i._0x250e9b,976,i._0x46ec2b,924,i._0x3ba566)));for(var _$m=0;_$m<16;++_$m)e[t+_$m]=f[_$m];return e}function p(m,x,v,E,S){return j(m,x-255,v-n._0x3d52dd,E- -n._0x565c87,S-n._0x19c1c4)}return HZe(f)}var YZe=VZe,zZe=Z(1397,1571,1832,"(uUF",1667)+re("Z(VR",1957,1707,1585,1554)+j("Zr4y",442,780,440,290)+se(-124,"N2PL",-78,-24,-452)+Z(1001,1262,1465,"m5Ud",1179)+ne("7r4f",1097,921,1132,991)+se(-411,"AQmA",-165,-677,-243)+j("rAUW",171,132,284,224),bkr=re("r^O1",1575,1622,2039,1954)+ne("r^O1",1381,1676,1298,1293)+ne("(uUF",1045,1444,1274,1079)+se(88,"QdMv",-155,309,-275)+Z(1677,1345,1039,"bVi3",1376)+Z(1502,1520,1888,"bVi3",1584)+se(-43,"AQmA",148,-82,-437),wkr=ne(")u!k",984,851,1123,779)+j("AQmA",39,-285,-306,-604)+se(-356,"Zr4y",-123,-649,-63)+j("#I1X",429,-238,55,148)+re("*qL$",1905,1687,1491,1512)+Z(1206,1132,1289,"ejE(",1466)+se(176,"Z[fC",179,-186,482)+j("Td@a",791,815,454,719),jZe=ne("AQmA",1040,908,768,1271)+re("Z(VR",1685,1489,1404,1495)+re("N2PL",1485,2019,1899,1730)+Z(1119,1368,1463,"6xFd",1342)+ne("Td@a",864,1063,894,1252)+ne("Z(VR",1491,1782,1163,1495)+"23",XZe=ne("RtOR",876,890,888,842)+Z(1361,1472,1469,"X@hs",1445)+Z(1420,988,1059,"N0Iq",1182)+ne("(uUF",991,645,1074,587)+re("6xFd",1584,1849,1792,1632)+se(-252,"JNeN",-648,-269,-44)+re("dT8K",1685,1547,1432,1636)+re("ejE(",1021,1655,1015,1368)+re("ejE(",1255,1308,1282,1316)+Z(1058,1341,991,"m5Ud",1137)+j("m5Ud",113,279,306,642)+re("MVwD",1111,1533,1113,1204)+ne("Z[fC",1250,1515,1105,922)+se(-23,"DLFC",-256,-392,164)+Z(1692,1220,1453,"s!LQ",1546)+Z(1280,1444,1542,"Z[fC",1598)+re("QdMv",944,1473,1306,1330)+Z(1122,1433,1237,"m5Ud",1482)+se(-373,"XKg0",-36,-701,-327)+ne("bVi3",1364,1301,1639,1245)+j("Zr4y",-505,-512,-287,-155)+se(-330,"7r4f",-597,-151,-240)+re("tghG",2053,1418,1995,1765)+re("uw*n",1867,1718,1857,1822)+se(144,"6xFd",258,1,-251)+j("JNeN",129,-131,254,312)+j("bVi3",17,395,149,-114)+Z(695,903,734,"XKg0",1027)+se(215,"T4sb",335,418,565)+Z(1073,1401,1094,"QDD]",1395)+j("Td@a",300,163,16,-288)+se(-322,"uw*n",-295,-100,-171)+Z(1242,1701,997,"RtOR",1333)+ne("Z(VR",1639,1248,1324,1772)+se(-434,"N0Iq",-680,-481,-596)+ne("XKg0",1440,1109,1274,1486)+j("Z[fC",664,40,365,247)+re("[3cA",1643,1803,2112,1795)+re("Zr4y",1478,858,874,1249)+Z(1287,913,1117,"AQmA",944)+Z(1761,1868,1190,"bVi3",1506)+ne("Zr4y",1135,825,1388,1261)+se(53,"MVwD",112,97,331)+se(130,"XKg0",514,512,-33)+se(-506,")u!k",-719,-739,-412)+ne("Td@a",1203,974,1309,926)+ne("MVwD",1259,1591,1198,1381)+re("r^O1",1610,2054,2026,1652)+Z(1314,1120,1044,"RzAx",1009)+re("JNeN",1320,1365,1301,1445)+ne("o5uN",1246,1545,866,989)+re("iqpp",1455,1355,1345,1196)+Z(1148,871,1558,"dT8K",1187)+re("SAMA",1245,1682,1359,1385)+j("^I18",334,51,20,407)+se(25,"MVwD",-8,-167,-129)+j("s!LQ",689,144,307,135)+j("(uUF",200,41,295,249)+ne("QdMv",1306,1589,1003,1560)+ne("*qL$",1538,1355,1670,1226)+ne("Td@a",1322,1143,1324,1101)+Z(1136,902,1127,"bVi3",1073)+j("[3cA",107,282,148,-83)+se(280,"7r4f",-101,437,-64)+j("JMc^",-335,-205,-88,2)+ne("N2PL",1423,1470,1268,1177)+se(189,"wS8$",-20,382,414)+se(-84,"^I18",-344,-374,294)+j("wS8$",-357,421,24,286)+se(166,"(uUF",475,61,349)+ne("AQmA",1333,1458,1355,1282)+re("o)FD",1165,1879,1652,1499)+Z(1588,1553,1518,"#I1X",1448)+re("XKg0",1602,1100,1206,1501)+Z(642,643,934,"DgfB",1023)+j("Iozt",-289,-509,-342,-145)+Z(1417,891,856,"QDD]",1065)+re("tghG",1176,972,1358,1257)+se(-212,"T4sb",72,-382,-112)+ne("T4sb",1412,1475,1556,1309)+se(238,"V&B%",-59,260,603)+ne("o5uN",1605,1878,1568,1279)+re("^I18",1965,1402,1472,1678)+se(-8,"qSP&",196,245,156)+re("r^O1",1222,1306,1738,1605)+re("iqpp",1716,1523,1357,1425)+re("s!LQ",1465,1357,1214,1508)+Z(997,1588,997,"JMc^",1273)+se(-286,"wS8$",-116,-373,-518)+se(-448,"s!LQ",-697,-293,-252)+re("X@hs",1120,1339,1138,1164)+se(-320,"QwuZ",-706,-178,-261)+j("ix8k",-6,184,181,40)+j("tghG",536,-92,237,387)+ne("#I1X",1399,1481,1608,1218)+Z(999,992,1567,"V&B%",1281)+ne("wS8$",1551,1636,1869,1228)+Z(1677,1424,1570,"m5Ud",1626)+re("r^O1",1898,2219,2107,1910)+se(-99,"fdfK",88,-328,211)+j("ejE(",164,385,177,-213)+re("Z(VR",2058,1575,1902,1914)+Z(1227,1395,1846,"AQmA",1613)+Z(1185,1170,1422,"6xFd",1556)+j("o)FD",-379,-7,2,-106)+Z(1605,1276,1759,"N2PL",1672)+se(-132,"Z[fC",269,-505,233)+Z(815,912,1302,"rAUW",1190)+ne("uw*n",1290,979,1429,1471)+ne("^I18",921,985,776,950)+j("848R",-194,-159,138,172)+j("#I1X",362,236,141,-115)+Z(1869,1955,1340,"V&B%",1574)+ne("bVi3",1294,1692,1468,1526)+se(224,"QwuZ",381,85,2)+ne("wS8$",1592,1218,1271,1312)+se(227,"bP5x",28,623,-16)+j("[3cA",90,500,382,498)+j("fdfK",136,187,30,-105)+Z(1533,1847,1580,"fdfK",1519)+ne(")u!k",1477,1429,1134,1115)+se(-315,"N0Iq",-117,-40,87)+re("DLFC",1006,959,1225,1207)+j("iqpp",-246,-492,-322,-373)+Z(850,1295,1323,"iqpp",1213)+ne("RzAx",1293,1381,1659,1602)+Z(1286,1352,1586,"SAMA",1635)+j("QwuZ",12,275,-90,-371)+re("o5uN",1379,1886,1614,1621)+j("rAUW",38,145,-3,-143)+se(-296,"Iozt",-349,-416,-517)+se(184,"MVwD",418,130,223)+se(112,"MVwD",255,-84,-138)+se(161,"QwuZ",233,377,-56)+re("wS8$",1507,1623,1587,1769)+Z(978,1153,1273,"wS8$",1284)+ne("rAUW",1244,950,890,1508)+ne("V&B%",875,1009,583,677)+Z(1213,1484,1509,"s!LQ",1609)+j("RzAx",20,410,162,-37)+re("Iozt",1007,1566,1625,1354)+Z(1097,789,1164,"wS8$",1171)+re("DgfB",1231,1297,1536,1580)+Z(1422,1283,1236,"XKg0",1079)+Z(1517,1379,1729,"7r4f",1423)+j("dT8K",790,562,393,656)+Z(739,1176,527,"fdfK",923)+re("ix8k",1931,1421,1197,1578)+j("6xFd",-345,-495,-129,240)+ne("Zr4y",1419,1508,1182,1149)+Z(823,994,1191,"s!LQ",1049)+j("XKg0",-99,592,252,404)+j("o)FD",-314,138,-109,-209)+Z(1075,1436,995,"s!LQ",1108)+se(-225,"848R",-276,-266,-376)+j("AQmA",329,469,147,345)+Z(1819,1604,2043,"RzAx",1691)+re("s!LQ",1649,2071,1912,1719)+re("s!LQ",1581,1465,1339,1210)+j("T4sb",154,585,458,185)+re("#I1X",2325,1750,2327,1925)+re("RzAx",1134,1363,1402,1458)+Z(1153,754,1214,"848R",978)+ne("JMc^",874,1172,974,933)+se(159,"bVi3",265,-213,346)+re("dT8K",1017,970,1281,1160)+ne("JMc^",1107,1465,1127,1422)+se(-39,"DLFC",104,174,272)+re("r^O1",1225,1566,1070,1473)+re("(uUF",1352,1112,1148,1179)+j("X@hs",-10,-13,-110,-68)+j("MVwD",-24,-109,172,482)+Z(1272,728,1291,"r^O1",975)+ne("ejE(",1247,910,1054,873)+ne("uw*n",1655,1628,2001,1697)+re("XKg0",980,1358,1027,1218)+j("#I1X",-147,-506,-314,-79)+se(-514,"DLFC",-521,-728,-493)+j("XKg0",457,111,395,718)+Z(786,1522,1048,"fdfK",1127)+Z(1958,1979,1844,"848R",1669)+re("ix8k",1552,1178,1149,1287)+re("bVi3",1774,1808,1524,1624)+Z(1604,1932,1479,"Iozt",1690)+j("ejE(",341,621,274,453)+Z(1518,1082,1482,"bVi3",1146)+re("bVi3",1200,1367,998,1199)+Z(1143,1256,1245,"rAUW",1396)+re("o)FD",1546,1883,2094,1805)+re("Zr4y",1599,1559,1572,1467)+ne("*qL$",1580,1388,1451,1899)+se(-91,"DLFC",-444,-419,223)+se(-67,"848R",-460,-7,21)+j("V&B%",188,331,83,415)+ne("r^O1",1256,948,1389,996)+re("AQmA",1525,1877,2052,1876)+Z(1756,1644,1457,"o)FD",1538)+ne("DLFC",1110,1003,973,1115)+se(3,"rAUW",290,-197,-40)+re("RzAx",2029,2011,1778,1880)+(re("bP5x",1779,1387,1803,1723)+j("uw*n",-50,-253,-17,188)+se(272,"QDD]",347,89,-41)+ne("XKg0",893,597,638,1151)+Z(1579,1212,1448,"QdMv",1317)+ne("fdfK",986,844,664,1111)+re("MVwD",1303,1784,2105,1702)+se(-129,"uw*n",55,-477,-63)+re("Z(VR",1565,1742,1992,1897)+Z(1266,902,928,"#I1X",1227)+re("r^O1",1498,1862,1629,1663)+ne("wS8$",1236,908,1039,1468)+ne("uw*n",995,839,1129,689)+se(214,"^I18",130,-61,344)+re("DgfB",1155,1380,1553,1161)+Z(1668,1716,1185,"tghG",1585)+re("6xFd",1785,1819,1767,1691)+ne("^I18",1251,1417,1494,947)+j("[3cA",685,186,289,462)+j("s!LQ",-214,-279,-231,-501)+j("Z(VR",354,252,157,140)+se(242,"N0Iq",603,-8,324)+se(-128,"dT8K",-110,-17,-355)+j("QDD]",-138,214,88,344)+re("DgfB",1925,1986,1397,1628)+se(-151,"qSP&",-551,3,-15)+ne("rAUW",1155,1150,1151,1329)+Z(1319,1479,1685,"Zr4y",1491)+ne("DLFC",944,1064,870,754)+j("s!LQ",809,248,423,716)+Z(1481,1100,1471,"wS8$",1128)+Z(688,925,1174,"XKg0",1007)+se(-406,"o5uN",-707,-728,-678)+ne("JMc^",1021,1383,1307,683)+j("uw*n",253,-232,-98,256)+Z(913,1252,1512,"Zr4y",1252)+ne("RzAx",1126,1232,973,1005)+j("QdMv",165,455,146,329)+se(40,"RzAx",-356,-13,385)+j("N2PL",129,-50,167,-49)+ne("MVwD",1278,1650,1506,1291)+Z(1351,1465,1287,"m5Ud",1335)+ne("QwuZ",1356,1202,1586,1486)+j("uw*n",101,-399,-23,-3)+ne("#I1X",1479,1467,1381,1148)+Z(1628,1782,1553,"fdfK",1456)+Z(1994,1706,1864,"6xFd",1662)+re("dT8K",1857,1766,2216,1862)+re("qSP&",1745,1053,1748,1364)+j("ejE(",296,74,232,49)+j("DgfB",-389,82,-309,-639)+j("QdMv",-344,-345,-114,-231)+ne("fdfK",1253,1134,1041,1481)+se(151,"DLFC",376,30,44)+se(92,"Iozt",-210,94,-212)+ne("o)FD",1672,1438,1893,1538)+j("AQmA",639,565,401,627)+re("*qL$",923,892,1655,1262)+ne("V&B%",961,892,1002,890)+re("QdMv",1918,1923,1207,1546)+se(75,"#I1X",73,-22,422)+ne("bP5x",972,1249,993,1007)+Z(1335,1492,1088,"JNeN",1183)+se(-379,"#I1X",-659,-356,-399)+se(283,"SAMA",-51,-48,75)+se(-51,"fdfK",-322,44,60)+ne("RzAx",1105,856,1167,1156)+se(-191,"ejE(",-51,-93,-467)+se(160,"RzAx",-36,154,5)+se(-58,"wS8$",189,298,-19)+j("DLFC",-155,-64,-201,-281)+ne("*YWj",1320,1162,1003,1637)+Z(1452,1581,1149,"AQmA",1509)+j("m5Ud",-47,554,294,-66)+re("o5uN",2035,1415,1801,1696)+re("RtOR",1845,1689,1604,1500)+re("7r4f",1605,1246,1624,1536)+Z(1285,1411,1782,"ix8k",1623)+se(5,"#I1X",36,-149,-306)+Z(750,1226,1432,"*qL$",1075)+se(-12,"wS8$",87,321,-188)+Z(2011,1744,1595,"QwuZ",1668)+ne("T4sb",1366,1500,1212,1303)+ne("DgfB",1031,1240,1376,1104)+j("Iozt",755,216,386,559)+Z(1401,924,1334,"7r4f",1217)+se(-187,"(uUF",-28,-389,88)+j("JMc^",-219,-152,-280,-116)+ne("X@hs",1650,1975,1594,1720)+j("DgfB",-205,-263,-56,158)+re("7r4f",1643,1751,1525,1762)+Z(1060,1341,1045,"AQmA",1319)+re("JNeN",1149,1129,1803,1486)+j("DgfB",-194,-122,-97,-118)+ne("QwuZ",878,684,1198,829)+re("848R",1798,1801,1451,1491)+ne("MVwD",1264,1569,1433,1081)+j("QwuZ",-195,-131,-315,-24)+re("DgfB",1234,1885,1904,1570)+ne("(uUF",1184,1284,921,1472)+re("848R",1277,1395,1424,1341)+se(170,"ejE(",-163,346,352)+j("JMc^",175,723,391,469)+Z(1529,1704,1238,"Iozt",1371)+j("#I1X",-385,-203,-310,-460)+j("o)FD",590,660,305,475)+Z(1107,1437,936,"N2PL",1206)+ne("QDD]",1014,1119,827,1221)+ne("DLFC",1486,1787,1592,1731)+ne("o)FD",1080,1151,769,1226)+Z(830,1365,1326,"AQmA",1074)+re("dT8K",2093,1953,1670,1859)+ne("bVi3",1379,1289,1741,1558)+se(-21,"T4sb",-21,12,332)+Z(896,1307,926,"wS8$",1178)+Z(1549,1447,971,"r^O1",1177)+ne("o)FD",974,1267,711,1196)+ne("QDD]",1143,1347,1288,777)+j("JNeN",184,34,-130,-206)+re("rAUW",1232,1420,1291,1635)+se(-380,"fdfK",-519,-212,-159)+ne("JNeN",994,1130,732,1062)+re("N0Iq",1544,1756,1646,1609)+se(-325,"#I1X",-372,-246,-339)+re("QdMv",1457,1949,1406,1727)+j("DgfB",737,611,439,447)+se(-170,"dT8K",50,-118,-394)+re("dT8K",1996,1475,1807,1671)+re("DLFC",1386,1253,1320,1337)+j("XKg0",-285,294,-43,54)+ne("848R",1026,1107,958,629)+ne("Zr4y",1297,1174,1186,1686)),ZZe=Xp(Zp()),$Ze=globalThis[Z(1264,826,1350,"fdfK",991)+"o"],Sc=$Ze[j("DLFC",318,160,300,531)+"e"];function jp(){var r=["W7HpqWTf","uSkObx0","WQ4bg8kSFG","WQxdLSkNW5vl","Ec0RW5aw","WRSKWOTX","WQK7jSk8qq","bc4wwH0","WOtdVmk5zI8","WRVcLtFdIWa","WRKnW6FdQmkU","W5BcISkGWPfK","WQpcGfm3WPG","smkIcCoTva","jmkXWOVcJrm","WQ4yg8k7FG","WR8cW7xcT8oJ","WR1bW7C4fa","W4JdVg0xW4W","W6FdGsW","WQCzdmogWO4","vCkJWQLNWRq","WQ8FW7yqBW","WOZcSgrTWO8","WQZcLCoaWRO","mXpdQmoEWOa","oqxdNSotWPy","s8k3nhj5","BmoqWQn6WRe","a8kOdSoXtG","WRhcL8otWPxdHq","a8oFWR3cMWy","W48WWQhcLmkM","vuldGuhcMG","rSk/omobAa","ESkcWOndW6S","WR3cGwNdTXi","W4xdNNdcOu4","WRaIqmkAlG","WRxcKaLSWQO","WQ4JkmktvG","uCk+W75GvG","uCoCW4PDaa","CSoxW7NdUMa","WQijWPldSCk7","g8kGrmo9CW","reJcLg7cTa","WRSHWPbOWQa","WPldT0xdLwa","sHHxW57dTG","rbSDWPa3","W78FdrSc","W65cWRJdTSkNWPZcOI03W5VcOKW","W5tcNfeTW5C","u8kJWOdcSt0","WRi7pmk0Bq","WO3dJNbrdW","a8oOa8oRwq","frxcMG0","W6NcTINcImkD","WQ4hn8kzW5G","WOe7WQ9EWQi","qhdcRSoZ","WPxcRI8lW6O","W7RcGqe","WPDCW7a4zW","WQKQW4pcKSoU","WRNcLSoeW7xdPq","umo/WRVcTbVdLCox","eSocWOVcMZy","h8kNW7VcQmo1","WRJdJmk0zvO","WQdcIKW1WQG","bSk0WOtcRfa","WR/cUmoeWPVdKW","WR3cUmktWPFcTa","zauNW6BdKG","pqqWWOHU","W6pcK8kJWQzV","W77dJSo4W7HC","WQtdVt1OWOpdVH3dPGZdLCoruq","WOWWW4FdTCkZ","WQ3cVSk7WQ98","WQRdQvO","WQuUW5H7W7G","W67cOmkEW7/cLa","BmokWQJcQY3dVSoHnSk7fCk1hSoS","WOOqWRfGWQ4","DCk9W6XHzW","WObUzSkhDq","zSk6WONcQI4","kbJdKCoDWPi","WRSfW6pcVSoI","dmkLgSoIxa","itdcNWmZ","kHpdMI1a","W7dcQMy5W4i","WQubWRvrWOS","W5bYW7FdTrK","WRldHevLpa","W7ldKCo8W64","r8o9z0PB","W41XtXKh","j8oJW5xcO8od","vCkzW5rbcq","W4rwW53dLcq","WRNdV0S4eq","Cc8VwXW","W4LVW4GqW6e","b8k6WPihW6G","WR0HWOL8W6W","W4WUWP/cQmkW","W5NdJJmHAW","WQKrfSo2oW","WRKiW7ZcQmoL","WObTWQKUWQ0","W7JcPSkNW4JcKW","ds3cGI84","BCkSWQNcRYy","W7tdGNCyWOVcQW3dGa","W4SNgq","WQ8FWRNdV8o5","WRBcH0WQWRu","WRNcNMS","WR/cHwOxW4e","WQFcHCoFlcm","WPJcV8o8FaC","tCk5WQlcRW","WQSzW7VcT8kg","WQKlWPbTWQ0","qmkZbSo0vG","tSolFeS","W64dhCkwkG","kSo4W6VcO8oZ","WRZcHLKBWQG","W67cOv3cNrW","DSoTWR3dISoyqeOBWQRcU1bS","WONcLmolWPFdRG","W4qsWOlcQmkY","zxHSceZcKmoGW4jrwfKS","W5uJdSkIWPa","W5tcSCoiW4hdSq","aSoiWQ/cGZC","yw3cKCkUkW","fXfeW5xdTq","W7xcLmkCW6PI","WOZcV2edW7G","WRhcSSo4xYu","WRJcImouWQRdRq","WQD6WOD9WRS","q8o8WQCAWPG","Ds0wWO5X","umkPWQlcIJ0","W6fnW5hdOmoz","WOZdKu/dHCoT","WO/cI8okWQxdGG","WOKyW4W","B8kCWPxcMb0","vwVcQmo2na","W7TcrrvA","WRyyoSoa","q8kXa3bP","WQBcKg4SW6K","WQutW73cRCoZ","WOX3mX43","WPdcKSorFJK","gCkwW4ZdKwC","ogJcKbldUa","W7NcJNOSW5C","W7RcL8kcWQ5a","W4fFW449W4S","WQBcQCoZWORdHW","ECoFbgfK","WOidWPuHuq","WQWUWPyQWQy","W5bLW4VdOWu","jsm+wbW","WOFdKeZdHf4","WQxcObtcOLa","W73cVSkeWQqq","WQ8CW7RcVa","WQCWWOvzWRS","kCojWPtcRbe","W4aRW64bW50","W6ekW5RdOIi","qsmdW4m","wmkZh8o3aa","WPD1eWSa","WOZcS2W7W6C","WRBcH14UWRy","W67cOrZcICob","x2FcT8o+mG","W7pdTmkwW5FcHq","sCk9W4RdUG","WRruBHyT","W5KXW4aSW60","tmkCqKXi","WPGXWRNcQG","abJcMqOg","e8oDWRNcJta","mCoDWQZcOde","W73dImoKW7Pa","WR8yW63cTCou","AmkEWQrN","W5hcPIZcR8kf","W6VcRbxcPCkf","bCocWO7cPLu","cSoeWQRcVsK","W4HKySkWEG","WQO9W5FcT8kq","W7mxhmoIiG","WO7cJmojz2K","WRhcOwCQWPS","W7pcPqKZWQ8","eqSCsba","WQtcHw7dMXy","WP8FWQJcO8kG","WPHUddON","kmo8W7/cTmod","WPpdOh/dPMC","AsJdSmk2Fa","WR8mbSkxsq","WQfXxcny","WOf6W5VcTCki","ECk3sx/dOG","Fa0KWPe","cmk6W5ldMLC","CtOYWQe0","W54YW4BdUr8","W7ldKmkGWR4o","w8k7WQeQW4e","W4tdG2TGkG","WRnBW5VcJSoz","jCo4W7VcG8oK","W6nGqZm","CCoIDwbQ","AqGnW6ldGa","lmkdzwFdKa","ySoHBMZdGW","WQpcIv3dHY4","r8kZfxP+","W7RdU0K7W4m","emoOWPtcSbi","w8kOWQtcUta","W7xcPLKgW4e","W4vSWPFcOSk2","W78nWQvRWRK","WRr5gJCM","ACkfWQmTWQy","imosW7/dOSo5","WPpcTMyhW6K","vJGuWQCL","WRz5W5LcWQO","wmkYgCoZqG","q8kgnKBdHW","WR5PWOlcM0P4jXKTWO7cKtK","mZqrraW","W6zOW4OvW7y","WOlcQ0JdOHy","cCojWQZcOZy","CrO5WOq3","WPyYl8oxuq","WQfrqqTz","WONcVJaxWRe","W741W5e","w8oDe0fS","WPnxnHWr","W6ShWQa","wbKwWQeU","aCoXWPlcVq","WPldOCkXCe8","WRVcP0pdL20","ESoayw96","CayFzfC","uCoLW4hcUbq","WPldTbxdRSoL","WReYa8ooWQy","w8kPW55Ova","W4VcP3pdP0jaW6lcPG","tKtdOKBcIq","W7HXoCkaWPq","W57dT8oSW4rR","W47cVLi4WO4","B8kNyxVdTa","W6VcHCk8W7NdSa","WQldKxhdKCoh","W4T0WRFdRmkv","qSkMaSoH","kmo2WQ3cNs4","WOaRW6BdIci","WPxcN2tcGqi","W7xdISoMW7m","E8kEgCoktW","W6qVW4ldMGK","W4iOWRBcISkq","rSoLo2r+","DuVdOGxcNa","hmosWOdcUrq","WOddIenKpa","dSkWW5/cVIy","mCoAWQ3dJty","W5KUWPNcPmkN","WPnjnH4H","jIW2sb8","ESoQW5RcUSk8","EgNdGqtdRG","WOFcS2KD","WPlcTmkEWQZdHq","u23cVmoPeG","W4TUEmkh","ySkeWPuTW7m","W50Ja8k3WP0","A8kCzr5U","WRiqf8kzBW","WOSEW5GDva","oMJdR0BcVq","WQhdPXFdG8op","W7GBqa14","cCozWQBcLJS","WRSGWPjXWQe","W7/cP2KSW7u","W7rdrZHY","zmk9WQFdVmkD","W783W5/dIr8","W7n4W7ldOG","W5f5W7FdQaq","WQlcOSkOw2e","WODAnXCm","WOjeW67cRSkb","bWtcIbnz","wSk/W6FcQsy","W4BcSIFdJCkN","WQhcK8opWQ0","WRFdISo7WRDb","nSoFWRbZW7e","WR7dQupdGmoL","rmkZg8o0aa","W6T2W6W","WPtdUSo4kYW","j8o/W70","W6BcMGBcJ8km","W6xdHSo4W7Tp","uGCEWPFdJq","W47cUwe","WRSvW7JcLCo2","W7HrCmkbFq","WPtdVuxdSa","wmkQW6D/ua","WPjUkduQ","vNFcSSo2eW","W48XWPpcTCkR","W5FdRw5xW6K","W6BcTSkEW7/cGa","W7/cReWBW4q","WOjmW6BcNmof","tCk5e1rU","W7BdHGLSW60","WR7cUmkMzxG","WRldRbldM8o/","W67cSv0cWPW","WQ/cICkzW7Kb","W7uKkmkdWPa","kSozWRNcOZC","BConW5/cOsy","W6BcS8kvWObc","W48HW4hdTCkJ","W4ejAKTAW4XkWORdPxTQbSod","WQ56WQNdMSkP","W7BdJ8o9W7jD","WQhdSCo6W4f3cbm","W4mTWP4","mGtdGSoaWPy","W6GvW6BdScO","oXldQCoGWOq","W5nWW7VdQbi","WRGAeCk3FW","W6jfW7KbW6C","WPmyW7K7sW","WQidWR/dUSkq","WO3dPLpdVa","W5pcS8k7W5xcKq","WRpcP0RdUea","W7dcO8kvWObe","W7DZW7tdOCoM","pSk+W7RcJ8ki","W7jPWOFdTCk3","WPJcNCoqWQldPa","qmkYW5rhuq","W6u1W5e","WOicWOVdSCoN","WPZcU8ktWOVdMG","WPPaW4hcSSon","WQrag8koDa","WQddUfldJSoG","W63dNJpdKXe","iCk+W73cImkf","W5nUW7VdQIi","WQOLWRrTWR8","W7hcQmkh","W6TaWRVdSSkHWPZcTrypW5dcOuO","WQFdGv8pWOO","jqpdUmoZWPC","W7fEscLf","r8oFrgi+","WPldQmk8BG","pCkRW7RcLCkd","WRpdLKpdUa","W4T2W7xdQmo/","WQuLpSogWQu","WQNcThKfW6a","yaKL","W4pdSSoaW7ZcQW","ymoOgSosEW","iqlcS04D","WRhcG3pdNZO","ESkNfvHz","cWtcHGGI","W6jfqJK","W4PYW77cRmo4","W4aoB0zvW4a/WR3dOvbZjG","WOeGgmklWRy","zwJdJ1NdOq","wCoEW7q","aWZcHGOg","WRVcI8ojydu","umoazrvV","sImCW6ddRW","qmkbW5fxqa","W7ZcTCkjWRfe","lHBdS8owWOO","WQpdQmk+zMm","W7lcI1ytWO4","W7RcQCktWQ5u","sCkyW4yCua","kCk6W7ZcS8kA","k8kMW5FcMmki","FaKXWOa","WP4vW7xcJ8oJ","WQ4hW63cQmka","dCkEW5ZdISoC","pX/dVmoaWQy","W75fqY4","lstcVt0D","cGtcJcqa","W5hcK8oeW5FcQa","WRNcLgtdHG","W7H9tYGA","W7mFW63cSSoJ","uCocW6BdLWC","kmkmWR7dVhi","WPNdN8ohpMe","WQ43WQrzWQG","lmk6WQJdGSoq","cmojWQBcJXq","dSksWRRdNW","oJqyAs4","ucmw","W4fUyq","WQxcKh7dNH0","W71nW5NdHsu","WO8ZWQZdQ8kS","WOzHAHuj","WQ7cHhlcNby","nCkzW63dUW","W6tcSCodW5RdTq","W7zZW77dJCoK","WPtcSI8jW7K","WQBdR8k/W58B","sXaMWPCQ","FmoQux9J","WRr+cL4K","W7fJW6/dVmoJ","hbtcJcqg","W5ddQmoFWOXG","WOKrWRm1WOG","W7FcOuNdSdq","WRxdUfxdRSo7","W4xdSmojWRPH","W7uOW4pdJKK","W4SYWOdcMmkJ","c8oZW4xcICka","gZtcL8oFoW","W4NcHYhdGSke","r8o9gxm6","WRtdSu/dOSoY","W4OzW5q2eG","tSoKsH44","WPNdTKpdU3a","f8o2WO7cUcm","BSkuWQrcWRe","WQ/cMmoeyri","bCofWQJcKae","WQFcHCoC","W6VcO8oBWQ0j","WQJcS8owWQJdLa","W4HOCmkB","W7hcQxxdSSobWRjCWQO","zGCpWPeX","W7G0W7tdKW4","WQRcU3SlWPC","W6xcL8kDW6VcTG","nSkyWQHtWOS","D8kdWRb6WQG","WO/dSK7dS3e","mmoQWRRdOmkc","WQirW7hcMCka","uvRcRCoUmW","W4juq8kRxW","W4a2t8khWQG","WQWyW6VcImo4","WOCnf8kmuW","WRJcVLtcGse","jZuoDZm","ASkqo3X5","W6hcQrNcLCkC","gCk7WPldQa","W6BcVmkGW6FcJW","sahcMHyD","WOemW5FcU8kH","W6r/W70MW6q","W6xdGSoMW7nb","W54jWPxcVG","iJK/wq","qCk6WOawW6K","pmomWQVcGsy","WPmFW4KTsa","qSk8WQyqW4W","W6ldHYZcG0a","WO7cSSoIW6pdKW","W5T4W7VdQJy","WQRdGqWCWPu","ka7dRCox","W603W57dHqK","FM3dNa","fCkjo1z1","EmkeWQrcWRC","W78uvxC","W6nezdnf","f8oJW7q","r8kNWReD","WRpdRmkPsNG","WP7dRCk1q3G","W6u/WONdMuC","AcSMWP3dTa","W7JcQMSXW5i","BmoLuhTX","qsOoW53dMW","W7hdPbldLCof","WOxcHmoTW6ZdQa","imkWW78","lmk2W6BcMa","W5xcGH7cSCk9","WO7dNN5S","W4aOWPRcICk0","W6VcR8kcWQ5h","zwhdLuxcVa","kSoXW6BcVq","c8oMWP7dUx0","cmkoW4ZcTCkv","iIWJ","tSkMWQC0W5G","WRq0W4lcICoM","smkaW5rDqq","W7ldOSo6W6vp","W7dcISktWOvi","scm/WRao","WQupj8oFWOO","W4n4ar0P","hSoPW47cObq","W40RWPBcVG","v13cMmolma","kmofWPBdOHy","W7ZcR8krWRnZ","pIiUhqK","W7jOW55nW6q","qCk1f2Dz","WPlcU3y","WPFcQg7cS8oU","W7D4w8kYiG","WQyXWPHS","W77dMSkCowyUWO9bscupWPa","W5foWOH2d8klhK96W41YW7ddUG","WRJdJmo4W7ja","WOuqaSkDkq","qYWiW5RdTW","W5O3WOpcRW","CmoIWRqWW6q","rY0rWRaM","W4HKySkYAq","tCkOWRFcPYG","W4xdU8k9Cv8","WP9/hbSB","W4nGsN9q","l8kVW7JcKmku","WOa3fSk3WPC","W4fYsCkqAa","WPbDpHSk","WOhcVhixWPi","WRKEW6/cTCoU","WRG1amkQEG","WOFcVu0qWO4","lWpdR8oBWOS","WRxcJ0lcTmkG","WPSGWQhcJCk+","jCo5W6NcJSoB","smkYh3S","WPqdW4KRuq","W40UbCkR","rZ9KW5mn","aXlcHGG2","W4CqW5VcHmk1","W4fGE8kh","W4eEjCkOWOW","W4qFfMvD","wCo2bmo2FW","xt1QWRv7","W6bUWQCEW6W","F8oTWR7dHmours4cWPlcIvPleW","WOHkW7VdU8o9","omoWW6BcN8kk","sdxcJCothq","agFcTCo9hG","pbpcQaLb","d8kBb0rhW5WaWQVdUW","W7lcQfagW5G","W4qJWP3cOG","x8oXq1HR","WOaIWO4atq","iIW0wru","iIWT","s8kuWO1SW7e","xmkYhmoS","WRFcK1i+WRu","tCkiW4PvrW","sSobF0j+","W7Pux8kMoW","W6pcRmkqW6dcGq","W5L5W7RdObq","sMhdQ8o9cW","WOldGM9X","oSoiWQZcMY4","W4XPD8kqwa","W5jpW6f6uq","WOBdH2bfkW","WP0XWQxcISk/","WRFcM1i9W7q","vCkRWRyqWOO","WQhcL18OWQm","rmk5bh4X","WO7dLvvXoW","WP8OWRNcTmkJ","W795uIvd","W7rIW6JdUmkW","WRxdUfBdRCo2","zqOeW6RdRq","WQudnCou","WRJcLxNdSWW","W4JdTmkeWQpcPW","W7bcqdm","WRSEnSoSWPK","kGJcHsqm","vmkmWPDyCq","gmo9WQuCW54","a8kRa8oPfW","WOdcQSktW7VdRG","b8oYWRNcLYa","g8k1rmoEAG","fmo2W4hcTW4","WQatWQ7dNmkJ","W414ySkhvW","W7iBe8kTBW","W68XW6ddI0W","xCoguL9k","W7BcQCkuWQri","gq56DJ8","WPFdVmk+yxG","W7PdW77cT8o4vWlcQJRcVHXkW4W","W4NcGGFcSSoy","zSkzWQD6","DvBdQmosya","l8kYW63cJW","WRmKamk3AW","W6uEW7BcT8oY","WQZcPbFcSmkP","fCkriLzw","WOldG2q","W4aIW7JdRJm","W7vCW4G+W6W","BJVcKrpdVq","xfpcSZ0r","WPpcQwefW6a","W7VdHSoMW7bA","WRX2nHeX","zmkYW4JdI1e","W6ZcImkiW7/cTa","W7BcRw3dG8ogWO56WQ4","W7dcSmkEW6a","WRfhW4GUuW","WRGgbSkHvq","mXRcSSohWPa","j8o0W6xcVmog","B8ocq0v/","WRrVlJqV","W4tcTKyeWOa","uCokvMX9","FICZxbq","W67cRNe","nrpcVCobWPe","o8kXW6ZcMCkl","WQaJW7xcTmkb","W54qt8kUWRW","xMlcQCoZCq","WPrxlbyq","cmkTW5FdLZq","W7pcSmorW7dcPW","WQpcOf/dIc4","WQNcRvG1W5u","W6FdKCoNW6nb","cSo9WRpcHaq","W6tdL8o6W75a","W60EgCoUWPi","ureWWQmq","sCo5WP/dVNK","ELfOW5uq","AYiSWPn2","xvRdOgpcNG","WPKVe8oLWOS","BSkaWRbXWRy","WQi7WOL2","zNuvW6NdMq","W4/cGSkHWPDY","WOa1W7C7Aa","WQtcNSomWQBdOa","W47cLSoCW59k","WOKBW6dcGCov","FSkUBM7dKG","uSk8WRCyW48","y8o+mtNdJG","W7OhASoLWOu","DmkFWRCmW70","W4xdV8kBWPCd","ymo2AgpdNa","W73cKhGRW5q","a8kHpmkRqG","WR7cPHZcK8kD","W5pdT21NW74","WPOKWO5PW7S","nIpcIL3cQW","WQWzdmoFWPG","WOJdG2r7oW","rMtcSCoUna","WO49WQvAWOW","WQtdTuFdS8ou","WRFcK0u","xSk/W7a+W6e","WRJcImohWQ3dTW","WQ7dNNJdGKa","W7z0W60h","jmkNW7RdTMi","WPBdOmk2EW","WQ0HW47cJCoF","D8k2WObjWQW","WO/cU3OqW6q","WPWuW5FcM8oB","wSkmWRxcUsG","WRe7WRrWWPy","W7pcSmkdW7VcRa","tmknbhPQ","oCkDW73dOw0","WQJdUupdGmoJ","eSooW7xdM3m","hmo9WRNcP8oi","W7D0W54HW4m","WRGuW5VcQ8kF","W7pcGSocW6PJ","Fv3dP2dcHG","WPRdM2pdU3a","W5dcJtJcUCkT","W68ZW5FdMdK","qCoLW5FdOfu","W7jYtc5J","WOSLmmkaka","WQNdG3i7WPy","l8oaWPJcJZi","uclcPq5j","WPNcTSkJpW","WQhdP3b2jG","zWy4WOaL","D8ocWQ1zWOq","WPfty8o+WR8","WQNdRNNdS8oK","WQhdSuNdRSoL","WPbvpGCl","CCkHWO5EW6q","u8kmW50","WO86W6xcKSkG","W63cOSkaWQ1r","w8kPe1rO","FSkax8owaW","WQKaW7ZcQmoL","ACokWQ3cQY3dTCoNdmkLlSkeo8oH","WPlcV38iW60","bCkxW5/cUCky","WPGxWOhdGCkk","WPjElqec","WPLEnXqx","vSkuehOI","BdhcTSoKWPy","WQ3dNbpdLmoN","WRBcUwGLWRG","BulcQCoBWQVcRmolW5JdOa"];return jp=function jp1(){return r},jp()}function VX(){var r={_0x237192:1220,_0x325b3e:1019,_0x526cd3:565,_0x22f2df:1497,_0x35e3a1:1443,_0x1306bb:"JNeN",_0x409720:1235,_0x5da6c9:"848R",_0x49e786:17,_0x562098:932,_0x4e89e6:904,_0x39efd1:465,_0x4bf6f9:1481,_0xfa9524:1089,_0x49bfa3:1248,_0x12ef2e:1314,_0x15adf0:1629,_0x564aab:"[3cA",_0x3f0af5:1550,_0x4fd3de:666,_0x3c4dc5:547};return _c(this,null,function(){var e,t,i,u,c,l,f,g,h,d,p,m,x;function n(p,m,x,v,E){return Ie(x- -753,v)}function a(p,m,x,v,E){return Ie(m-713,v)}function o(p,m,x,v,E){return Ie(p-i._0x42be11,v)}function s(p,m,x,v,E){return Ie(m- -t._0x5dbcea,E)}function A(p,m,x,v,E){return Ie(E-e._0x2a527,p)}return _ts_generator(this,function(_state){switch(_state.label){case 0:e={_0x2a527:4},t={_0x5dbcea:792},i={_0x42be11:168};if(!(A("qSP&",1188,r._0x237192,932,r._0x325b3e)===A("Z(VR",1087,r._0x526cd3,1003,843)))return[3,1];for(c=_0x45e779[a(r._0x22f2df,1734,1599,"dT8K",r._0x35e3a1)+"h"],l=c%3,f=[],g=16383,h=0,d=c-l;h<d;h+=g)f[A(r._0x1306bb,r._0x409720,1383,984,991)](_0xe2e5d9(_0x1cc380,h,h+g>d?d:h+g));return[2,(l===1?(u=_0x1a0a1c[c-1],f[n(470,503,173,r._0x5da6c9,-r._0x49e786)](_0x5da273[u>>2]+_0x4e3fdd[u<<4&63]+"==")):l===2&&(u=(_0x1ba850[c-2]<<8)+_0x2547c0[c-1],f[o(1151,1526,r._0x562098,"Zr4y",r._0x4e89e6)](_0x59056a[u>>10]+_0x2c527f[u>>4&63]+_0x58a32f[u<<2&63]+"=")),f[s(155,r._0x39efd1,233,205,"#I1X")](""))];case 1:p=XZe[A("^I18",1485,r._0x4bf6f9,1435,r._0xfa9524)]();return[4,e$e(jZe,p)];case 2:m=_state.sent(),x=new TextDecoder()[a(r._0x49bfa3,r._0x12ef2e,r._0x15adf0,r._0x564aab,r._0x3f0af5)+"e"](m);return[2,JSON[o(r._0x4fd3de,r._0x3c4dc5,641,"N0Iq",494)](x)];case 3:return[2]}})})}function re(r,e,t,i,n){return Ie(n-693,r)}function e$e(r,e){var t={_0x2127ed:1313,_0x13700c:1421,_0x515434:2020,_0x4686d8:"DgfB",_0x439168:542,_0x39ffcb:"T4sb",_0x1f5793:148,_0x8fcff1:1983,_0x87046:1331,_0x396b50:1436,_0x4a8900:1117,_0x2d9a52:1260,_0x7ecd30:981,_0xd620e1:522,_0x55910f:1707,_0x213ce6:1570,_0x401815:2e3,_0x27a8f3:1465,_0x5327be:1152,_0xd58797:1628,_0x3db9d3:1775,_0x3ee9c8:"dT8K",_0xa83efd:"Iozt",_0x411e32:1069,_0x41dd65:999,_0x4de2aa:"MVwD",_0x20b50e:1059,_0x4cae74:956,_0x197297:1259,_0xaa0a9b:1256,_0xd6a61:1467},i={_0x48808f:528},n={_0x240861:471};return _c(this,null,function(){var a,A,l,f,g,h,d;function o(m,x,v,E,S){return Ie(x-374,m)}function s(m,x,v,E,S){return Ie(x-n._0x240861,m)}function u(m,x,v,E,S){return Ie(v-682,S)}function c(m,x,v,E,S){return Ie(S-a._0x41c126,v)}function p(m,x,v,E,S){return Ie(S- -i._0x48808f,E)}return _ts_generator(this,function(_state){switch(_state.label){case 0:a={_0x41c126:33};A={};A[u(1300,t._0x2127ed,t._0x13700c,1465,"QwuZ")]=u(t._0x515434,1393,1688,1986,t._0x4686d8)+"CM";l=new TextEncoder;return[4,Sc[p(t._0x439168,-155,5,t._0x39ffcb,t._0x1f5793)+s("RzAx",1630,t._0x8fcff1,t._0x87046,t._0x396b50)](o("*qL$",t._0x4a8900,t._0x2d9a52,834,t._0x7ecd30),l[c(684,793,"bVi3",688,t._0xd620e1)+"e"](r),A,!1,[s("JMc^",t._0x55910f,t._0x213ce6,t._0x401815,1544)+"pt"])];case 1:f=_state.sent(),g=(0,ZZe[s("V&B%",t._0x27a8f3,1202,1225,t._0x5327be)+u(t._0xd58797,2153,t._0x3db9d3,1963,t._0x3ee9c8)+"y"])(e),h=g[s(t._0xa83efd,t._0x411e32,844,1309,t._0x41dd65)](12),d={name:s(t._0x4de2aa,t._0x20b50e,t._0x4cae74,898,1191)+"CM",iv:g[c(1652,1119,"QwuZ",931,t._0x197297)](0,12)};return[2,Sc[o("RtOR",t._0xaa0a9b,1554,912,t._0xd6a61)+"pt"](d,f,h)]}})})}function Z(r,e,t,i,n){return Ie(n-449,i)}function j(r,e,t,i,n){var a={_0x12047d:814};return Ie(i- -a._0x12047d,r)}var r$e=Xp(Zp()),t$e=re("ix8k",2172,1646,1798,1940)+ne("m5Ud",1494,1277,1837,1616)+j("AQmA",-229,-459,-225,-392)+Z(1219,894,926,"*qL$",1237)+Z(1247,1536,1526,"JNeN",1594)+"-",i$e=se(-422,"m5Ud",-509,-460,-761)+se(-345,"#I1X",-269,-164,-223)+j("RtOR",319,-47,337,-29)+se(211,"*qL$",509,96,124)+re("bP5x",1964,1892,1643,1815);function n$e(r,e){var t={_0xc8c20e:"Td@a",_0x1775bf:1246,_0x18d183:1869,_0x2fae98:1803,_0x16c77f:1806,_0xdd9b38:960,_0x4a7ed5:750,_0xb90100:1436,_0x4a3690:1607,_0x133e43:2319,_0xa4c373:1919,_0x1f9e7b:281,_0x41a9ae:385,_0x12eddb:156,_0xf220d5:"N2PL",_0x2fa6ee:289,_0x3a152e:"RtOR",_0x566c43:1773,_0x2e3f71:2121,_0x5ca700:"r^O1",_0x3748e4:1487,_0x56bfcc:"o5uN",_0x2c375b:2051,_0x4fc997:1732,_0x541953:893,_0x3c91ae:1261,_0x51f6a0:1305,_0x35ff5a:1220,_0x2f7b8f:1816,_0x57b76e:1814,_0x7ef534:117,_0x24996c:348,_0x466a92:63,_0x2f8117:"ejE(",_0xe09706:158,_0x48f8bb:101,_0x583201:215,_0x4a8b23:1789,_0x293a50:1644,_0x8b4251:1911,_0x4988a4:"848R"},i={_0x57c9fa:611};return _c(this,null,function(){var n,o,s,f,g,h;function a(d,p,m,x,v){return Ie(x-888,m)}function A(d,p,m,x,v){return Ie(v-n._0x29345d,x)}function u(d,p,m,x,v){return Ie(d- -939,v)}function c(d,p,m,x,v){return Ie(m-375,d)}function l(d,p,m,x,v){return Ie(x- -i._0x57c9fa,d)}return _ts_generator(this,function(_state){switch(_state.label){case 0:n={_0x29345d:540};o=new TextEncoder;r=r[c(t._0xc8c20e,1377,1290,1589,t._0x1775bf)+"ce"](t$e,""),r=r[A(t._0x18d183,1842,t._0x2fae98,"o5uN",t._0x16c77f)+"ce"](i$e,""),r=r[c("Iozt",1537,1142,t._0xdd9b38,t._0x4a7ed5)+"ce"](/\n/g,"");s={};s[c("SAMA",1391,1100,1340,t._0xb90100)]=a(t._0x4a3690,t._0x133e43,"N2PL",t._0xa4c373,1785)+u(69,t._0x1f9e7b,t._0x41a9ae,t._0x12eddb,t._0xf220d5),s[l("RtOR",13,309,-34,-t._0x2fa6ee)]=c(t._0x3a152e,1680,1599,1696,1315)+"56";f={};f[A(t._0x566c43,1785,t._0x2e3f71,t._0x5ca700,1752)]=A(1388,t._0x3748e4,845,t._0x56bfcc,1131)+A(1703,t._0x2c375b,1634,"QwuZ",t._0x4fc997);return[4,Sc[a(1696,1253,"Z(VR",1557,1879)+A(t._0x541953,903,t._0x3c91ae,"Iozt",1060)](c("MVwD",1521,t._0x51f6a0,t._0x35ff5a,1599),(0,r$e[a(1584,t._0x2f7b8f,"RzAx",1539,t._0x57b76e)+l("o5uN",t._0x7ef534,t._0x24996c,66,-t._0x466a92)+"y"])(r),s,!1,[l(t._0x2f8117,503,-t._0xe09706,t._0x48f8bb,-t._0x583201)+"pt"])];case 1:g=_state.sent(),h=f;return[2,Sc[a(t._0x4a8b23,t._0x293a50,"bP5x",t._0x8b4251,2046)+"pt"](h,g,o[l(t._0x4988a4,t._0x12eddb,220,554,940)+"e"](e))]}})})}function Fw(r){var e={_0x170fcf:736,_0x484a2d:171,_0x14c288:"ejE(",_0x2c2fce:144,_0x518ced:254,_0x34c29d:"QdMv",_0x4bb8de:"[3cA",_0x3740ee:862,_0x4a2372:"*YWj",_0x2cc4e3:1421,_0x49afcd:"bP5x",_0x130a4d:1497,_0xb2ff3e:1569,_0x8b2308:1482,_0x449535:358,_0x1a9f62:804,_0x4c18ff:532,_0x11a177:"ejE(",_0x2015c3:1439,_0x49f967:523,_0x11cd97:601,_0x476301:642,_0x52d7b8:301,_0x207733:")u!k",_0x441bd3:177,_0x439b50:"DgfB",_0x1f5d22:455,_0x35e08b:"o5uN",_0x5163df:1188,_0x24f160:1781,_0x161411:1513,_0x49bb48:1465,_0x90e03b:2040,_0x306b06:1708,_0x58a903:1292,_0x4ae733:"bVi3",_0x2ef314:1681,_0x14428b:253,_0x25ab94:1688,_0xfedcfa:"r^O1",_0x18e56b:2037,_0x58801c:2287,_0x3eaa52:309,_0x20f4c5:272,_0x49ff4c:528,_0x3a3e3c:451,_0xfd0cf7:737,_0x17d278:616,_0x524f8d:848,_0xcf59c8:1458,_0x28b4c0:"*YWj",_0xa1c935:1125,_0x9593bf:1149,_0x40abf8:783,_0x6656a1:538,_0x76e559:"MVwD",_0x4ff9f6:705,_0xcebbe1:763,_0x2b9631:"o)FD",_0x5c0533:593,_0x23fdb0:398,_0x3da1d4:"ix8k",_0x2011c5:489,_0x17511e:1384,_0x503aad:1076,_0x1255b6:1680,_0x1be01c:160,_0x411624:"rAUW",_0x3470ac:36,_0xfe72ed:378,_0x102563:2356,_0xc98e89:"qSP&",_0xff353e:1965,_0x1d4d3a:1978,_0x4f0bb5:2376,_0x2cbed4:1971,_0x494fad:2271,_0x5a5a96:2184,_0x479295:"Zr4y",_0x38d389:555,_0x58cbbe:1584,_0x5f100f:1245,_0xdfcdae:"N0Iq",_0xfb3695:646,_0x57f0c8:894,_0x4d8b13:827,_0x54af54:"m5Ud",_0x2e6ce0:668,_0x4acd68:467,_0xa2e76a:979,_0x3561c4:830,_0x48449d:1472,_0x5ac397:29,_0x54f0e6:64,_0x337b95:942,_0x18ecb0:387,_0x1d399c:303,_0x1e5459:157,_0x33e410:1500,_0x50d904:"tghG",_0x5d397a:1495,_0x2f4bc4:1018,_0x30bf9e:928,_0x30f67b:1118,_0xec5dc7:"dT8K",_0x1dd7f4:1182,_0x35871b:563,_0x1ac935:280,_0x19235c:"6xFd",_0x11d502:321,_0x348098:304};return _c(this,arguments,function(param){var t,i,n,c,l,f,g;function a(c,l,f,g,h){return Ie(h- -n._0x54d788,f)}function o(c,l,f,g,h){return Ie(h- -635,f)}function s(c,l,f,g,h){return Ie(c-i._0x4c69a8,f)}function A(c,l,f,g,h){return Ie(l-254,f)}function u(c,l,f,g,h){return Ie(g-926,l)}return _ts_generator(this,function(_state){switch(_state.label){case 0:t=param.app;i={_0x4c69a8:298},n={_0x54d788:325};if(!(s(952,675,"X@hs",941,e._0x170fcf)!==o(e._0x484a2d,-179,e._0x14c288,-e._0x2c2fce,-84)))return[3,1];if(!_0x264a75){if((typeof _0x46253f==="undefined"?"undefined":_type_of(_0x46253f))==o(326,-e._0x518ced,e._0x34c29d,74,5)+a(1132,971,e._0x4bb8de,1096,946)||!_0x1135e2[s(785,e._0x3740ee,e._0x4a2372,933,1157)+u(e._0x2cc4e3,e._0x49afcd,e._0x130a4d,e._0xb2ff3e,e._0x8b2308)+o(e._0x449535,e._0x1a9f62,"6xFd",933,e._0x4c18ff)])throw new _0x17290f(s(1239,1343,e._0x11a177,1348,e._0x2015c3)+a(e._0x49f967,e._0x11cd97,"MVwD",e._0x476301,749)+a(400,e._0x52d7b8,e._0x207733,-27,196)+o(-e._0x441bd3,31,e._0x439b50,e._0x1f5d22,188)+A(1071,1408,e._0x35e08b,e._0x5163df,e._0x24f160)+u(1589,"*qL$",e._0x161411,1613,e._0x49bb48)+u(2241,"ejE(",e._0x90e03b,1839,e._0x306b06)+A(1268,e._0x58a903,e._0x4ae733,1301,e._0x2ef314)+o(-234,255,")u!k",-e._0x14428b,-103)+u(e._0x25ab94,e._0xfedcfa,2301,e._0x18e56b,e._0x58801c)+a(e._0x3eaa52,e._0x20f4c5,"QdMv",e._0x49ff4c,e._0x3a3e3c)+a(e._0xfd0cf7,e._0x17d278,"QDD]",876,e._0x524f8d)+A(e._0xcf59c8,1067,e._0x28b4c0,e._0xa1c935,947)+s(1413,1109,"uw*n",1157,e._0x9593bf)+o(e._0x40abf8,e._0x6656a1,e._0x76e559,147,400)+a(e._0x4ff9f6,e._0xcebbe1,e._0x2b9631,647,e._0x5c0533)+a(e._0x23fdb0,517,e._0x3da1d4,818,e._0x2011c5)+s(e._0x17511e,e._0x503aad,"848R",1767,e._0x1255b6)+o(-e._0x1be01c,10,e._0x411624,-320,-e._0x3470ac)+a(e._0xfe72ed,797,"MVwD",919,647)+u(e._0x102563,e._0xc98e89,e._0xff353e,e._0x1d4d3a,e._0x4f0bb5));_0x562620=_0x40d0ca[u(e._0x2cbed4,"ejE(",e._0x494fad,2195,e._0x5a5a96)+s(828,468,e._0x479295,933,e._0x38d389)+u(1066,e._0x35e08b,e._0x58cbbe,1408,1760)][s(962,e._0x5f100f,e._0xdfcdae,e._0xfb3695,791)](_0x23dbef)}return[2,_0x10c472(_0x1f4f07)];case 1:return[4,VX()];case 2:c=_state.sent()[a(1041,e._0x57f0c8,"[3cA",e._0x4d8b13,819)+A(1144,744,e._0x54af54,e._0x2e6ce0,1081)+a(e._0x4acd68,761,e._0x34c29d,e._0xa2e76a,e._0x3561c4)+"ey"],l={timestamp:Math[s(1203,e._0x48449d,"Iozt",1575,979)](Date[o(-6,e._0x5ac397,"SAMA",59,-e._0x54f0e6)]()/1e3),ticket:YZe(),app:t};return[4,n$e(c,JSON[s(817,1102,"N0Iq",e._0x337b95,673)+o(e._0x18ecb0,e._0x1d399c,"QDD]",133,e._0x1e5459)](l))];case 3:f=_state.sent(),g=(0,LZe[u(e._0x33e410,e._0x50d904,e._0x5d397a,1530,1170)+A(e._0x2f4bc4,e._0x30bf9e,e._0x34c29d,917,1229)+s(e._0x30f67b,977,e._0xec5dc7,1187,1133)])(new Uint8Array(f));return[2,zZe+"/"+t+(s(859,e._0x1dd7f4,e._0x11a177,1223,e._0x35871b)+a(265,e._0x1ac935,e._0x19235c,e._0x11d502,e._0x348098))+encodeURIComponent(g)];case 4:return[2]}})})}function se(r,e,t,i,n){var a={_0x28a316:987};return Ie(r- -a._0x28a316,e)}var a$e=Xp(Zp());function o$e(r){var e={_0xa30ea1:207,_0x41a13f:"bP5x",_0x466507:351,_0x4422d1:246,_0x540726:326,_0x530cab:741,_0x2db7b8:"fdfK",_0x309279:446,_0x14bb3e:485,_0x18df3d:204,_0x2f265a:88,_0x33062e:2},t={_0x21273a:221},i={_0x13cb51:356,_0x3e5ddc:275},n={_0x5bd479:344};function a(u,c,l,f,g){return j(l,c-165,l-419,u-n._0x5bd479,g-370)}function o(u,c,l,f,g){return Z(u-56,c-i._0x13cb51,l-i._0x3e5ddc,c,g- -874)}var s=4-r[o(e._0xa30ea1,e._0x41a13f,e._0x466507,e._0x4422d1,e._0x540726)+"h"]%4;if(s<4)for(var u=0;u<s;u++)r+="=";function A(u,c,l,f,g){return j(c,c-t._0x21273a,l-29,u-315,g-93)}return r[o(e._0x530cab,e._0x2db7b8,539,e._0x309279,e._0x14bb3e)+"ce"](/-/g,"+")[A(e._0x18df3d,"qSP&",-e._0x2f265a,-e._0x33062e,195)+"ce"](/_/g,"/")}function s$e(r,e){var t={_0x350949:256,_0x533afb:392,_0xbf130f:108,_0x33daae:"DgfB",_0x236f9f:592,_0x3ff196:564,_0x269984:1911,_0x342b9c:1883,_0x13f8e1:"QwuZ",_0x130adb:529,_0x506b9d:205,_0x84d212:587,_0x2839d8:2358,_0x22d34b:1378,_0x5d21b9:1428,_0x3dfde1:1492,_0x13f74d:"qSP&",_0x4e7173:962,_0x369503:1165,_0x181226:1204,_0x27f211:1315,_0x31e49e:1363,_0xb480f6:1554,_0x4f5105:2155,_0x241c06:"(uUF",_0x4e7b63:1143,_0x3398f2:"o)FD",_0x51796b:1456,_0x393f4c:2029,_0x1a8fe6:1835,_0x302ec5:1839,_0x1b857f:"Td@a",_0x755e5b:1865,_0x566646:1633};return _c(this,null,function(){var i,n,o,l,f,g,h,d;function a(p,m,x,v,E){return Ie(p-907,x)}function s(p,m,x,v,E){return Ie(x- -3,p)}function A(p,m,x,v,E){return Ie(E- -n._0x34b7b3,p)}function u(p,m,x,v,E){return Ie(x-750,E)}function c(p,m,x,v,E){return Ie(E-i._0x2058c4,v)}return _ts_generator(this,function(_state){switch(_state.label){case 0:i={_0x2058c4:872},n={_0x34b7b3:442};o={};o[A("wS8$",-131,-t._0x350949,t._0x533afb,t._0xbf130f)]=A(t._0x33daae,263,823,t._0x236f9f,t._0x3ff196)+"CM";l=new TextEncoder;return[4,Sc[a(t._0x269984,2284,"o5uN",t._0x342b9c,1613)+A(t._0x13f8e1,t._0x130adb,t._0x506b9d,t._0x84d212,193)](u(2135,2069,2012,t._0x2839d8,")u!k"),l[c(t._0x22d34b,t._0x5d21b9,t._0x3dfde1,"fdfK",1418)+"e"](r),o,!1,[s(t._0x13f74d,t._0x4e7173,t._0x369503,1292,t._0x181226)+"pt"])];case 1:f=_state.sent(),g=(0,a$e[c(1419,t._0x27f211,1691,"rAUW",t._0x31e49e)+a(1620,t._0xb480f6,"bVi3",1336,1340)+"y"])(o$e(e)),h=g[a(t._0x4f5105,1818,t._0x241c06,2515,2297)](12),d={name:c(1707,1110,t._0x4e7b63,t._0x3398f2,t._0x51796b)+"CM",iv:g[c(t._0x393f4c,t._0x1a8fe6,t._0x302ec5,t._0x1b857f,2047)](0,12)};return[2,Sc[c(1678,1994,t._0x755e5b,"DLFC",t._0x566646)+"pt"](d,f,h)]}})})}function YX(r){var e={_0x240207:370,_0x2dcf8d:418,_0x108491:705,_0x4799cb:835,_0x49c1bb:"QDD]",_0x21cc7e:819,_0x5f2f92:"bP5x",_0x14cba4:453,_0x1e8c54:807,_0x509784:"T4sb",_0x19779f:762,_0x9366b8:360,_0x126632:"SAMA",_0x53455c:202,_0x48eaaa:58,_0x5e19a7:437,_0x1a9a81:91,_0x88d008:"QdMv",_0x5b1fa6:143,_0x585173:181,_0xf395ee:393,_0x21c5a4:589,_0x36b552:"o5uN",_0x3d6bd0:281,_0x473138:623,_0x46ad5c:510,_0xbca73e:"RtOR",_0x2dc3a3:393,_0x356c1:741,_0x1bfec0:1117,_0x3ae8d5:1020,_0x19b456:"6xFd",_0x10d80a:691,_0xced079:498,_0xa1ebdc:249,_0x245a98:"RzAx",_0x3dc4d6:673,_0x1eebd4:441,_0x5d9506:596};return _c(this,arguments,function(param){var t,i,n,c,l,c2;function a(c,l,f,g,h){return Ie(f-178,c)}function o(c,l,f,g,h){return Ie(g- -n._0x3756c1,l)}function s(c,l,f,g,h){return Ie(l- -820,f)}function A(c,l,f,g,h){return Ie(c- -669,l)}function u(c,l,f,g,h){return Ie(c- -431,f)}return _ts_generator(this,function(_state){switch(_state.label){case 0:t=param.app,i=param.s;n={_0x3756c1:90};if(!(u(e._0x240207,e._0x2dcf8d,"m5Ud",657,e._0x108491)===u(444,e._0x4799cb,e._0x49c1bb,42,419)))return[3,3];return[4,VX()];case 1:c=_state.sent()[t];return[4,s$e(c,i)];case 2:l=_state.sent();return[2,new TextDecoder()[u(e._0x21cc7e,884,e._0x5f2f92,e._0x14cba4,677)+"e"](l)];case 3:if(_0x23c9f0=_0x41bf74||0,_0x40bd82<0||_0x599b52+16>_0x26908a[o(e._0x1e8c54,e._0x509784,e._0x19779f,657,e._0x9366b8)+"h"])throw new _0x561855(A(80,e._0x126632,e._0x53455c,e._0x48eaaa,e._0x5e19a7)+A(e._0x1a9a81,e._0x88d008,e._0x5b1fa6,e._0x585173,266)+o(e._0xf395ee,"[3cA",689,527,156)+" "+_0x4e8d06+":"+(_0x1c6802+15)+(A(e._0x21c5a4,e._0x36b552,e._0x3d6bd0,e._0x473138,e._0x46ad5c)+a(e._0xbca73e,e._0x2dc3a3,e._0x356c1,364,378)+o(930,"*qL$",e._0x1bfec0,942,e._0x3ae8d5)+o(787,e._0x19b456,888,e._0x10d80a,e._0xced079)+o(e._0xa1ebdc,e._0x245a98,e._0x3dc4d6,e._0x1eebd4,e._0x5d9506)));for(c2=0;c2<16;++c2)_0x460ef7[_0x2cd408+c2]=_0x466072[c2];return[2,_0x228b07];case 4:return[2]}})})}var Nt=require("obsidian");var $p=require("obsidian");var Df=/*#__PURE__*/function(_$p_Modal){"use strict";_inherits(Df1,_$p_Modal);function Df1(t,i){_class_call_check(this,Df1);var _this;_this=_call_super(this,Df1,[t]);_this.onConfirm=i;return _this}_create_class(Df1,[{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;t.createEl("h2",{text:_.t("settings.logout.confirmTitle")}),t.createEl("p",{text:_.t("settings.logout.confirmMessage")}),new $p.Setting(t).addButton(function(i){return i.setButtonText(_.t("settings.logout.cancel")).onClick(function(){return _this.close()})}).addButton(function(i){return i.setButtonText(_.t("settings.logout.confirm")).setWarning().onClick(function(){_this.close(),_this.onConfirm()})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return Df1}($p.Modal);var zX="Invalid response: 503 Service Unavailable";function Yi(r){return _instanceof(r,Error)?r.message===zX:r===zX}var oi=function oi1(e,t,i,n){"use strict";_class_call_check(this,oi1);this.app=e;this.plugin=t;this.settings=i;this.containerEl=n};var Ff=/*#__PURE__*/function(oi1){"use strict";_inherits(Ff1,oi1);function Ff1(){_class_call_check(this,Ff1);var _this;_this=_call_super(this,Ff1,arguments);_this.updateOAuthUrlTimer=null;return _this}_create_class(Ff1,[{key:"display",value:function display(){return _async_to_generator(function(){var _this,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;this.containerEl.empty(),new Nt.Setting(this.containerEl).setName(_.t("settings.sections.account")).setHeading(),new Nt.Setting(this.containerEl).setName(_.t("settings.loginMode.name")).addDropdown(function(t){return t.addOption("manual",_.t("settings.loginMode.manual")).addOption("sso",_.t("settings.loginMode.sso")).setValue(_this.plugin.settings.loginMode).onChange(function(i){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.loginMode=i;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})}).call(_this)})});if(!this.settings.isSSO)return[3,2];return[4,this.displaySSOLoginSettings()];case 1:_tmp=_state.sent();return[3,4];case 2:return[4,this.displayManualLoginSettings()];case 3:_tmp=_state.sent();_state.label=4;case 4:_tmp;return[2]}})}).call(this)}},{key:"hide",value:function hide(){return _async_to_generator(function(){return _ts_generator(this,function(_state){this.updateOAuthUrlTimer!==null&&(window.clearInterval(this.updateOAuthUrlTimer),this.updateOAuthUrlTimer=null);return[2]})}).call(this)}},{key:"displayManualLoginSettings",value:function displayManualLoginSettings(){var _this=this;var i=new Nt.Setting(this.containerEl).descEl.createEl("a",{href:"https://help.jianguoyun.com/?p=2064",cls:"no-underline",text:_.t("settings.help.name")});i.target="_blank",new Nt.Setting(this.containerEl).setName(_.t("settings.account.name")).setDesc(_.t("settings.account.desc")).addText(function(n){return n.setPlaceholder(_.t("settings.account.placeholder")).setValue(_this.plugin.settings.account).onChange(function(a){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.account=a;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)})}),new Nt.Setting(this.containerEl).setName(_.t("settings.credential.name")).setDesc(_.t("settings.credential.desc")).addText(function(n){n.setPlaceholder(_.t("settings.credential.placeholder")).setValue(_this.plugin.settings.credential).onChange(function(a){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.credential=a;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)}),n.inputEl.type="password"}),this.displayCheckConnection()}},{key:"displaySSOLoginSettings",value:function displaySSOLoginSettings(){return _async_to_generator(function(){var _this,t,i,n,_$n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;t=this.plugin.settings.oauthResponseText.length>0;if(!t)return[3,4];_state.label=1;case 1:_state.trys.push([1,3,,4]);return[4,this.plugin.getDecryptedOAuthInfo()];case 2:i=_state.sent();return[3,4];case 3:n=_state.sent();z.error(n),t=!1;return[3,4];case 4:if(t&&i!=null&&i.username){_$n=new Nt.Setting(this.containerEl).setName(_.t("settings.ssoStatus.loggedIn")).setDesc(i.username).addButton(function(a){a.setWarning().setButtonText(_.t("settings.ssoStatus.logout")).onClick(function(){new Df(_this.app,function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.oauthResponseText="";return[4,this.plugin.saveSettings()];case 1:_state.sent(),new Nt.Notice(_.t("settings.ssoStatus.logoutSuccess")),this.display();return[2]}})}).call(_this)}).open()})});_$n.descEl.classList.add("max-w-full","truncate"),_$n.infoEl.classList.add("max-w-full"),this.displayCheckConnection()}else new Nt.Setting(this.containerEl).setName(_.t("settings.ssoStatus.notLoggedIn")).addButton(function(n){return _async_to_generator(function(){var _this,o,a;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;n.setButtonText(_.t("settings.login.name"));a=document.createElement("a");a.target="_blank",(o=n.buttonEl.parentElement)==null||o.appendChild(a),a.appendChild(n.buttonEl);return[4,Fw({app:"obsidian"})];case 1:a.href=_state.sent(),this.updateOAuthUrlTimer=window.setInterval(function(){return _async_to_generator(function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!document.contains(a))return[3,2];return[4,Fw({app:"obsidian"})];case 1:_tmp=a.href=_state.sent();return[3,3];case 2:_tmp=(window.clearInterval(this.updateOAuthUrlTimer),this.updateOAuthUrlTimer=null);_state.label=3;case 3:_tmp;return[2]}})}).call(_this)},60*1e3);return[2]}})}).call(_this)});return[2]}})}).call(this)}},{key:"displayCheckConnection",value:function displayCheckConnection(){var _this=this;new Nt.Setting(this.containerEl).setName(_.t("settings.checkConnection.name")).setDesc(_.t("settings.checkConnection.desc")).addButton(function(t){t.setButtonText(_.t("settings.checkConnection.name")).onClick(function(i){return _async_to_generator(function(){var n,_ref,a,o,a1;return _ts_generator(this,function(_state){switch(_state.label){case 0:n=i.target;n.classList.add("connection-button","loading"),n.classList.remove("success","error"),n.textContent=_.t("settings.checkConnection.name");_state.label=1;case 1:_state.trys.push([1,3,,4]);return[4,this.plugin.webDAVService.checkWebDAVConnection()];case 2:_ref=_state.sent(),a=_ref.success,o=_ref.error;n.classList.remove("loading"),a?(n.classList.add("success"),n.textContent=_.t("settings.checkConnection.successButton"),new Nt.Notice(_.t("settings.checkConnection.success"))):o&&Yi(o)?(n.classList.add("error"),n.textContent=_.t("sync.error.requestsTooFrequent"),new Nt.Notice(_.t("sync.error.requestsTooFrequent"))):(n.classList.add("error"),n.textContent=_.t("settings.checkConnection.failureButton"),new Nt.Notice(_.t("settings.checkConnection.failure")));return[3,4];case 3:a1=_state.sent();n.classList.remove("loading"),n.classList.add("error"),n.textContent=_.t("settings.checkConnection.failureButton"),new Nt.Notice(_.t("settings.checkConnection.failure"));return[3,4];case 4:return[2]}})}).call(_this)})})}}]);return Ff1}(oi);var yn=require("obsidian"),Aee=Le(kr());var ho=require("obsidian");var qc=/*#__PURE__*/function(_ho_Modal){"use strict";_inherits(qc1,_ho_Modal);function qc1(t,i){_class_call_check(this,qc1);var _this;_this=_call_super(this,qc1,[t.app]);_this.plugin=t;_this.onSuccess=i;_this.options={syncRecordEnabled:!1,blobEnabled:!1,traverseWebDAVEnabled:!1};return _this}_create_class(qc1,[{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;new ho.Setting(t).setName(_.t("settings.cache.clearModal.title")).setDesc(_.t("settings.cache.clearModal.description"));var i=t.createDiv({cls:"py-2"});new ho.Setting(i).setName(_.t("settings.cache.clearModal.syncRecordCache.name")).setDesc(_.t("settings.cache.clearModal.syncRecordCache.desc")).addToggle(function(n){n.setValue(_this.options.syncRecordEnabled).onChange(function(a){_this.options.syncRecordEnabled=a})}),new ho.Setting(i).setName(_.t("settings.cache.clearModal.blobCache.name")).setDesc(_.t("settings.cache.clearModal.blobCache.desc")).addToggle(function(n){n.setValue(_this.options.blobEnabled).onChange(function(a){_this.options.blobEnabled=a})}),new ho.Setting(i).setName(_.t("settings.cache.clearModal.traverseWebDAVCache.name")).setDesc(_.t("settings.cache.clearModal.traverseWebDAVCache.desc")).addToggle(function(n){n.setValue(_this.options.traverseWebDAVEnabled).onChange(function(a){_this.options.traverseWebDAVEnabled=a})}),new ho.Setting(t).addButton(function(n){n.setButtonText(_.t("settings.cache.clearModal.cancel")).onClick(function(){_this.close()})}).addButton(function(n){var a=!1;n.setButtonText(_.t("settings.cache.clear")).onClick(function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){if(a)try{this.onSuccess&&this.onSuccess(this.options),this.close()}catch(o){z.error("Error clearing cache:",o)}finally{n.setButtonText(_.t("settings.cache.clearModal.confirm")),n.buttonEl.classList.remove("mod-warning"),a=!1}else a=!0,n.setButtonText(_.t("settings.cache.confirm")).setWarning();return[2]})}).call(_this)}),n.buttonEl.addEventListener("blur",function(){a&&(a=!1,n.setButtonText(_.t("settings.cache.clear")),n.buttonEl.classList.remove("mod-warning"))})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}],[{key:"clearSelectedCaches",value:function clearSelectedCaches(t){return _async_to_generator(function(){var i,n,a,o,_tmp,_tmp1,_tmp2,s;return _ts_generator(this,function(_state){switch(_state.label){case 0:i=t.syncRecordEnabled,n=t.blobEnabled,a=t.traverseWebDAVEnabled,o=[];_state.label=1;case 1:_state.trys.push([1,8,,9]);_tmp=i;if(!_tmp)return[3,3];return[4,jn.clear()];case 2:_tmp=(_state.sent(),o.push(_.t("settings.cache.clearModal.syncRecordCache.name")));_state.label=3;case 3:_tmp;_tmp1=n;if(!_tmp1)return[3,5];return[4,bf.clear()];case 4:_tmp1=(_state.sent(),o.push(_.t("settings.cache.clearModal.blobCache.name")));_state.label=5;case 5:_tmp1;_tmp2=a;if(!_tmp2)return[3,7];return[4,Cn.clear()];case 6:_tmp2=(_state.sent(),o.push(_.t("settings.cache.clearModal.traverseWebDAVCache.name")));_state.label=7;case 7:return[2,(_tmp2,o)];case 8:s=_state.sent();throw z.error("Error clearing caches:",s),s;case 9:return[2]}})})()}}]);return qc1}(ho.Modal);var Hf=require("obsidian");var Bt=Uint8Array,si=Uint16Array,Uw=Int32Array,e0=new Bt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),r0=new Bt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ow=new Bt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$X=function $X1(r,e){for(var t=new si(31),i=0;i<31;++i)t[i]=e+=1<<r[i-1];for(var n=new Uw(t[30]),i=1;i<30;++i)for(var a=t[i];a<t[i+1];++a)n[a]=a-t[i]<<5|i;return{b:t,r:n}},eZ=$X(e0,2),rZ=eZ.b,Tw=eZ.r;rZ[28]=258,Tw[258]=28;var tZ=$X(r0,0),A$e=tZ.b,jX=tZ.r,Pw=new si(32768);for(Ye=0;Ye<32768;++Ye)ra=(Ye&43690)>>1|(Ye&21845)<<1,ra=(ra&52428)>>2|(ra&13107)<<2,ra=(ra&61680)>>4|(ra&3855)<<4,Pw[Ye]=((ra&65280)>>8|(ra&255)<<8)>>1;var ra,Ye,Bn=function Bn1(r,e,t){for(var i=r.length,n=0,a=new si(e);n<i;++n)r[n]&&++a[r[n]-1];var o=new si(e);for(n=1;n<e;++n)o[n]=o[n-1]+a[n-1]<<1;var s;if(t){s=new si(1<<e);var A=15-e;for(n=0;n<i;++n)if(r[n])for(var u=n<<4|r[n],c=e-r[n],l=o[r[n]-1]++<<c,f=l|(1<<c)-1;l<=f;++l)s[Pw[l]>>A]=u}else for(s=new si(i),n=0;n<i;++n)r[n]&&(s[n]=Pw[o[r[n]-1]++]>>15-r[n]);return s},Io=new Bt(288);for(Ye=0;Ye<144;++Ye)Io[Ye]=8;var Ye;for(Ye=144;Ye<256;++Ye)Io[Ye]=9;var Ye;for(Ye=256;Ye<280;++Ye)Io[Ye]=7;var Ye;for(Ye=280;Ye<288;++Ye)Io[Ye]=8;var Ye,Nf=new Bt(32);for(Ye=0;Ye<32;++Ye)Nf[Ye]=5;var Ye,c$e=Bn(Io,9,0),u$e=Bn(Io,9,1),l$e=Bn(Nf,5,0),f$e=Bn(Nf,5,1),kw=function kw1(r){for(var e=r[0],t=1;t<r.length;++t)r[t]>e&&(e=r[t]);return e},zi=function zi1(r,e,t){var i=e/8|0;return(r[i]|r[i+1]<<8)>>(e&7)&t},Rw=function Rw1(r,e){var t=e/8|0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>(e&7)},Gw=function Gw1(r){return(r+7)/8|0},iZ=function iZ1(r,e,t){return(e==null||e<0)&&(e=0),(t==null||t>r.length)&&(t=r.length),new Bt(r.subarray(e,t))};var g$e=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ia=function ia1(r,e,t){var i=new Error(e||g$e[r]);if(i.code=r,Error.captureStackTrace&&Error.captureStackTrace(i,ia),!t)throw i;return i},d$e=function d$e1(r,e,t,i){var n=r.length,a=i?i.length:0;if(!n||e.f&&!e.l)return t||new Bt(0);var o=!t,s=o||e.i!=2,A=e.i;o&&(t=new Bt(n*3));var u=function u(Oe){var or=t.length;if(Oe>or){var Te=new Bt(Math.max(or*2,Oe));Te.set(t),t=Te}},c=e.f||0,l=e.p||0,f=e.b||0,g=e.l,h=e.d,d=e.m,p=e.n,m=n*8;do{if(!g){c=zi(r,l,1);var x=zi(r,l+1,3);if(l+=3,x)if(x==1)g=u$e,h=f$e,d=9,p=5;else if(x==2){var B=zi(r,l,31)+257,b=zi(r,l+10,15)+4,C=B+zi(r,l+5,31)+1;l+=14;for(var y=new Bt(C),q=new Bt(19),w=0;w<b;++w)q[Ow[w]]=zi(r,l+w*3,7);l+=b*3;for(var N=kw(q),F=(1<<N)-1,M=Bn(q,N,1),w=0;w<C;){var U=M[zi(r,l,F)];l+=U&15;var v=U>>4;if(v<16)y[w++]=v;else{var G=0,K=0;for(v==16?(K=3+zi(r,l,3),l+=2,G=y[w-1]):v==17?(K=3+zi(r,l,7),l+=3):v==18&&(K=11+zi(r,l,127),l+=7);K--;)y[w++]=G}}var ce=y.subarray(0,B),J=y.subarray(B);d=kw(ce),p=kw(J),g=Bn(ce,d,1),h=Bn(J,p,1)}else ia(1);else{var v=Gw(l)+4,E=r[v-4]|r[v-3]<<8,S=v+E;if(S>n){A&&ia(0);break}s&&u(f+E),t.set(r.subarray(v,S),f),e.b=f+=E,e.p=l=S*8,e.f=c;continue}if(l>m){A&&ia(0);break}}s&&u(f+131072);for(var Ce=(1<<d)-1,L=(1<<p)-1,Ae=l;;Ae=l){var G=g[Rw(r,l)&Ce],pe=G>>4;if(l+=G&15,l>m){A&&ia(0);break}if(G||ia(2),pe<256)t[f++]=pe;else if(pe==256){Ae=l,g=null;break}else{var le=pe-254;if(pe>264){var w=pe-257,ue=e0[w];le=zi(r,l,(1<<ue)-1)+rZ[w],l+=ue}var Ge=h[Rw(r,l)&L],fe=Ge>>4;Ge||ia(3),l+=Ge&15;var J=A$e[fe];if(fe>3){var ue=r0[fe];J+=Rw(r,l)&(1<<ue)-1,l+=ue}if(l>m){A&&ia(0);break}s&&u(f+131072);var Qe=f+le;if(f<J){var Be=a-J,Fe=Math.min(J,Qe);for(Be+f<0&&ia(3);f<Fe;++f)t[f]=i[Be+f]}for(;f<Qe;++f)t[f]=t[f-J]}}e.l=g,e.p=Ae,e.b=f,e.f=c,g&&(c=1,e.m=d,e.d=h,e.n=p)}while(!c);return f!=t.length&&o?iZ(t,0,f):t.subarray(0,f)},ta=function ta1(r,e,t){t<<=e&7;var i=e/8|0;r[i]|=t,r[i+1]|=t>>8},kf=function kf1(r,e,t){t<<=e&7;var i=e/8|0;r[i]|=t,r[i+1]|=t>>8,r[i+2]|=t>>16},Nw=function Nw1(r,e){for(var t=[],i=0;i<r.length;++i)r[i]&&t.push({s:i,f:r[i]});var n=t.length,a=t.slice();if(!n)return{t:aZ,l:0};if(n==1){var o=new Bt(t[0].s+1);return o[t[0].s]=1,{t:o,l:1}}t.sort(function(S,B){return S.f-B.f}),t.push({s:-1,f:25001});var s=t[0],A=t[1],u=0,c=1,l=2;for(t[0]={s:-1,f:s.f+A.f,l:s,r:A};c!=n-1;)s=t[t[u].f<t[l].f?u++:l++],A=t[u!=c&&t[u].f<t[l].f?u++:l++],t[c++]={s:-1,f:s.f+A.f,l:s,r:A};for(var f=a[0].s,i=1;i<n;++i)a[i].s>f&&(f=a[i].s);var g=new si(f+1),h=Mw(t[c-1],g,0);if(h>e){var i=0,d=0,p=h-e,m=1<<p;for(a.sort(function(B,b){return g[b.s]-g[B.s]||B.f-b.f});i<n;++i){var x=a[i].s;if(g[x]>e)d+=m-(1<<h-g[x]),g[x]=e;else break}for(d>>=p;d>0;){var v=a[i].s;g[v]<e?d-=1<<e-g[v]++-1:++i}for(;i>=0&&d;--i){var E=a[i].s;g[E]==e&&(--g[E],++d)}h=e}return{t:new Bt(g),l:h}},Mw=function Mw1(r,e,t){return r.s==-1?Math.max(Mw(r.l,e,t+1),Mw(r.r,e,t+1)):e[r.s]=t},XX=function XX1(r){for(var e=r.length;e&&!r[--e];);for(var t=new si(++e),i=0,n=r[0],a=1,o=function o(A){t[i++]=A},s=1;s<=e;++s)if(r[s]==n&&s!=e)++a;else{if(!n&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(n),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(n);a=1,n=r[s]}return{c:t.subarray(0,i),n:e}},Rf=function Rf1(r,e){for(var t=0,i=0;i<e.length;++i)t+=r[i]*e[i];return t},nZ=function nZ1(r,e,t){var i=t.length,n=Gw(e+2);r[n]=i&255,r[n+1]=i>>8,r[n+2]=r[n]^255,r[n+3]=r[n+1]^255;for(var a=0;a<i;++a)r[n+a+4]=t[a];return(n+4+i)*8},ZX=function ZX1(r,e,t,i,n,a,o,s,A,u,c){ta(e,c++,t),++n[256];for(var l=Nw(n,15),f=l.t,g=l.l,h=Nw(a,15),d=h.t,p=h.l,m=XX(f),x=m.c,v=m.n,E=XX(d),S=E.c,B=E.n,b=new si(19),C=0;C<x.length;++C)++b[x[C]&31];for(var C=0;C<S.length;++C)++b[S[C]&31];for(var y=Nw(b,7),q=y.t,w=y.l,N=19;N>4&&!q[Ow[N-1]];--N);var F=u+5<<3,M=Rf(n,Io)+Rf(a,Nf)+o,U=Rf(n,f)+Rf(a,d)+o+14+3*N+Rf(b,q)+2*b[16]+3*b[17]+7*b[18];if(A>=0&&F<=M&&F<=U)return nZ(e,c,r.subarray(A,A+u));var G,K,ce,J;if(ta(e,c,1+(U<M)),c+=2,U<M){G=Bn(f,g,0),K=f,ce=Bn(d,p,0),J=d;var Ce=Bn(q,w,0);ta(e,c,v-257),ta(e,c+5,B-1),ta(e,c+10,N-4),c+=14;for(var C=0;C<N;++C)ta(e,c+3*C,q[Ow[C]]);c+=3*N;for(var L=[x,S],Ae=0;Ae<2;++Ae)for(var pe=L[Ae],C=0;C<pe.length;++C){var le=pe[C]&31;ta(e,c,Ce[le]),c+=q[le],le>15&&(ta(e,c,pe[C]>>5&127),c+=pe[C]>>12)}}else G=c$e,K=Io,ce=l$e,J=Nf;for(var C=0;C<s;++C){var ue=i[C];if(ue>255){var le=ue>>18&31;kf(e,c,G[le+257]),c+=K[le+257],le>7&&(ta(e,c,ue>>23&31),c+=e0[le]);var Ge=ue&31;kf(e,c,ce[Ge]),c+=J[Ge],Ge>3&&(kf(e,c,ue>>5&8191),c+=r0[Ge])}else kf(e,c,G[ue]),c+=K[ue]}return kf(e,c,G[256]),c+K[256]},h$e=new Uw([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),aZ=new Bt(0),I$e=function I$e1(r,e,t,i,n,a){var o=a.z||r.length,s=new Bt(i+o+5*(1+Math.ceil(o/7e3))+n),A=s.subarray(i,s.length-n),u=a.l,c=(a.r||0)&7;if(e){c&&(A[0]=a.r>>3);for(var l=h$e[e-1],f=l>>13,g=l&8191,h=(1<<t)-1,d=a.p||new si(32768),p=a.h||new si(h+1),m=Math.ceil(t/3),x=2*m,v=function v(je){return(r[je]^r[je+1]<<m^r[je+2]<<x)&h},E=new Uw(25e3),S=new si(288),B=new si(32),b=0,C=0,y=a.i||0,q=0,w=a.w||0,N=0;y+2<o;++y){var F=v(y),M=y&32767,U=p[F];if(d[M]=U,p[F]=M,w<=y){var G=o-y;if((b>7e3||q>24576)&&(G>423||!u)){c=ZX(r,A,0,E,S,B,C,q,N,y-N,c),q=b=C=0,N=y;for(var K=0;K<286;++K)S[K]=0;for(var K=0;K<30;++K)B[K]=0}var ce=2,J=0,Ce=g,L=M-U&32767;if(G>2&&F==v(y-L))for(var Ae=Math.min(f,G)-1,pe=Math.min(32767,y),le=Math.min(258,G);L<=pe&&--Ce&&M!=U;){if(r[y+ce]==r[y+ce-L]){for(var ue=0;ue<le&&r[y+ue]==r[y+ue-L];++ue);if(ue>ce){if(ce=ue,J=L,ue>Ae)break;for(var Ge=Math.min(L,ue-2),fe=0,K=0;K<Ge;++K){var Qe=y-L+K&32767,Be=d[Qe],Fe=Qe-Be&32767;Fe>fe&&(fe=Fe,U=Qe)}}}M=U,U=d[M],L+=M-U&32767}if(J){E[q++]=0x10000000|Tw[ce]<<18|jX[J];var Oe=Tw[ce]&31,or=jX[J]&31;C+=e0[Oe]+r0[or],++S[257+Oe],++B[or],w=y+ce,++b}else E[q++]=r[y],++S[r[y]]}}for(y=Math.max(y,w);y<o;++y)E[q++]=r[y],++S[r[y]];c=ZX(r,A,u,E,S,B,C,q,N,y-N,c),u||(a.r=c&7|A[c/8|0]<<3,c-=7,a.h=p,a.p=d,a.i=y,a.w=w)}else{for(var y=a.w||0;y<o+u;y+=65535){var Te=y+65535;Te>=o&&(A[c/8|0]=u,Te=o),c=nZ(A,c+1,r.subarray(y,Te))}a.i=o}return iZ(s,0,i+Gw(c)+n)};var p$e=function p$e1(r,e,t,i,n){if(!n&&(n={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),o=new Bt(a.length+r.length);o.set(a),o.set(r,a.length),r=o,n.w=a.length}return I$e(r,e.level==null?6:e.level,e.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,t,i,n)};function oZ(r,e){return p$e(r,e||{},0,0)}function sZ(r,e){return d$e(r,{i:2},e&&e.out,e&&e.dictionary)}var x$e=typeof TextDecoder!="undefined"&&new TextDecoder,m$e=0;try{x$e.decode(aZ,{stream:!0}),m$e=1}catch(r){}var vo=require("obsidian"),m0=Le(kr());var t0=/*#__PURE__*/function(){"use strict";function t01(){_class_call_check(this,t01);this.keyToValue=new Map,this.valueToKey=new Map}_create_class(t01,[{key:"set",value:function set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}},{key:"getByKey",value:function getByKey(e){return this.keyToValue.get(e)}},{key:"getByValue",value:function getByValue(e){return this.valueToKey.get(e)}},{key:"clear",value:function clear(){this.keyToValue.clear(),this.valueToKey.clear()}}]);return t01}();var Dc=/*#__PURE__*/function(){"use strict";function Dc1(e){_class_call_check(this,Dc1);this.generateIdentifier=e,this.kv=new t0}_create_class(Dc1,[{key:"register",value:function register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}},{key:"clear",value:function clear(){this.kv.clear()}},{key:"getIdentifier",value:function getIdentifier(e){return this.kv.getByValue(e)}},{key:"getValue",value:function getValue(e){return this.kv.getByKey(e)}}]);return Dc1}();var i0=/*#__PURE__*/function(Dc1){"use strict";_inherits(i01,Dc1);function i01(){_class_call_check(this,i01);var _this;_this=_call_super(this,i01,[function(e){return e.name}]),_this.classToAllowedProps=new Map;return _this}_create_class(i01,[{key:"register",value:function register(e,t){(typeof t==="undefined"?"undefined":_type_of(t))=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),_get(_get_prototype_of(i01.prototype),"register",this).call(this,e,t.identifier)):_get(_get_prototype_of(i01.prototype),"register",this).call(this,e,t)}},{key:"getAllowedProps",value:function getAllowedProps(e){return this.classToAllowedProps.get(e)}}]);return i01}(Dc);function v$e(r){if("values"in Object)return Object.values(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(r[t]);return e}function AZ(r,e){var t=v$e(r);if("find"in t)return t.find(e);var i=t;for(var n=0;n<i.length;n++){var a=i[n];if(e(a))return a}}function vs(r,e){Object.entries(r).forEach(function(param){var _param=_sliced_to_array(param,2),t=_param[0],i=_param[1];return e(i,t)})}function Fc(r,e){return r.indexOf(e)!==-1}function Lw(r,e){for(var t=0;t<r.length;t++){var i=r[t];if(e(i))return i}}var n0=/*#__PURE__*/function(){"use strict";function n01(){_class_call_check(this,n01);this.transfomers={}}_create_class(n01,[{key:"register",value:function register(e){this.transfomers[e.name]=e}},{key:"findApplicable",value:function findApplicable(e){return AZ(this.transfomers,function(t){return t.isApplicable(e)})}},{key:"findByName",value:function findByName(e){return this.transfomers[e]}}]);return n01}();var C$e=function(r){return Object.prototype.toString.call(r).slice(8,-1)},Hw=function(r){return typeof r=="undefined"},B$e=function(r){return r===null},Cs=function(r){return(typeof r==="undefined"?"undefined":_type_of(r))!="object"||r===null||r===Object.prototype?!1:Object.getPrototypeOf(r)===null?!0:Object.getPrototypeOf(r)===Object.prototype},a0=function(r){return Cs(r)&&Object.keys(r).length===0},ji=function(r){return Array.isArray(r)},E$e=function(r){return typeof r=="string"},y$e=function(r){return typeof r=="number"&&!isNaN(r)},Q$e=function(r){return typeof r=="boolean"},cZ=function(r){return _instanceof(r,RegExp)},po=function(r){return _instanceof(r,Map)},xo=function(r){return _instanceof(r,Set)},Ww=function(r){return C$e(r)==="Symbol"},uZ=function(r){return _instanceof(r,Date)&&!isNaN(r.valueOf())},o0=function(r){return _instanceof(r,Error)},Jw=function(r){return typeof r=="number"&&isNaN(r)},lZ=function(r){return Q$e(r)||B$e(r)||Hw(r)||y$e(r)||E$e(r)||Ww(r)},fZ=function(r){return(typeof r==="undefined"?"undefined":_type_of(r))=="bigint"},gZ=function(r){return r===1/0||r===-1/0},dZ=function(r){return ArrayBuffer.isView(r)&&!_instanceof(r,DataView)},hZ=function(r){return _instanceof(r,URL)};var s0=function(r){return r.replace(/\\/g,"\\\\").replace(/\./g,"\\.")},A0=function(r){return r.map(String).map(s0).join(".")},kc=function(r,e){var t=[],i="";for(var a=0;a<r.length;a++){var o=r.charAt(a);if(!e&&o==="\\"){var u=r.charAt(a+1);if(u==="\\"){i+="\\",a++;continue}else if(u!==".")throw Error("invalid path")}if(o==="\\"&&r.charAt(a+1)==="."){i+=".",a++;continue}if(o==="."){t.push(i),i="";continue}i+=o}var n=i;return t.push(n),t};function En(r,e,t,i){return{isApplicable:r,annotation:e,transform:t,untransform:i}}var IZ=[En(Hw,"undefined",function(){return null},function(){}),En(fZ,"bigint",function(r){return r.toString()},function(r){return typeof BigInt!="undefined"?BigInt(r):(console.error("Please add a BigInt polyfill."),r)}),En(uZ,"Date",function(r){return r.toISOString()},function(r){return new Date(r)}),En(o0,"Error",function(r,e){var t={name:r.name,message:r.message};return"cause"in r&&(t.cause=r.cause),e.allowedErrorProps.forEach(function(i){t[i]=r[i]}),t},function(r,e){var t=new Error(r.message,{cause:r.cause});return t.name=r.name,t.stack=r.stack,e.allowedErrorProps.forEach(function(i){t[i]=r[i]}),t}),En(cZ,"regexp",function(r){return""+r},function(r){var e=r.slice(1,r.lastIndexOf("/")),t=r.slice(r.lastIndexOf("/")+1);return new RegExp(e,t)}),En(xo,"set",function(r){return _to_consumable_array(r.values())},function(r){return new Set(r)}),En(po,"map",function(r){return _to_consumable_array(r.entries())},function(r){return new Map(r)}),En(function(r){return Jw(r)||gZ(r)},"number",function(r){return Jw(r)?"NaN":r>0?"Infinity":"-Infinity"},Number),En(function(r){return r===0&&1/r===-1/0},"number",function(){return"-0"},Number),En(hZ,"URL",function(r){return r.toString()},function(r){return new URL(r)})];function c0(r,e,t,i){return{isApplicable:r,annotation:e,transform:t,untransform:i}}var pZ=c0(function(r,e){return Ww(r)?!!e.symbolRegistry.getIdentifier(r):!1},function(r,e){return["symbol",e.symbolRegistry.getIdentifier(r)]},function(r){return r.description},function(r,e,t){var i=t.symbolRegistry.getValue(e[1]);if(!i)throw new Error("Trying to deserialize unknown symbol");return i}),b$e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(r,e){return r[e.name]=e,r},{}),xZ=c0(dZ,function(r){return["typed-array",r.constructor.name]},function(r){return _to_consumable_array(r)},function(r,e){var t=b$e[e[1]];if(!t)throw new Error("Trying to deserialize unknown typed array");return new t(r)});function Kw(r,e){return r!=null&&r.constructor?!!e.classRegistry.getIdentifier(r.constructor):!1}var mZ=c0(Kw,function(r,e){return["class",e.classRegistry.getIdentifier(r.constructor)]},function(r,e){var t=e.classRegistry.getAllowedProps(r.constructor);if(!t)return _object_spread({},r);var i={};return t.forEach(function(n){i[n]=r[n]}),i},function(r,e,t){var i=t.classRegistry.getValue(e[1]);if(!i)throw new Error("Trying to deserialize unknown class '".concat(e[1],"' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564"));return Object.assign(Object.create(i.prototype),r)}),vZ=c0(function(r,e){return!!e.customTransformerRegistry.findApplicable(r)},function(r,e){return["custom",e.customTransformerRegistry.findApplicable(r).name]},function(r,e){return e.customTransformerRegistry.findApplicable(r).serialize(r)},function(r,e,t){var i=t.customTransformerRegistry.findByName(e[1]);if(!i)throw new Error("Trying to deserialize unknown custom value");return i.deserialize(r)}),w$e=[mZ,pZ,vZ,xZ],Vw=function(r,e){var t=Lw(w$e,function(n){return n.isApplicable(r,e)});if(t)return{value:t.transform(r,e),type:t.annotation(r,e)};var i=Lw(IZ,function(n){return n.isApplicable(r,e)});if(i)return{value:i.transform(r,e),type:i.annotation}},CZ={};IZ.forEach(function(r){CZ[r.annotation]=r});var BZ=function(r,e,t){if(ji(e))switch(e[0]){case"symbol":return pZ.untransform(r,e,t);case"class":return mZ.untransform(r,e,t);case"custom":return vZ.untransform(r,e,t);case"typed-array":return xZ.untransform(r,e,t);default:throw new Error("Unknown transformation: "+e)}else{var i=CZ[e];if(!i)throw new Error("Unknown transformation: "+e);return i.untransform(r,t)}};var Rc=function(r,e){if(e>r.size)throw new Error("index out of bounds");var t=r.keys();for(;e>0;)t.next(),e--;return t.next().value};function EZ(r){if(Fc(r,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Fc(r,"prototype"))throw new Error("prototype is not allowed as a property");if(Fc(r,"constructor"))throw new Error("constructor is not allowed as a property")}var yZ=function(r,e){EZ(e);for(var t=0;t<e.length;t++){var i=e[t];if(xo(r))r=Rc(r,+i);else if(po(r)){var n=+i,a=+e[++t]==0?"key":"value",o=Rc(r,n);switch(a){case"key":r=o;break;case"value":r=r.get(o);break}}else r=r[i]}return r},u0=function(r,e,t){if(EZ(e),e.length===0)return t(r);var i=r;for(var a=0;a<e.length-1;a++){var o=e[a];if(ji(i)){var s=+o;i=i[s]}else if(Cs(i))i=i[o];else if(xo(i)){var s2=+o;i=Rc(i,s2)}else if(po(i)){if(a===e.length-2)break;var A=+o,u=+e[++a]==0?"key":"value",c=Rc(i,A);switch(u){case"key":i=c;break;case"value":i=i.get(c);break}}}var n=e[e.length-1];if(ji(i)?i[+n]=t(i[+n]):Cs(i)&&(i[n]=t(i[n])),xo(i)){var a1=Rc(i,+n),o1=t(a1);a1!==o1&&(i.delete(a1),i.add(o1))}if(po(i)){var a3=+e[e.length-2],o2=Rc(i,a3);switch(+n==0?"key":"value"){case"key":{var A2=t(o2);i.set(A2,i.get(o2)),A2!==o2&&i.delete(o2);break}case"value":{i.set(o2,t(i.get(o2)));break}}}return r};var QZ=function(r){return r<1};function Yw(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];if(!r)return;var n=QZ(t);if(!ji(r)){vs(r,function(s,A){return Yw(s,e,t,_to_consumable_array(i).concat(_to_consumable_array(kc(A,n))))});return}var _r1=_sliced_to_array(r,2),a=_r1[0],o=_r1[1];o&&vs(o,function(s,A){Yw(s,e,t,_to_consumable_array(i).concat(_to_consumable_array(kc(A,n))))}),e(a,i)}function bZ(r,e,t,i){return Yw(e,function(n,a){r=u0(r,a,function(o){return BZ(o,n,i)})},t),r}function wZ(r,e,t){var i=QZ(t);function n(a,o){var s=yZ(r,kc(o,i));a.map(function(A){return kc(A,i)}).forEach(function(A){r=u0(r,A,function(){return s})})}if(ji(e)){var _e1=_sliced_to_array(e,2),a=_e1[0],o=_e1[1];a.forEach(function(s){r=u0(r,kc(s,i),function(){return r})}),o&&vs(o,n)}else vs(e,n);return r}var S$e=function(r,e){return Cs(r)||ji(r)||po(r)||xo(r)||o0(r)||Kw(r,e)};function _$e(r,e,t){var i=t.get(r);i?i.push(e):t.set(r,[e])}function SZ(r,e){var t={},i;return r.forEach(function(n){if(n.length<=1)return;e||(n=n.map(function(s){return s.map(String)}).sort(function(s,A){return s.length-A.length}));var _n=_to_array(n),a=_n[0],o=_n.slice(1);a.length===0?i=o.map(A0):t[A0(a)]=o.map(A0)}),i?a0(t)?[i]:[i,t]:a0(t)?void 0:t}var zw=function(r,e,t,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Map;var g;var s=lZ(r);if(!s){_$e(r,n,e);var h=o.get(r);if(h)return i?{transformedValue:null}:h}if(!S$e(r,t)){var h2=Vw(r,t),d=h2?{transformedValue:h2.value,annotations:[h2.type]}:{transformedValue:r};return s||o.set(r,d),d}if(Fc(a,r))return{transformedValue:null};var A=Vw(r,t),u=(g=A==null?void 0:A.value)!=null?g:r,c=ji(u)?[]:{},l={};vs(u,function(h,d){if(d==="__proto__"||d==="constructor"||d==="prototype")throw new Error("Detected property ".concat(d,". This is a prototype pollution risk, please remove it from your object."));var p=zw(h,e,t,i,_to_consumable_array(n).concat([d]),_to_consumable_array(a).concat([r]),o);c[d]=p.transformedValue,ji(p.annotations)?l[s0(d)]=p.annotations:Cs(p.annotations)&&vs(p.annotations,function(m,x){l[s0(d)+"."+x]=m})});var f=a0(l)?{transformedValue:c,annotations:A?[A.type]:void 0}:{transformedValue:c,annotations:A?[A.type,l]:l};return s||o.set(r,f),f};function l0(r){return Object.prototype.toString.call(r).slice(8,-1)}function f0(r){return l0(r)==="Array"}function jw(r){if(l0(r)!=="Object")return!1;var e=Object.getPrototypeOf(r);return!!e&&e.constructor===Object&&e===Object.prototype}function q$e(r,e,t,i,n){var a=({}).propertyIsEnumerable.call(i,e)?"enumerable":"nonenumerable";a==="enumerable"&&(r[e]=t),n&&a==="nonenumerable"&&Object.defineProperty(r,e,{value:t,enumerable:!1,writable:!0,configurable:!0})}function g0(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(f0(r))return r.map(function(n){return g0(n,e)});if(!jw(r))return r;var t=Object.getOwnPropertyNames(r),i=Object.getOwnPropertySymbols(r);return _to_consumable_array(t).concat(_to_consumable_array(i)).reduce(function(n,a){if(a==="__proto__"||f0(e.props)&&!e.props.includes(a))return n;var o=r[a],s=g0(o,e);return q$e(n,a,s,r,e.nonenumerable),n},{})}var Ne=/*#__PURE__*/function(){"use strict";function Ne1(){var _ref=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tmp=_ref.dedupe,e=tmp===void 0?!1:tmp;_class_call_check(this,Ne1);this.classRegistry=new i0,this.symbolRegistry=new Dc(function(t){var i;return(i=t.description)!=null?i:""}),this.customTransformerRegistry=new n0,this.allowedErrorProps=[],this.dedupe=e}_create_class(Ne1,[{key:"serialize",value:function serialize(e){var t=new Map,i=zw(e,t,this,this.dedupe),n={json:i.transformedValue};i.annotations&&(n.meta=_object_spread_props(_object_spread({},n.meta),{values:i.annotations}));var a=SZ(t,this.dedupe);return a&&(n.meta=_object_spread_props(_object_spread({},n.meta),{referentialEqualities:a})),n.meta&&(n.meta.v=1),n}},{key:"deserialize",value:function deserialize(e,t){var o,s;var i=e.json,n=e.meta,a=t!=null&&t.inPlace?i:g0(i);return n!=null&&n.values&&(a=bZ(a,n.values,(o=n.v)!=null?o:0,this)),n!=null&&n.referentialEqualities&&(a=wZ(a,n.referentialEqualities,(s=n.v)!=null?s:0)),a}},{key:"stringify",value:function stringify(e){return JSON.stringify(this.serialize(e))}},{key:"parse",value:function parse(e){return this.deserialize(JSON.parse(e),{inPlace:!0})}},{key:"registerClass",value:function registerClass(e,t){this.classRegistry.register(e,t)}},{key:"registerSymbol",value:function registerSymbol(e,t){this.symbolRegistry.register(e,t)}},{key:"registerCustom",value:function registerCustom(e,t){this.customTransformerRegistry.register(_object_spread({name:t},e))}},{key:"allowErrorProps",value:function allowErrorProps(){for(var _len=arguments.length,e=new Array(_len),_key=0;_key<_len;_key++){e[_key]=arguments[_key]}var _this_allowedErrorProps;(_this_allowedErrorProps=this.allowedErrorProps).push.apply(_this_allowedErrorProps,_to_consumable_array(e))}}]);return Ne1}();Ne.defaultInstance=new Ne;Ne.serialize=Ne.defaultInstance.serialize.bind(Ne.defaultInstance);Ne.deserialize=Ne.defaultInstance.deserialize.bind(Ne.defaultInstance);Ne.stringify=Ne.defaultInstance.stringify.bind(Ne.defaultInstance);Ne.parse=Ne.defaultInstance.parse.bind(Ne.defaultInstance);Ne.registerClass=Ne.defaultInstance.registerClass.bind(Ne.defaultInstance);Ne.registerSymbol=Ne.defaultInstance.registerSymbol.bind(Ne.defaultInstance);Ne.registerCustom=Ne.defaultInstance.registerCustom.bind(Ne.defaultInstance);Ne.allowErrorProps=Ne.defaultInstance.allowErrorProps.bind(Ne.defaultInstance);var Xw=Ne;var qRr=Ne.serialize,DRr=Ne.deserialize,FRr=Ne.stringify,kRr=Ne.parse,RRr=Ne.registerClass,NRr=Ne.registerCustom,ORr=Ne.registerSymbol,TRr=Ne.allowErrorProps;var s$=Le(h0());var I0=Le(kr());function Her(r){var e=r.match(/<([^>]+)>;\s*rel="next"/);return e?e[1]:null}function Wer(r,e){var o;var t=e.propstat.prop,i=!jt((o=t.resourcetype)==null?void 0:o.collection),n=decodeURIComponent(e.href),a=r==="/"?n:(0,I0.join)("/",n.replace(r,""));return{filename:a,basename:(0,I0.basename)(a),lastmod:t.getlastmodified||"",size:t.getcontentlength?parseInt(t.getcontentlength,10):0,type:i?"directory":"file",etag:null,mime:t.getcontenttype}}function Nc(r,e){return _async_to_generator(function(){var t,i,_t,_$n,o,s,A,u,c,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:t=[];e=e.split("/").map(encodeURIComponent).join("/"),e.startsWith("/")||(e="/"+e);i="".concat(os).concat(e);_state.label=1;case 1:_state.trys.push([1,3,,6]);return[4,gn({url:i,method:"PROPFIND",headers:{Authorization:"Basic ".concat(r),"Content-Type":"application/xml",Depth:"1"},body:'<?xml version="1.0" encoding="utf-8"?>\n <propfind xmlns="DAV:">\n <prop>\n <displayname/>\n <resourcetype/>\n <getlastmodified/>\n <getcontentlength/>\n <getcontenttype/>\n </prop>\n </propfind>'})];case 2:_$n=_state.sent(),o=new s$.XMLParser({attributeNamePrefix:"",removeNSPrefix:!0,parseTagValue:!1,numberParseOptions:{eNotation:!1,hex:!0,leadingZeros:!0},processEntities:!1}).parse(_$n.text),s=Array.isArray(o.multistatus.response)?o.multistatus.response:[o.multistatus.response];(_t=t).push.apply(_t,_to_consumable_array(s.slice(1).map(Bf(Wer,"/dav"))));A=_$n.headers.link||_$n.headers.Link;if(!A)return[3,7];u=Her(A);if(!u)return[3,7];c=new URL(u);c.pathname=decodeURI(c.pathname),i=c.toString();return[3,6];case 3:n=_state.sent();if(!Yi(n))return[3,5];z.error("503 error, retrying...");return[4,sleep(6e4)];case 4:_state.sent();return[3,6];case 5:throw n;case 6:return[3,1];case 7:return[2,t]}})})()}function Uf(r,e,t,i){function n(a){return _instanceof(a,t)?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(i.next(c))}catch(l){o(l)}}function A(c){try{u(i.throw(c))}catch(l){o(l)}}function u(c){c.done?a(c.value):n(c.value).then(s,A)}u((i=i.apply(r,e||[])).next())})}var mr=/*#__PURE__*/function(){"use strict";function mr1(){_class_call_check(this,mr1);this.mutex=Promise.resolve()}_create_class(mr1,[{key:"lock",value:function lock(){var e=function(){};return this.mutex=this.mutex.then(function(){return new Promise(e)}),new Promise(function(t){e=t})}},{key:"dispatch",value:function dispatch(e){return Uf(this,void 0,void 0,function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.lock()];case 1:t=_state.sent();_state.label=2;case 2:_state.trys.push([2,,4,5]);return[4,Promise.resolve(e())];case 3:return[2,_state.sent()];case 4:t();return[7];case 5:return[2]}})})}}]);return mr1}(),s1;function Jer(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global}var u1=Jer(),A1=(s1=u1.Buffer)!==null&&s1!==void 0?s1:null,Ker=u1.TextEncoder?new u1.TextEncoder:null;function g$(r,e){return(r&15)+(r>>6|r>>3&8)<<4|(e&15)+(e>>6|e>>3&8)}function Ver(r,e){var t=e.length>>1;for(var i=0;i<t;i++){var n=i<<1;r[i]=g$(e.charCodeAt(n),e.charCodeAt(n+1))}}function Yer(r,e){if(r.length!==e.length*2)return!1;for(var t=0;t<e.length;t++){var i=t<<1;if(e[t]!==g$(r.charCodeAt(i),r.charCodeAt(i+1)))return!1}return!0}var A$="a".charCodeAt(0)-10,c$="0".charCodeAt(0);function u$(r,e,t){var i=0;for(var n=0;n<t;n++){var a=e[n]>>>4;r[i++]=a>9?a+A$:a+c$,a=e[n]&15,r[i++]=a>9?a+A$:a+c$}return String.fromCharCode.apply(null,r)}var l$=A1!==null?function(r){if(typeof r=="string"){var e=A1.from(r,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.length)}if(A1.isBuffer(r))return new Uint8Array(r.buffer,r.byteOffset,r.length);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Invalid data type!")}:function(r){if(typeof r=="string")return Ker.encode(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Invalid data type!")},f$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mf=new Uint8Array(256);for(var r=0;r<f$.length;r++)Mf[f$.charCodeAt(r)]=r;function zer(r){var e=Math.floor(r.length*.75),t=r.length;return r[t-1]==="="&&(e-=1,r[t-2]==="="&&(e-=1)),e}function jer(r){var e=zer(r),t=r.length,i=new Uint8Array(e),n=0;for(var a=0;a<t;a+=4){var o=Mf[r.charCodeAt(a)],s=Mf[r.charCodeAt(a+1)],A=Mf[r.charCodeAt(a+2)],u=Mf[r.charCodeAt(a+3)];i[n]=o<<2|s>>4,n+=1,i[n]=(s&15)<<4|A>>2,n+=1,i[n]=(A&3)<<6|u&63,n+=1}return i}var p0=16*1024,Pf=4,Xer=new mr,c1=new Map;function Zer(r,e){return Uf(this,void 0,void 0,function(){var _this,t,i,n,a,o,s,A,u,c,l,f,g,h,d,p,m,x,v,E,S;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;t=null,i=null,n=!1;if(typeof WebAssembly=="undefined")throw new Error("WebAssembly is not supported in this environment!");a=function(B){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;i.set(B,b)},o=function(){return i},s=function(){return t.exports},A=function(B){t.exports.Hash_SetMemorySize(B);var b=t.exports.Hash_GetBuffer(),C=t.exports.memory.buffer;i=new Uint8Array(C,b,B)},u=function(){return new DataView(t.exports.memory.buffer).getUint32(t.exports.STATE_SIZE,!0)},c=Xer.dispatch(function(){return Uf(_this,void 0,void 0,function(){var b,C,B;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!c1.has(r.name)){b=jer(r.data),C=WebAssembly.compile(b);c1.set(r.name,C)}return[4,c1.get(r.name)];case 1:B=_state.sent();return[4,WebAssembly.instantiate(B,{})];case 2:t=_state.sent();return[2]}})})}),l=function(){return Uf(_this,void 0,void 0,function(){var _tmp,B,b;return _ts_generator(this,function(_state){switch(_state.label){case 0:_tmp=t;if(_tmp)return[3,2];return[4,c];case 1:_tmp=_state.sent();_state.label=2;case 2:_tmp;B=t.exports.Hash_GetBuffer(),b=t.exports.memory.buffer;i=new Uint8Array(b,B,p0);return[2]}})})},f=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;n=!0,t.exports.Hash_Init(B)},g=function(B){var b=0;for(;b<B.length;){var C=B.subarray(b,b+p0);b+=C.length,i.set(C),t.exports.Hash_Update(C.length)}},h=function(B){if(!n)throw new Error("update() called before init()");var b=l$(B);g(b)},d=new Uint8Array(e*2),p=function(B){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!n)throw new Error("digest() called before init()");return n=!1,t.exports.Hash_Final(b),B==="binary"?i.slice(0,e):u$(d,i,e)},m=function(){if(!n)throw new Error("save() can only be called after init() and before digest()");var B=t.exports.Hash_GetState(),b=u(),C=t.exports.memory.buffer,y=new Uint8Array(C,B,b),q=new Uint8Array(Pf+b);return Ver(q,r.hash),q.set(y,Pf),q},x=function(B){if(!_instanceof(B,Uint8Array))throw new Error("load() expects an Uint8Array generated by save()");var b=t.exports.Hash_GetState(),C=u(),y=Pf+C,q=t.exports.memory.buffer;if(B.length!==y)throw new Error("Bad state length (expected ".concat(y," bytes, got ").concat(B.length,")"));if(!Yer(r.hash,B.subarray(0,Pf)))throw new Error("This state was written by an incompatible hash implementation");var w=B.subarray(Pf);new Uint8Array(q,b,C).set(w),n=!0},v=function(B){return typeof B=="string"?B.length<p0/4:B.byteLength<p0},E=v;switch(r.name){case"argon2":case"scrypt":E=function(){return!0};break;case"blake2b":case"blake2s":E=function(B,b){return b<=512&&v(B)};break;case"blake3":E=function(B,b){return b===0&&v(B)};break;case"xxhash64":case"xxhash3":case"xxhash128":case"crc64":E=function(){return!1};break}S=function(B){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!E(B,b))return f(b),h(B),p("hex",C);var y=l$(B);return i.set(y),t.exports.Hash_Calculate(y.length,b,C),u$(d,i,e)};return[4,l()];case 1:return[2,(_state.sent(),{getMemory:o,writeMemory:a,getExports:s,setMemorySize:A,init:f,update:h,digest:p,save:m,load:x,calculate:S,hashLength:e})]}})})}function $er(r,e,t){return Uf(this,void 0,void 0,function(){var i,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,r.lock()];case 1:i=_state.sent();return[4,Zer(e,t)];case 2:n=_state.sent();return[2,(i(),n)]}})})}var oNr=new mr;var sNr=new mr;var ANr=new DataView(new ArrayBuffer(4));var cNr=new mr;var uNr=new mr;var lNr=new mr;var fNr=new mr;var gNr=new Uint8Array(8);var dNr=new mr;var hNr=new mr;var INr=new mr;var pNr=new mr;var xNr=new mr;var err="sha256",rrr="AGFzbQEAAAABEQRgAAF/YAF/AGAAAGACf38AAwgHAAEBAQIAAwUEAQECAgYOAn8BQfCJBQt/AEGACAsHcAgGbWVtb3J5AgAOSGFzaF9HZXRCdWZmZXIAAAlIYXNoX0luaXQAAQtIYXNoX1VwZGF0ZQACCkhhc2hfRmluYWwABA1IYXNoX0dldFN0YXRlAAUOSGFzaF9DYWxjdWxhdGUABgpTVEFURV9TSVpFAwEKnEoHBQBBgAkLnQEAQQBCADcDwIkBQQBBHEEgIABB4AFGIgAbNgLoiQFBAEKnn+anxvST/b5/Qquzj/yRo7Pw2wAgABs3A+CJAUEAQrGWgP6fooWs6ABC/6S5iMWR2oKbfyAAGzcD2IkBQQBCl7rDg5Onlod3QvLmu+Ojp/2npX8gABs3A9CJAUEAQti9loj8oLW+NkLnzKfQ1tDrs7t/IAAbNwPIiQEL7wICAX4Gf0EAQQApA8CJASIBIACtfDcDwIkBAkACQAJAIAGnQT9xIgINAEGACSEDDAELAkBBwAAgAmsiBCAAIAQgAEkbIgNFDQAgA0EDcSEFIAJBgIkBaiEGQQAhAgJAIANBBEkNACADQfwAcSEHQQAhAgNAIAYgAmoiAyACQYAJai0AADoAACADQQFqIAJBgQlqLQAAOgAAIANBAmogAkGCCWotAAA6AAAgA0EDaiACQYMJai0AADoAACAHIAJBBGoiAkcNAAsLIAVFDQADQCAGIAJqIAJBgAlqLQAAOgAAIAJBAWohAiAFQX9qIgUNAAsLIAAgBEkNAUGAiQEQAyAAIARrIQAgBEGACWohAwsCQCAAQcAASQ0AA0AgAxADIANBwABqIQMgAEFAaiIAQT9LDQALCyAARQ0AQQAhAkEAIQUDQCACQYCJAWogAyACai0AADoAACACQQFqIQIgACAFQQFqIgVB/wFxSw0ACwsLoz4BRX9BACAAKAI8IgFBGHQgAUGA/gNxQQh0ciABQQh2QYD+A3EgAUEYdnJyIgFBGXcgAUEOd3MgAUEDdnMgACgCOCICQRh0IAJBgP4DcUEIdHIgAkEIdkGA/gNxIAJBGHZyciICaiAAKAIgIgNBGHQgA0GA/gNxQQh0ciADQQh2QYD+A3EgA0EYdnJyIgRBGXcgBEEOd3MgBEEDdnMgACgCHCIDQRh0IANBgP4DcUEIdHIgA0EIdkGA/gNxIANBGHZyciIFaiAAKAIEIgNBGHQgA0GA/gNxQQh0ciADQQh2QYD+A3EgA0EYdnJyIgZBGXcgBkEOd3MgBkEDdnMgACgCACIDQRh0IANBgP4DcUEIdHIgA0EIdkGA/gNxIANBGHZyciIHaiAAKAIkIgNBGHQgA0GA/gNxQQh0ciADQQh2QYD+A3EgA0EYdnJyIghqIAJBD3cgAkENd3MgAkEKdnNqIgNqIAAoAhgiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiCkEZdyAKQQ53cyAKQQN2cyAAKAIUIglBGHQgCUGA/gNxQQh0ciAJQQh2QYD+A3EgCUEYdnJyIgtqIAJqIAAoAhAiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiDEEZdyAMQQ53cyAMQQN2cyAAKAIMIglBGHQgCUGA/gNxQQh0ciAJQQh2QYD+A3EgCUEYdnJyIg1qIAAoAjAiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiDmogACgCCCIJQRh0IAlBgP4DcUEIdHIgCUEIdkGA/gNxIAlBGHZyciIPQRl3IA9BDndzIA9BA3ZzIAZqIAAoAigiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiEGogAUEPdyABQQ13cyABQQp2c2oiCUEPdyAJQQ13cyAJQQp2c2oiEUEPdyARQQ13cyARQQp2c2oiEkEPdyASQQ13cyASQQp2c2oiE2ogACgCNCIUQRh0IBRBgP4DcUEIdHIgFEEIdkGA/gNxIBRBGHZyciIVQRl3IBVBDndzIBVBA3ZzIA5qIBJqIAAoAiwiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnIiFkEZdyAWQQ53cyAWQQN2cyAQaiARaiAIQRl3IAhBDndzIAhBA3ZzIARqIAlqIAVBGXcgBUEOd3MgBUEDdnMgCmogAWogC0EZdyALQQ53cyALQQN2cyAMaiAVaiANQRl3IA1BDndzIA1BA3ZzIA9qIBZqIANBD3cgA0ENd3MgA0EKdnNqIhRBD3cgFEENd3MgFEEKdnNqIhdBD3cgF0ENd3MgF0EKdnNqIhhBD3cgGEENd3MgGEEKdnNqIhlBD3cgGUENd3MgGUEKdnNqIhpBD3cgGkENd3MgGkEKdnNqIhtBD3cgG0ENd3MgG0EKdnNqIhxBGXcgHEEOd3MgHEEDdnMgAkEZdyACQQ53cyACQQN2cyAVaiAYaiAOQRl3IA5BDndzIA5BA3ZzIBZqIBdqIBBBGXcgEEEOd3MgEEEDdnMgCGogFGogE0EPdyATQQ13cyATQQp2c2oiHUEPdyAdQQ13cyAdQQp2c2oiHkEPdyAeQQ13cyAeQQp2c2oiH2ogE0EZdyATQQ53cyATQQN2cyAYaiADQRl3IANBDndzIANBA3ZzIAFqIBlqIB9BD3cgH0ENd3MgH0EKdnNqIiBqIBJBGXcgEkEOd3MgEkEDdnMgF2ogH2ogEUEZdyARQQ53cyARQQN2cyAUaiAeaiAJQRl3IAlBDndzIAlBA3ZzIANqIB1qIBxBD3cgHEENd3MgHEEKdnNqIiFBD3cgIUENd3MgIUEKdnNqIiJBD3cgIkENd3MgIkEKdnNqIiNBD3cgI0ENd3MgI0EKdnNqIiRqIBtBGXcgG0EOd3MgG0EDdnMgHmogI2ogGkEZdyAaQQ53cyAaQQN2cyAdaiAiaiAZQRl3IBlBDndzIBlBA3ZzIBNqICFqIBhBGXcgGEEOd3MgGEEDdnMgEmogHGogF0EZdyAXQQ53cyAXQQN2cyARaiAbaiAUQRl3IBRBDndzIBRBA3ZzIAlqIBpqICBBD3cgIEENd3MgIEEKdnNqIiVBD3cgJUENd3MgJUEKdnNqIiZBD3cgJkENd3MgJkEKdnNqIidBD3cgJ0ENd3MgJ0EKdnNqIihBD3cgKEENd3MgKEEKdnNqIilBD3cgKUENd3MgKUEKdnNqIipBD3cgKkENd3MgKkEKdnNqIitBGXcgK0EOd3MgK0EDdnMgH0EZdyAfQQ53cyAfQQN2cyAbaiAnaiAeQRl3IB5BDndzIB5BA3ZzIBpqICZqIB1BGXcgHUEOd3MgHUEDdnMgGWogJWogJEEPdyAkQQ13cyAkQQp2c2oiLEEPdyAsQQ13cyAsQQp2c2oiLUEPdyAtQQ13cyAtQQp2c2oiLmogJEEZdyAkQQ53cyAkQQN2cyAnaiAgQRl3ICBBDndzICBBA3ZzIBxqIChqIC5BD3cgLkENd3MgLkEKdnNqIi9qICNBGXcgI0EOd3MgI0EDdnMgJmogLmogIkEZdyAiQQ53cyAiQQN2cyAlaiAtaiAhQRl3ICFBDndzICFBA3ZzICBqICxqICtBD3cgK0ENd3MgK0EKdnNqIjBBD3cgMEENd3MgMEEKdnNqIjFBD3cgMUENd3MgMUEKdnNqIjJBD3cgMkENd3MgMkEKdnNqIjNqICpBGXcgKkEOd3MgKkEDdnMgLWogMmogKUEZdyApQQ53cyApQQN2cyAsaiAxaiAoQRl3IChBDndzIChBA3ZzICRqIDBqICdBGXcgJ0EOd3MgJ0EDdnMgI2ogK2ogJkEZdyAmQQ53cyAmQQN2cyAiaiAqaiAlQRl3ICVBDndzICVBA3ZzICFqIClqIC9BD3cgL0ENd3MgL0EKdnNqIjRBD3cgNEENd3MgNEEKdnNqIjVBD3cgNUENd3MgNUEKdnNqIjZBD3cgNkENd3MgNkEKdnNqIjdBD3cgN0ENd3MgN0EKdnNqIjhBD3cgOEENd3MgOEEKdnNqIjlBD3cgOUENd3MgOUEKdnNqIjogOCA0IC4gLCAhIBsgGSADIA4gBEEAKALYiQEiO0EadyA7QRV3cyA7QQd3c0EAKALkiQEiPGpBACgC4IkBIj1BACgC3IkBIj5zIDtxID1zaiAHakGY36iUBGoiB0EAKALUiQEiP2oiACAMaiA7IA1qID4gD2ogPSAGaiAAID4gO3NxID5zaiAAQRp3IABBFXdzIABBB3dzakGRid2JB2oiQEEAKALQiQEiQWoiDCAAIDtzcSA7c2ogDEEadyAMQRV3cyAMQQd3c2pBz/eDrntqIkJBACgCzIkBIkNqIg0gDCAAc3EgAHNqIA1BGncgDUEVd3MgDUEHd3NqQaW3181+aiJEQQAoAsiJASIAaiIPIA0gDHNxIAxzaiAPQRp3IA9BFXdzIA9BB3dzakHbhNvKA2oiRSBBIEMgAHNxIEMgAHFzIABBHncgAEETd3MgAEEKd3NqIAdqIgZqIgdqIAUgD2ogCiANaiALIAxqIAcgDyANc3EgDXNqIAdBGncgB0EVd3MgB0EHd3NqQfGjxM8FaiIKIAYgAHMgQ3EgBiAAcXMgBkEedyAGQRN3cyAGQQp3c2ogQGoiDGoiBCAHIA9zcSAPc2ogBEEadyAEQRV3cyAEQQd3c2pBpIX+kXlqIgsgDCAGcyAAcSAMIAZxcyAMQR53IAxBE3dzIAxBCndzaiBCaiINaiIPIAQgB3NxIAdzaiAPQRp3IA9BFXdzIA9BB3dzakHVvfHYemoiQCANIAxzIAZxIA0gDHFzIA1BHncgDUETd3MgDUEKd3NqIERqIgZqIgcgDyAEc3EgBHNqIAdBGncgB0EVd3MgB0EHd3NqQZjVnsB9aiJCIAYgDXMgDHEgBiANcXMgBkEedyAGQRN3cyAGQQp3c2ogRWoiDGoiBWogFiAHaiAQIA9qIAggBGogBSAHIA9zcSAPc2ogBUEadyAFQRV3cyAFQQd3c2pBgbaNlAFqIgggDCAGcyANcSAMIAZxcyAMQR53IAxBE3dzIAxBCndzaiAKaiINaiIPIAUgB3NxIAdzaiAPQRp3IA9BFXdzIA9BB3dzakG+i8ahAmoiDiANIAxzIAZxIA0gDHFzIA1BHncgDUETd3MgDUEKd3NqIAtqIgZqIgcgDyAFc3EgBXNqIAdBGncgB0EVd3MgB0EHd3NqQcP7sagFaiIQIAYgDXMgDHEgBiANcXMgBkEedyAGQRN3cyAGQQp3c2ogQGoiDGoiBCAHIA9zcSAPc2ogBEEadyAEQRV3cyAEQQd3c2pB9Lr5lQdqIhYgDCAGcyANcSAMIAZxcyAMQR53IAxBE3dzIAxBCndzaiBCaiINaiIFaiABIARqIAIgB2ogFSAPaiAFIAQgB3NxIAdzaiAFQRp3IAVBFXdzIAVBB3dzakH+4/qGeGoiByANIAxzIAZxIA0gDHFzIA1BHncgDUETd3MgDUEKd3NqIAhqIgFqIgYgBSAEc3EgBHNqIAZBGncgBkEVd3MgBkEHd3NqQaeN8N55aiIEIAEgDXMgDHEgASANcXMgAUEedyABQRN3cyABQQp3c2ogDmoiAmoiDCAGIAVzcSAFc2ogDEEadyAMQRV3cyAMQQd3c2pB9OLvjHxqIgUgAiABcyANcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAQaiIDaiINIAwgBnNxIAZzaiANQRp3IA1BFXdzIA1BB3dzakHB0+2kfmoiCCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBZqIgFqIg8gF2ogESANaiAUIAxqIAkgBmogDyANIAxzcSAMc2ogD0EadyAPQRV3cyAPQQd3c2pBho/5/X5qIgYgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAHaiICaiIJIA8gDXNxIA1zaiAJQRp3IAlBFXdzIAlBB3dzakHGu4b+AGoiDCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIARqIgNqIhEgCSAPc3EgD3NqIBFBGncgEUEVd3MgEUEHd3NqQczDsqACaiINIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogBWoiAWoiFCARIAlzcSAJc2ogFEEadyAUQRV3cyAUQQd3c2pB79ik7wJqIg8gASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAIaiICaiIXaiATIBRqIBggEWogEiAJaiAXIBQgEXNxIBFzaiAXQRp3IBdBFXdzIBdBB3dzakGqidLTBGoiGCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIAZqIgNqIgkgFyAUc3EgFHNqIAlBGncgCUEVd3MgCUEHd3NqQdzTwuUFaiIUIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogDGoiAWoiESAJIBdzcSAXc2ogEUEadyARQRV3cyARQQd3c2pB2pHmtwdqIhcgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiANaiICaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakHSovnBeWoiGSACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIA9qIgNqIhNqIB4gEmogGiARaiAdIAlqIBMgEiARc3EgEXNqIBNBGncgE0EVd3MgE0EHd3NqQe2Mx8F6aiIaIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGGoiAWoiCSATIBJzcSASc2ogCUEadyAJQRV3cyAJQQd3c2pByM+MgHtqIhggASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAUaiICaiIRIAkgE3NxIBNzaiARQRp3IBFBFXdzIBFBB3dzakHH/+X6e2oiFCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBdqIgNqIhIgESAJc3EgCXNqIBJBGncgEkEVd3MgEkEHd3NqQfOXgLd8aiIXIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGWoiAWoiE2ogICASaiAcIBFqIB8gCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBx6KerX1qIhkgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAaaiICaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakHRxqk2aiIaIAIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGGoiA2oiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pB59KkoQFqIhggAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAUaiIBaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGFldy9AmoiFCABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBdqIgJqIhMgI2ogJiASaiAiIBFqICUgCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBuMLs8AJqIhcgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAZaiIDaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakH827HpBGoiGSADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBpqIgFqIhEgCSATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQZOa4JkFaiIaIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGGoiAmoiEiARIAlzcSAJc2ogEkEadyASQRV3cyASQQd3c2pB1OapqAZqIhggAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAUaiIDaiITaiAoIBJqICQgEWogJyAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakG7laizB2oiFCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBdqIgFqIgkgEyASc3EgEnNqIAlBGncgCUEVd3MgCUEHd3NqQa6Si454aiIXIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGWoiAmoiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pBhdnIk3lqIhkgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAaaiIDaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGh0f+VemoiGiADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBhqIgFqIhNqICogEmogLSARaiApIAlqIBMgEiARc3EgEXNqIBNBGncgE0EVd3MgE0EHd3NqQcvM6cB6aiIYIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogFGoiAmoiCSATIBJzcSASc2ogCUEadyAJQRV3cyAJQQd3c2pB8JauknxqIhQgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAXaiIDaiIRIAkgE3NxIBNzaiARQRp3IBFBFXdzIBFBB3dzakGjo7G7fGoiFyADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBlqIgFqIhIgESAJc3EgCXNqIBJBGncgEkEVd3MgEkEHd3NqQZnQy4x9aiIZIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGmoiAmoiE2ogMCASaiAvIBFqICsgCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBpIzktH1qIhogAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAYaiIDaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakGF67igf2oiGCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBRqIgFqIhEgCSATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQfDAqoMBaiIUIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogF2oiAmoiEiARIAlzcSAJc2ogEkEadyASQRV3cyASQQd3c2pBloKTzQFqIhcgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAZaiIDaiITIDZqIDIgEmogNSARaiAxIAlqIBMgEiARc3EgEXNqIBNBGncgE0EVd3MgE0EHd3NqQYjY3fEBaiIZIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGmoiAWoiCSATIBJzcSASc2ogCUEadyAJQRV3cyAJQQd3c2pBzO6hugJqIhogASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAYaiICaiIRIAkgE3NxIBNzaiARQRp3IBFBFXdzIBFBB3dzakG1+cKlA2oiGCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBRqIgNqIhIgESAJc3EgCXNqIBJBGncgEkEVd3MgEkEHd3NqQbOZ8MgDaiIUIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogF2oiAWoiE2ogLEEZdyAsQQ53cyAsQQN2cyAoaiA0aiAzQQ93IDNBDXdzIDNBCnZzaiIXIBJqIDcgEWogMyAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakHK1OL2BGoiGyABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBlqIgJqIgkgEyASc3EgEnNqIAlBGncgCUEVd3MgCUEHd3NqQc+U89wFaiIZIAIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGmoiA2oiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pB89+5wQZqIhogAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAYaiIBaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakHuhb6kB2oiHCABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBRqIgJqIhNqIC5BGXcgLkEOd3MgLkEDdnMgKmogNmogLUEZdyAtQQ53cyAtQQN2cyApaiA1aiAXQQ93IBdBDXdzIBdBCnZzaiIUQQ93IBRBDXdzIBRBCnZzaiIYIBJqIDkgEWogFCAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakHvxpXFB2oiCSACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBtqIgNqIhEgEyASc3EgEnNqIBFBGncgEUEVd3MgEUEHd3NqQZTwoaZ4aiIbIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGWoiAWoiEiARIBNzcSATc2ogEkEadyASQRV3cyASQQd3c2pBiISc5nhqIhkgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAaaiICaiITIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakH6//uFeWoiGiACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBxqIgNqIhQgPGo2AuSJAUEAID8gAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAJaiIBIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBtqIgIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGWoiAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAaaiIJajYC1IkBQQAgPSAvQRl3IC9BDndzIC9BA3ZzICtqIDdqIBhBD3cgGEENd3MgGEEKdnNqIhggEWogFCATIBJzcSASc2ogFEEadyAUQRV3cyAUQQd3c2pB69nBonpqIhkgAWoiEWo2AuCJAUEAIEEgCSADcyACcSAJIANxcyAJQR53IAlBE3dzIAlBCndzaiAZaiIBajYC0IkBQQAgPiAwQRl3IDBBDndzIDBBA3ZzIC9qIBdqIDpBD3cgOkENd3MgOkEKdnNqIBJqIBEgFCATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQffH5vd7aiIXIAJqIhJqNgLciQFBACBDIAEgCXMgA3EgASAJcXMgAUEedyABQRN3cyABQQp3c2ogF2oiAmo2AsyJAUEAIDsgNEEZdyA0QQ53cyA0QQN2cyAwaiA4aiAYQQ93IBhBDXdzIBhBCnZzaiATaiASIBEgFHNxIBRzaiASQRp3IBJBFXdzIBJBB3dzakHy8cWzfGoiESADamo2AtiJAUEAIAAgAiABcyAJcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiARamo2AsiJAQuyBgIEfwF+QQAoAsCJASIAQQJ2QQ9xIgFBAnRBgIkBaiICIAIoAgBBfyAAQQN0IgB0QX9zcUGAASAAdHM2AgACQAJAAkAgAUEOSQ0AAkAgAUEORw0AQQBBADYCvIkBC0GAiQEQA0EAIQIMAQsgAUENRg0BIAFBAWohAgsgAiEDAkBBBiACa0EHcSIARQ0AIAIgAGohAyACQQJ0QYCJAWohAQNAIAFBADYCACABQQRqIQEgAEF/aiIADQALCyACQXlqQQdJDQAgA0ECdCEBA0AgAUGYiQFqQgA3AgAgAUGQiQFqQgA3AgAgAUGIiQFqQgA3AgAgAUGAiQFqQgA3AgAgAUEgaiIBQThHDQALC0EAIQFBAEEAKQPAiQEiBKciAEEbdCAAQQt0QYCA/AdxciAAQQV2QYD+A3EgAEEDdEEYdnJyNgK8iQFBACAEQh2IpyIAQRh0IABBgP4DcUEIdHIgAEEIdkGA/gNxIABBGHZycjYCuIkBQYCJARADQQBBACgC5IkBIgBBGHQgAEGA/gNxQQh0ciAAQQh2QYD+A3EgAEEYdnJyNgLkiQFBAEEAKALgiQEiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnI2AuCJAUEAQQAoAtyJASIAQRh0IABBgP4DcUEIdHIgAEEIdkGA/gNxIABBGHZycjYC3IkBQQBBACgC2IkBIgBBGHQgAEGA/gNxQQh0ciAAQQh2QYD+A3EgAEEYdnJyNgLYiQFBAEEAKALUiQEiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnI2AtSJAUEAQQAoAtCJASIAQRh0IABBgP4DcUEIdHIgAEEIdkGA/gNxIABBGHZycjYC0IkBQQBBACgCzIkBIgBBGHQgAEGA/gNxQQh0ciAAQQh2QYD+A3EgAEEYdnJyNgLMiQFBAEEAKALIiQEiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnI2AsiJAQJAQQAoAuiJASICRQ0AQQAhAANAIAFBgAlqIAFByIkBai0AADoAACABQQFqIQEgAiAAQQFqIgBB/wFxSw0ACwsLBgBBgIkBC6MBAEEAQgA3A8CJAUEAQRxBICABQeABRiIBGzYC6IkBQQBCp5/mp8b0k/2+f0Krs4/8kaOz8NsAIAEbNwPgiQFBAEKxloD+n6KFrOgAQv+kuYjFkdqCm38gARs3A9iJAUEAQpe6w4OTp5aHd0Ly5rvjo6f9p6V/IAEbNwPQiQFBAELYvZaI/KC1vjZC58yn0NbQ67O7fyABGzcDyIkBIAAQAhAECwsLAQBBgAgLBHAAAAA=",trr="8c18dd94",irr={name:err,data:rrr,hash:trr},mNr=new mr;var nrr=new mr,x0=null;function d$(r){if(x0===null)return $er(nrr,irr,32).then(function(e){return x0=e,x0.calculate(r,256)});try{var _$e1=x0.calculate(r,256);return Promise.resolve(_$e1)}catch(e){return Promise.reject(e)}}var vNr=new mr;var CNr=new mr;var BNr=new mr;var ENr=new mr;var yNr=new Uint8Array(8);var QNr=new mr;var bNr=new Uint8Array(8);var wNr=new mr;var SNr=new Uint8Array(8);var _Nr=new mr;var qNr=new mr;var DNr=new mr;var v$=require("obsidian");var h$=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function Gf(r,e){e?e=_object_spread({},h$,e):e=h$;var t=p$(e);return t.dispatch(r),t.toString()}var arr=Object.freeze(["prototype","__proto__","constructor"]);function p$(r){var e="",t=new Map,i=function(n){e+=n};return{toString:function toString(){return e},getContext:function getContext(){return t},dispatch:function dispatch(n){return r.replacer&&(n=r.replacer(n)),this[n===null?"null":typeof n==="undefined"?"undefined":_type_of(n)](n)},object:function object(n){var _this=this;if(n&&typeof n.toJSON=="function")return this.object(n.toJSON());var a=Object.prototype.toString.call(n),o="",s=a.length;s<10?o="unknown:["+a+"]":o=a.slice(8,s-1),o=o.toLowerCase();var A=null;if((A=t.get(n))===void 0)t.set(n,t.size);else return this.dispatch("[CIRCULAR:"+A+"]");if(typeof Buffer!="undefined"&&Buffer.isBuffer&&Buffer.isBuffer(n))return i("buffer:"),i(n.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](n):r.ignoreUnknown||this.unkown(n,o);else{var u=Object.keys(n);r.unorderedObjects&&(u=u.sort());var c=[];r.respectType!==!1&&!I$(n)&&(c=arr),r.excludeKeys&&(u=u.filter(function(f){return!r.excludeKeys(f)}),c=c.filter(function(f){return!r.excludeKeys(f)})),i("object:"+(u.length+c.length)+":");var l=function(f){_this.dispatch(f),i(":"),r.excludeValues||_this.dispatch(n[f]),i(",")};var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=u[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var f=_step.value;l(f)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var _iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator1=c[Symbol.iterator](),_step1;!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){var f2=_step1.value;l(f2)}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}}},array:function array(n,a){if(a=a===void 0?r.unorderedArrays!==!1:a,i("array:"+n.length+":"),!a||n.length<=1){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=n[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var A=_step.value;this.dispatch(A)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return}var o=new Map,s=n.map(function(A){var u=p$(r);u.dispatch(A);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=u.getContext()[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_sliced_to_array(_step.value,2),c=_step_value[0],l=_step_value[1];o.set(c,l)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return u.toString()});return t=o,s.sort(),this.array(s,!1)},date:function date(n){return i("date:"+n.toJSON())},symbol:function symbol(n){return i("symbol:"+n.toString())},unkown:function unkown(n,a){if(i(a),!!n&&(i(":"),n&&typeof n.entries=="function"))return this.array(Array.from(n.entries()),!0)},error:function error(n){return i("error:"+n.toString())},boolean:function boolean(n){return i("bool:"+n)},string:function string(n){i("string:"+n.length+":"),i(n)},function:function _function(n){i("fn:"),I$(n)?this.dispatch("[native]"):this.dispatch(n.toString()),r.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(n.name)),r.respectFunctionProperties&&this.object(n)},number:function number(n){return i("number:"+n)},xml:function xml(n){return i("xml:"+n.toString())},null:function _null(){return i("Null")},undefined:function undefined1(){return i("Undefined")},regexp:function regexp(n){return i("regex:"+n.toString())},uint8array:function uint8array(n){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(n))},uint8clampedarray:function uint8clampedarray(n){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(n))},int8array:function int8array(n){return i("int8array:"),this.dispatch(Array.prototype.slice.call(n))},uint16array:function uint16array(n){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(n))},int16array:function int16array(n){return i("int16array:"),this.dispatch(Array.prototype.slice.call(n))},uint32array:function uint32array(n){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(n))},int32array:function int32array(n){return i("int32array:"),this.dispatch(Array.prototype.slice.call(n))},float32array:function float32array(n){return i("float32array:"),this.dispatch(Array.prototype.slice.call(n))},float64array:function float64array(n){return i("float64array:"),this.dispatch(Array.prototype.slice.call(n))},arraybuffer:function arraybuffer(n){return i("arraybuffer:"),this.dispatch(new Uint8Array(n))},url:function url(n){return i("url:"+n.toString())},map:function map(n){i("map:");var a=_to_consumable_array(n);return this.array(a,r.unorderedSets!==!1)},set:function set(n){i("set:");var a=_to_consumable_array(n);return this.array(a,r.unorderedSets!==!1)},file:function file(n){return i("file:"),this.dispatch([n.name,n.size,n.type,n.lastModfied])},blob:function blob(){if(r.ignoreUnknown)return i("[blob]");throw new Error('Hashing Blob objects is currently not supported\nUse "options.replacer" or "options.ignoreUnknown"\n')},domwindow:function domwindow(){return i("domwindow")},bigint:function bigint(n){return i("bigint:"+n.toString())},process:function process1(){return i("process")},timer:function timer(){return i("timer")},pipe:function pipe(){return i("pipe")},tcp:function tcp(){return i("tcp")},udp:function udp(){return i("udp")},tty:function tty(){return i("tty")},statwatcher:function statwatcher(){return i("statwatcher")},securecontext:function securecontext(){return i("securecontext")},connection:function connection(){return i("connection")},zlib:function zlib(){return i("zlib")},context:function context(){return i("context")},nodescript:function nodescript(){return i("nodescript")},httpparser:function httpparser(){return i("httpparser")},dataview:function dataview(){return i("dataview")},signal:function signal(){return i("signal")},fsevent:function fsevent(){return i("fsevent")},tlswrap:function tlswrap(){return i("tlswrap")}}}var x$="[native code] }",orr=x$.length;function I$(r){return typeof r!="function"?!1:Function.prototype.toString.call(r).slice(-orr)===x$}function l1(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return r===e||Gf(r,t)===Gf(e,t)}var m$=Le(kr());function nt(r){return r.startsWith("/")||(r="/".concat(r)),r.endsWith("/")||(r="".concat(r,"/")),(0,m$.normalize)(r)}function aa(r,e){return Gf({vaultName:r,remoteBaseDir:nt(e)})}function Lf(r,e){return _async_to_generator(function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,d$(r)];case 1:t=_state.sent();return[2,(e=(0,v$.normalizePath)(e),"".concat(t,":").concat(e))]}})})()}function C$(r){return r.buffer.byteLength===r.byteLength&&r.byteOffset===0?r.buffer:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}var Es=/*#__PURE__*/function(){"use strict";function Es1(e,t){_class_call_check(this,Es1);this.plugin=e;this.remoteCacheDir=t}_create_class(Es1,[{key:"saveCache",value:function saveCache(e){return _async_to_generator(function(){var _$t,n,a,_tmp,_2,o,s,A,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,7,,8]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$t=_state.sent();_tmp={};_2=Cn.get;return[4,this.plugin.getToken()];case 2:return[4,Lf.apply(void 0,[_state.sent(),this.plugin.remoteBaseDir])];case 3:return[4,_2.apply(Cn,[_state.sent()])];case 4:n=(_tmp.traverseWebDAVCache=_state.sent()||void 0,_tmp.exportedAt=new Date().toISOString(),_tmp),a=Xw.stringify(n);if(!a||a.length===0)throw new Error("Cache data serialization failed");o=new TextEncoder,s=oZ(o.encode(a),{level:9}),A=(0,m0.join)(this.remoteCacheDir,e);return[4,_$t.createDirectory(this.remoteCacheDir,{recursive:!0})];case 5:_state.sent();return[4,_$t.putFileContents(A,C$(s),{overwrite:!0})];case 6:return[2,(_state.sent(),new vo.Notice(_.t("settings.cache.saveModal.success")),Promise.resolve())];case 7:t=_state.sent();return[2,(z.error("Error saving cache:",t),new vo.Notice(_.t("settings.cache.saveModal.error",{message:t.message})),Promise.reject(t))];case 8:return[2]}})}).call(this)}},{key:"restoreCache",value:function restoreCache(e){return _async_to_generator(function(){var _$t,i,a,o,A,u,c,_tmp,_2,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,8,,9]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$t=_state.sent(),i=(0,m0.join)(this.remoteCacheDir,e);return[4,_$t.exists(i).catch(function(){return!1})];case 2:if(!_state.sent())return[2,(new vo.Notice(_.t("settings.cache.restoreModal.fileNotFound")),Promise.reject(new Error("File not found")))];return[4,_$t.getFileContents(i,{format:"binary"})];case 3:a=_state.sent();if(!a||a.byteLength===0)throw new Error("Cache file is empty");o=sZ(new Uint8Array(a));if(!o||o.length===0)throw new Error("Inflate failed or resulted in empty content");A=new TextDecoder().decode(o);if(!A||A.trim()==="")throw new Error("Cache file content is invalid or empty");u=Xw.parse(A);if(!u)throw new Error("Invalid cache file format");c=u.traverseWebDAVCache;_tmp=c;if(!_tmp)return[3,7];_2=Cn.set;return[4,this.plugin.getToken()];case 4:return[4,Lf.apply(void 0,[_state.sent(),this.plugin.remoteBaseDir])];case 5:return[4,_2.apply(Cn,[_state.sent(),c])];case 6:_tmp=_state.sent();_state.label=7;case 7:return[2,(_tmp,new vo.Notice(_.t("settings.cache.restoreModal.success")),Promise.resolve())];case 8:t=_state.sent();return[2,(z.error("Error restoring cache:",t),new vo.Notice(_.t("settings.cache.restoreModal.error",{message:t.message})),Promise.reject(t))];case 9:return[2]}})}).call(this)}},{key:"deleteCache",value:function deleteCache(e){return _async_to_generator(function(){var _$t,i,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$t=_state.sent(),i=(0,m0.join)(this.remoteCacheDir,e);return[4,_$t.deleteFile(i)];case 2:return[2,(_state.sent(),new vo.Notice(_.t("settings.cache.restoreModal.deleteSuccess")),Promise.resolve())];case 3:t=_state.sent();return[2,(z.error("Error deleting cache file:",t),new vo.Notice(_.t("settings.cache.restoreModal.deleteError",{message:t.message})),Promise.reject(t))];case 4:return[2]}})}).call(this)}},{key:"loadCacheFileList",value:function loadCacheFileList(){return _async_to_generator(function(){var _$e1,_tmp,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,8,,9]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$e1=_state.sent();return[4,_$e1.exists(this.remoteCacheDir).catch(function(){return!1})];case 2:if(!_state.sent())return[3,5];return[4,this.plugin.getToken()];case 3:return[4,Nc.apply(void 0,[_state.sent(),this.remoteCacheDir])];case 4:_tmp=_state.sent().map(fo);return[3,7];case 5:return[4,_$e1.createDirectory(this.remoteCacheDir,{recursive:!0})];case 6:_tmp=(_state.sent(),[]);_state.label=7;case 7:return[2,_tmp];case 8:e=_state.sent();throw z.error("Error loading cache file list:",e),e;case 9:return[2]}})}).call(this)}}]);return Es1}();var Wf=/*#__PURE__*/function(_Hf_Modal){"use strict";_inherits(Wf1,_Hf_Modal);function Wf1(t,i,n){_class_call_check(this,Wf1);var _this;_this=_call_super(this,Wf1,[t.app]);_this.plugin=t;_this.remoteCacheDir=i;_this.onSuccess=n;_this.files=[];_this.cacheService=new Es(t,i);return _this}_create_class(Wf1,[{key:"onOpen",value:function onOpen(){return _async_to_generator(function(){var _this,_this1,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_this1=this,t=_this1.contentEl;new Hf.Setting(t).setName(_.t("settings.cache.restoreModal.title")).setDesc(_.t("settings.cache.restoreModal.description")),this.fileList=t.createDiv({cls:"max-h-50vh overflow-y-auto pb-2 flex flex-col"});return[4,this.loadFileList()];case 1:_state.sent(),new Hf.Setting(t).addButton(function(i){i.setButtonText(_.t("settings.cache.restoreModal.refresh")).onClick(function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.loadFileList()];case 1:_state.sent();return[2]}})}).call(_this)})}).addButton(function(i){i.setButtonText(_.t("settings.cache.restoreModal.close")).onClick(function(){_this.close()})});return[2]}})}).call(this)}},{key:"loadFileList",value:function loadFileList(){return _async_to_generator(function(){var _this,_2,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_state.label=1;case 1:_state.trys.push([1,3,,4]);_2=this;return[4,this.cacheService.loadCacheFileList()];case 2:if(_2.files=_state.sent(),this.files.length===0){this.renderEmptyList();return[2]}this.fileList.empty(),this.files.forEach(function(param){var _$t=param.basename;var i=_this.fileList.createDiv({cls:"flex justify-between items-center py-2"});i.createSpan({text:_$t,cls:"flex-1 break-all mr-2"});var n=i.createDiv({cls:"flex gap-2"});n.createEl("button",{text:_.t("settings.cache.restoreModal.restore"),cls:"mod-cta"}).addEventListener("click",function(){return _async_to_generator(function(){var A,u;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.cacheService.restoreCache(_$t)];case 1:_state.sent(),(A=this.onSuccess)==null||A.call(this),this.close();return[3,3];case 2:u=_state.sent();return[3,3];case 3:return[2]}})}).call(_this)});var o=!1,s=n.createEl("button",{text:_.t("settings.cache.restoreModal.delete"),cls:"transition"});s.addEventListener("click",function(){return _async_to_generator(function(){var A;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!o)return[3,6];_state.label=1;case 1:_state.trys.push([1,4,,5]);return[4,this.cacheService.deleteCache(_$t)];case 2:_state.sent();return[4,this.loadFileList()];case 3:_state.sent();return[3,5];case 4:A=_state.sent();return[3,5];case 5:return[3,7];case 6:o=!0,s.setText(_.t("settings.cache.restoreModal.deleteConfirm")),s.classList.add("mod-warning");_state.label=7;case 7:return[2]}})}).call(_this)}),s.addEventListener("blur",function(){o=!1,s.setText(_.t("settings.cache.restoreModal.delete")),s.classList.remove("mod-warning")})});return[3,4];case 3:t=_state.sent();z.error("Error loading cache file list:",t),this.fileList.empty(),this.fileList.createEl("p",{text:_.t("settings.cache.restoreModal.loadError",{message:t.message}),cls:"p-12px text-center text-[var(--text-error)]"});return[3,4];case 4:return[2]}})}).call(this)}},{key:"renderEmptyList",value:function renderEmptyList(){this.fileList.empty(),this.fileList.createEl("p",{text:_.t("settings.cache.restoreModal.noFiles"),cls:"p-12px text-center"})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return Wf1}(Hf.Modal);var Oc=require("obsidian");var Jf=/*#__PURE__*/function(_Oc_Modal){"use strict";_inherits(Jf1,_Oc_Modal);function Jf1(t,i,n){_class_call_check(this,Jf1);var _this;_this=_call_super(this,Jf1,[t.app]);_this.plugin=t;_this.remoteCacheDir=i;_this.onSuccess=n;_this.cacheService=new Es(t,i);return _this}_create_class(Jf1,[{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;t.createEl("h2",{text:_.t("settings.cache.saveModal.title")}),t.createEl("p",{text:_.t("settings.cache.saveModal.description"),cls:"setting-item-description"});var i="".concat(this.plugin.app.vault.getName(),".").concat((0,Oc.moment)().format("YYYY-MM-DD HH_mm_ss"),".SyncCache"),a=t.createDiv().createEl("input",{cls:"w-full",type:"text",value:i});new Oc.Setting(t).addButton(function(o){o.setButtonText(_.t("settings.cache.saveModal.save")).setCta().onClick(function(){return _async_to_generator(function(){var s,A,A2;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);A=a.value;A.endsWith(".v1")||(A+=".v1");return[4,this.cacheService.saveCache(A)];case 1:_state.sent(),(s=this.onSuccess)==null||s.call(this),this.close();return[3,3];case 2:A2=_state.sent();return[3,3];case 3:return[2]}})}).call(_this)})}).addButton(function(o){o.setButtonText(_.t("settings.cache.saveModal.cancel")).onClick(function(){_this.close()})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return Jf1}(Oc.Modal);var see=require("obsidian");var ze={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId:function getContextId(){return B$(this.context.count)},getNextContextId:function getNextContextId(){return B$(this.context.count++)}};function B$(r){var e=String(r),t=e.length-1;return ze.context.id+(t?String.fromCharCode(96+t):"")+e}function g1(r){ze.context=r}function srr(){return _object_spread_props(_object_spread({},ze.context),{id:ze.getNextContextId(),count:0})}var Arr=!1,crr=function(r,e){return r===e},A4r=Symbol("solid-proxy");var urr=Symbol("solid-track"),c4r=Symbol("solid-dev-component"),C0={equals:crr},E$=null,_$=O$,ci=1,Vf=2,q$={owned:null,cleanups:null,context:null,owner:null},f1={},Pe=null,ie=null,Mc=null,Tc=null,rr=null,Lr=null,Et=null,E0=0;function Kf(r,e){var t=rr,i=Pe,n=r.length===0,a=e===void 0?i:e,o=n?q$:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=n?r:function(){return r(function(){return qi(function(){return Co(o)})})};Pe=o,rr=null;try{return Ai(s,!0)}finally{rr=t,Pe=i}}function at(r,e){e=e?Object.assign({},C0,e):C0;var t={value:r,observers:null,observerSlots:null,comparator:e.equals||void 0},i=function(n){return typeof n=="function"&&(ie&&ie.running&&ie.sources.has(t)?n=n(t.tValue):n=n(t.value)),N$(t,n)};return[R$.bind(t),i]}function y$(r,e,t){var i=y0(r,e,!0,ci);Mc&&ie&&ie.running?Lr.push(i):Uc(i)}function Bo(r,e,t){var i=y0(r,e,!1,ci);Mc&&ie&&ie.running?Lr.push(i):Uc(i)}function d1(r,e,t){_$=hrr;var i=y0(r,e,!1,ci),n=Yf&&k$(Yf);n&&(i.suspense=n),(!t||!t.render)&&(i.user=!0),Et?Et.push(i):Uc(i)}function Pc(r,e,t){t=t?Object.assign({},C0,t):C0;var i=y0(r,e,!0,0);return i.observers=null,i.observerSlots=null,i.comparator=t.equals||void 0,Mc&&ie&&ie.running?(i.tState=ci,Lr.push(i)):Uc(i),R$.bind(i)}function lrr(r){return r&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"&&"then"in r}function D$(r,e,t){var i,n,a;typeof e=="function"?(i=r,n=e,a=t||{}):(i=!0,n=r,a=e||{});var o=null,s=f1,A=null,u=!1,c=!1,l="initialValue"in a,f=typeof i=="function"&&Pc(i),g=new Set,_ref=_sliced_to_array((a.storage||at)(a.initialValue),2),h=_ref[0],d=_ref[1],_at=_sliced_to_array(at(void 0),2),p=_at[0],m=_at[1],_at1=_sliced_to_array(at(void 0,{equals:!1}),2),x=_at1[0],v=_at1[1],_at2=_sliced_to_array(at(l?"ready":"unresolved"),2),E=_at2[0],S=_at2[1];ze.context&&(A=ze.getNextContextId(),a.ssrLoadFrom==="initial"?s=a.initialValue:ze.load&&ze.has(A)&&(s=ze.load(A)));function B(w,N,F,M){return o===w&&(o=null,M!==void 0&&(l=!0),(w===s||N===s)&&a.onHydrated&&queueMicrotask(function(){return a.onHydrated(M,{value:N})}),s=f1,ie&&w&&u?(ie.promises.delete(w),u=!1,Ai(function(){ie.running=!0,b(N,F)},!1)):b(N,F)),N}function b(w,N){Ai(function(){N===void 0&&d(function(){return w}),S(N!==void 0?"errored":l?"ready":"unresolved"),m(N);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=g.keys()[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var F=_step.value;F.decrement()}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}g.clear()},!1)}function C(){var w=Yf&&k$(Yf),N=h(),F=p();if(F!==void 0&&!o)throw F;return rr&&!rr.user&&w&&y$(function(){x(),o&&(w.resolved&&ie&&u?ie.promises.add(o):g.has(w)||(w.increment(),g.add(w)))}),N}function y(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(w!==!1&&c)return;c=!1;var N=f?f():i;if(u=ie&&ie.running,N==null||N===!1){B(o,qi(h));return}ie&&o&&ie.promises.delete(o);var F,M=s!==f1?s:qi(function(){try{return n(N,{value:h(),refetching:w})}catch(U){F=U}});if(F!==void 0){B(o,void 0,v0(F),N);return}else if(!lrr(M))return B(o,M,void 0,N),M;return o=M,"v"in M?(M.s===1?B(o,M.v,void 0,N):B(o,void 0,v0(M.v),N),M):(c=!0,queueMicrotask(function(){return c=!1}),Ai(function(){S(l?"refreshing":"pending"),v()},!1),M.then(function(U){return B(M,U,void 0,N)},function(U){return B(M,void 0,v0(U),N)}))}Object.defineProperties(C,{state:{get:function(){return E()}},error:{get:function(){return p()}},loading:{get:function get(){var w=E();return w==="pending"||w==="refreshing"}},latest:{get:function get(){if(!l)return C();var w=p();if(w&&!o)throw w;return h()}}});var q=Pe;return f?y$(function(){return q=Pe,y(!1)}):y(!1),[C,{refetch:function(w){return F$(q,function(){return y(w)})},mutate:d}]}function qi(r){if(!Tc&&rr===null)return r();var e=rr;rr=null;try{return Tc?Tc.untrack(r):r()}finally{rr=e}}function h1(r){return Pe===null||(Pe.cleanups===null?Pe.cleanups=[r]:Pe.cleanups.push(r)),r}function F$(r,e){var t=Pe,i=rr;Pe=r,rr=null;try{return Ai(e,!0)}catch(n){Q0(n)}finally{Pe=t,rr=i}}function frr(r){if(ie&&ie.running)return r(),ie.done;var e=rr,t=Pe;return Promise.resolve().then(function(){rr=e,Pe=t;var i;return(Mc||Yf)&&(i=ie||(ie={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),i.done||(i.done=new Promise(function(n){return i.resolve=n})),i.running=!0),Ai(r,!1),rr=Pe=null,i?i.done:void 0})}var _at=_sliced_to_array(at(!1),2),u4r=_at[0],Q$=_at[1];function k$(r){var e;return Pe&&Pe.context&&(e=Pe.context[r.id])!==void 0?e:r.defaultValue}var Yf;function R$(){var _this=this;var r=ie&&ie.running;if(this.sources&&(r?this.tState:this.state))if((r?this.tState:this.state)===ci)Uc(this);else{var e=Lr;Lr=null,Ai(function(){return B0(_this)},!1),Lr=e}if(rr){var e1=this.observers?this.observers.length:0;rr.sources?(rr.sources.push(this),rr.sourceSlots.push(e1)):(rr.sources=[this],rr.sourceSlots=[e1]),this.observers?(this.observers.push(rr),this.observerSlots.push(rr.sources.length-1)):(this.observers=[rr],this.observerSlots=[rr.sources.length-1])}return r&&ie.sources.has(this)?this.tValue:this.value}function N$(r,e,t){var i=ie&&ie.running&&ie.sources.has(r)?r.tValue:r.value;if(!r.comparator||!r.comparator(i,e)){if(ie){var n=ie.running;(n||!t&&ie.sources.has(r))&&(ie.sources.add(r),r.tValue=e),n||(r.value=e)}else r.value=e;r.observers&&r.observers.length&&Ai(function(){for(var n=0;n<r.observers.length;n+=1){var a=r.observers[n],o=ie&&ie.running;o&&ie.disposed.has(a)||((o?!a.tState:!a.state)&&(a.pure?Lr.push(a):Et.push(a),a.observers&&T$(a)),o?a.tState=ci:a.state=ci)}if(Lr.length>1e6)throw Lr=[],new Error},!1)}return e}function Uc(r){if(!r.fn)return;Co(r);var e=E0;b$(r,ie&&ie.running&&ie.sources.has(r)?r.tValue:r.value,e),ie&&!ie.running&&ie.sources.has(r)&&queueMicrotask(function(){Ai(function(){ie&&(ie.running=!0),rr=Pe=r,b$(r,r.tValue,e),rr=Pe=null},!1)})}function b$(r,e,t){var i,n=Pe,a=rr;rr=Pe=r;try{i=r.fn(e)}catch(o){return r.pure&&(ie&&ie.running?(r.tState=ci,r.tOwned&&r.tOwned.forEach(Co),r.tOwned=void 0):(r.state=ci,r.owned&&r.owned.forEach(Co),r.owned=null)),r.updatedAt=t+1,Q0(o)}finally{rr=a,Pe=n}(!r.updatedAt||r.updatedAt<=t)&&(r.updatedAt!=null&&"observers"in r?N$(r,i,!0):ie&&ie.running&&r.pure?(ie.sources.add(r),r.tValue=i):r.value=i,r.updatedAt=t)}function y0(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ci,n=arguments.length>4?arguments[4]:void 0;var a={fn:r,state:i,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:e,owner:Pe,context:Pe?Pe.context:null,pure:t};if(ie&&ie.running&&(a.state=0,a.tState=i),Pe===null||Pe!==q$&&(ie&&ie.running&&Pe.pure?Pe.tOwned?Pe.tOwned.push(a):Pe.tOwned=[a]:Pe.owned?Pe.owned.push(a):Pe.owned=[a]),Tc&&a.fn){var _at=_sliced_to_array(at(void 0,{equals:!1}),2),o=_at[0],s=_at[1],A=Tc.factory(a.fn,s);h1(function(){return A.dispose()});var u=function(){return frr(s).then(function(){return c.dispose()})},c=Tc.factory(a.fn,u);a.fn=function(l){return o(),ie&&ie.running?c.track(l):A.track(l)}}return a}function zf(r){var e=ie&&ie.running;if((e?r.tState:r.state)===0)return;if((e?r.tState:r.state)===Vf)return B0(r);if(r.suspense&&qi(r.suspense.inFallback))return r.suspense.effects.push(r);var t=[r];for(;(r=r.owner)&&(!r.updatedAt||r.updatedAt<E0);){if(e&&ie.disposed.has(r))return;(e?r.tState:r.state)&&t.push(r)}for(var i=t.length-1;i>=0;i--){if(r=t[i],e){var n=r,a=t[i+1];for(;(n=n.owner)&&n!==a;)if(ie.disposed.has(n))return}if((e?r.tState:r.state)===ci)Uc(r);else if((e?r.tState:r.state)===Vf){var n1=Lr;Lr=null,Ai(function(){return B0(r,t[0])},!1),Lr=n1}}}function Ai(r,e){if(Lr)return r();var t=!1;e||(Lr=[]),Et?t=!0:Et=[],E0++;try{var _$i=r();return grr(t),_$i}catch(i){t||(Et=null),Lr=null,Q0(i)}}function grr(r){if(Lr&&(Mc&&ie&&ie.running?drr(Lr):O$(Lr),Lr=null),r)return;var e;if(ie){if(!ie.promises.size&&!ie.queue.size){var i=ie.sources,n=ie.disposed;Et.push.apply(Et,ie.effects),e=ie.resolve;var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=Et[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;"tState"in a&&(a.state=a.tState),delete a.tState}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}ie=null,Ai(function(){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=n[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;Co(a)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var _iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator1=i[Symbol.iterator](),_step1;!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){var a1=_step1.value;if(a1.value=a1.tValue,a1.owned)for(var o=0,s=a1.owned.length;o<s;o++)Co(a1.owned[o]);a1.tOwned&&(a1.owned=a1.tOwned),delete a1.tValue,delete a1.tOwned,a1.tState=0}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}Q$(!1)},!1)}else if(ie.running){ie.running=!1,ie.effects.push.apply(ie.effects,Et),Et=null,Q$(!0);return}}var t=Et;Et=null,t.length&&Ai(function(){return _$(t)},!1),e&&e()}function O$(r){for(var e=0;e<r.length;e++)zf(r[e])}function drr(r){var _loop=function(e){var t=r[e],i=ie.queue;i.has(t)||(i.add(t),Mc(function(){i.delete(t),Ai(function(){ie.running=!0,zf(t)},!1),ie&&(ie.running=!1)}))};for(var e=0;e<r.length;e++)_loop(e)}function hrr(r){var e,t=0;for(e=0;e<r.length;e++){var i=r[e];i.user?r[t++]=i:zf(i)}if(ze.context){if(ze.count){var _ze_effects;ze.effects||(ze.effects=[]),(_ze_effects=ze.effects).push.apply(_ze_effects,_to_consumable_array(r.slice(0,t)));return}g1()}for(ze.effects&&(ze.done||!ze.count)&&(r=_to_consumable_array(ze.effects).concat(_to_consumable_array(r)),t+=ze.effects.length,delete ze.effects),e=0;e<t;e++)zf(r[e])}function B0(r,e){var t=ie&&ie.running;t?r.tState=0:r.state=0;for(var i=0;i<r.sources.length;i+=1){var n=r.sources[i];if(n.sources){var a=t?n.tState:n.state;a===ci?n!==e&&(!n.updatedAt||n.updatedAt<E0)&&zf(n):a===Vf&&B0(n,e)}}}function T$(r){var e=ie&&ie.running;for(var t=0;t<r.observers.length;t+=1){var i=r.observers[t];(e?!i.tState:!i.state)&&(e?i.tState=Vf:i.state=Vf,i.pure?Lr.push(i):Et.push(i),i.observers&&T$(i))}}function Co(r){var e;if(r.sources)for(;r.sources.length;){var t=r.sources.pop(),i=r.sourceSlots.pop(),n=t.observers;if(n&&n.length){var a=n.pop(),o=t.observerSlots.pop();i<n.length&&(a.sourceSlots[o]=i,n[i]=a,t.observerSlots[i]=o)}}if(r.tOwned){for(e=r.tOwned.length-1;e>=0;e--)Co(r.tOwned[e]);delete r.tOwned}if(ie&&ie.running&&r.pure)P$(r,!0);else if(r.owned){for(e=r.owned.length-1;e>=0;e--)Co(r.owned[e]);r.owned=null}if(r.cleanups){for(e=r.cleanups.length-1;e>=0;e--)r.cleanups[e]();r.cleanups=null}ie&&ie.running?r.tState=0:r.state=0}function P$(r,e){if(e||(r.tState=0,ie.disposed.add(r)),r.owned)for(var t=0;t<r.owned.length;t++)P$(r.owned[t])}function v0(r){return _instanceof(r,Error)?r:new Error(typeof r=="string"?r:"Unknown error",{cause:r})}function w$(r,e,t){try{var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _$i=_step.value;_$i(r)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}catch(i){Q0(i,t&&t.owner||null)}}function Q0(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pe;var t=E$&&e&&e.context&&e.context[E$],i=v0(r);if(!t)throw i;Et?Et.push({fn:function fn(){w$(i,t,e)},state:ci}):w$(i,t,e)}var Irr=Symbol("fallback");function S$(r){for(var e=0;e<r.length;e++)r[e]()}function prr(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var i=[],n=[],a=[],o=0,s=e.length>1?[]:null;return h1(function(){return S$(a)}),function(){var f=function f(g){if(a[l]=g,s){var _at=_sliced_to_array(at(l),2),h=_at[0],d=_at[1];return s[l]=d,e(A[l],h)}return e(A[l])};var A=r()||[],u=A.length,c,l;return A[urr],qi(function(){var g,h,d,p,m,x,v,E,S;if(u===0)o!==0&&(S$(a),a=[],i=[],n=[],o=0,s&&(s=[])),t.fallback&&(i=[Irr],n[0]=Kf(function(B){return a[0]=B,t.fallback()}),o=1);else if(o===0){for(n=new Array(u),l=0;l<u;l++)i[l]=A[l],n[l]=Kf(f);o=u}else{for(d=new Array(u),p=new Array(u),s&&(m=new Array(u)),x=0,v=Math.min(o,u);x<v&&i[x]===A[x];x++);for(v=o-1,E=u-1;v>=x&&E>=x&&i[v]===A[E];v--,E--)d[E]=n[v],p[E]=a[v],s&&(m[E]=s[v]);for(g=new Map,h=new Array(E+1),l=E;l>=x;l--)S=A[l],c=g.get(S),h[l]=c===void 0?-1:c,g.set(S,l);for(c=x;c<=v;c++)S=i[c],l=g.get(S),l!==void 0&&l!==-1?(d[l]=n[c],p[l]=a[c],s&&(m[l]=s[c]),l=h[l],g.set(S,l)):a[c]();for(l=x;l<u;l++)l in d?(n[l]=d[l],a[l]=p[l],s&&(s[l]=m[l],s[l](l))):n[l]=Kf(f);n=n.slice(0,o=u),i=A.slice(0)}return n})}}var xrr=!1;function ui(r,e){if(xrr&&ze.context){var t=ze.context;g1(srr());var i=qi(function(){return r(e||{})});return g1(t),i}return qi(function(){return r(e||{})})}var mrr=function(r){return"Stale read from <".concat(r,">.")};function I1(r){var e="fallback"in r&&{fallback:function(){return r.fallback}};return Pc(prr(function(){return r.each},r.children,e||void 0))}function jf(r){var e=r.keyed,t=Pc(function(){return r.when},void 0,void 0),i=e?t:Pc(t,void 0,{equals:function(n,a){return!n==!a}});return Pc(function(){var n=i();if(n){var a=r.children;return typeof a=="function"&&a.length>0?qi(function(){return a(e?n:function(){if(!qi(i))throw mrr("Show");return t()})}):a}return r.fallback},void 0,void 0)}var Crr=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],C4r=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable"].concat(_to_consumable_array(Crr)));function Brr(r,e,t){var i=t.length,n=e.length,a=i,o=0,s=0,A=e[n-1].nextSibling,u=null;for(;o<n||s<a;){if(e[o]===t[s]){o++,s++;continue}for(;e[n-1]===t[a-1];)n--,a--;if(n===o){var c=a<i?s?t[s-1].nextSibling:t[a-s]:A;for(;s<a;)r.insertBefore(t[s++],c)}else if(a===s)for(;o<n;)(!u||!u.has(e[o]))&&e[o].remove(),o++;else if(e[o]===t[a-1]&&t[s]===e[n-1]){var c2=e[--n].nextSibling;r.insertBefore(t[s++],e[o++].nextSibling),r.insertBefore(t[--a],c2),e[n]=t[a]}else{if(!u){u=new Map;var l=s;for(;l<a;)u.set(t[l],l++)}var c3=u.get(e[o]);if(c3!=null)if(s<c3&&c3<a){var l2=o,f=1,g=void 0;for(;++l2<n&&l2<a&&!((g=u.get(e[l2]))==null||g!==c3+f);)f++;if(f>c3-s){var h=e[o];for(;s<c3;)r.insertBefore(t[s++],h)}else r.replaceChild(t[s++],e[o++])}else o++;else e[o++].remove()}}}var M$="_$DX_DELEGATE";function G$(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};var n;return Kf(function(a){n=a,e===document?r():ot(e,r(),e.firstChild?null:void 0,t)},i.owner),function(){n(),e.textContent=""}}function oa(r,e,t,i){var n,a=function(){var s=i?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return s.innerHTML=r,t?s.content.firstChild.firstChild:i?s.firstChild:s.content.firstChild},o=e?function(){return qi(function(){return document.importNode(n||(n=a()),!0)})}:function(){return(n||(n=a())).cloneNode(!0)};return o.cloneNode=o,o}function Lc(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window.document;var t=e[M$]||(e[M$]=new Set);for(var i=0,n=r.length;i<n;i++){var a=r[i];t.has(a)||(t.add(a),e.addEventListener(a,Err))}}function L$(r,e){W$(r)||(e==null?r.removeAttribute("class"):r.className=e)}function H$(r,e,t,i){if(i)Array.isArray(t)?(r["$$".concat(e)]=t[0],r["$$".concat(e,"Data")]=t[1]):r["$$".concat(e)]=t;else if(Array.isArray(t)){var n=t[0];r.addEventListener(e,t[0]=function(a){return n.call(r,t[1],a)})}else r.addEventListener(e,t,typeof t!="function"&&t)}function ot(r,e,t,i){if(t!==void 0&&!i&&(i=[]),typeof e!="function")return w0(r,e,i,t);Bo(function(n){return w0(r,e(),n,t)},i)}function W$(r){return!!ze.context&&!ze.done&&(!r||r.isConnected)}function Err(r){if(ze.registry&&ze.events&&ze.events.find(function(param){var _param=_sliced_to_array(param,2),A=_param[0],u=_param[1];return u===r}))return;var e=r.target,t="$$".concat(r.type),i=r.target,n=r.currentTarget,a=function(A){return Object.defineProperty(r,"target",{configurable:!0,value:A})},o=function(){var A=e[t];if(A&&!e.disabled){var u=e["".concat(t,"Data")];if(u!==void 0?A.call(e,u,r):A.call(e,r),r.cancelBubble)return}return e.host&&typeof e.host!="string"&&!e.host._$host&&e.contains(r.target)&&a(e.host),!0},s=function(){for(;o()&&(e=e._$host||e.parentNode||e.host););};if(Object.defineProperty(r,"currentTarget",{configurable:!0,get:function get(){return e||document}}),ze.registry&&!ze.done&&(ze.done=_$HY.done=!0),r.composedPath){var A=r.composedPath();a(A[0]);for(var u=0;u<A.length-2&&(e=A[u],!!o());u++){if(e._$host){e=e._$host,s();break}if(e.parentNode===n)break}}else s();a(i)}function w0(r,e,t,i,n){var a=W$(r);if(a){!t&&(t=_to_consumable_array(r.childNodes));var A=[];for(var u=0;u<t.length;u++){var c=t[u];c.nodeType===8&&c.data.slice(0,2)==="!$"?c.remove():A.push(c)}t=A}for(;typeof t=="function";)t=t();if(e===t)return t;var o=typeof e==="undefined"?"undefined":_type_of(e),s=i!==void 0;if(r=s&&t[0]&&t[0].parentNode||r,o==="string"||o==="number"){if(a||o==="number"&&(e=e.toString(),e===t))return t;if(s){var A2=t[0];A2&&A2.nodeType===3?A2.data!==e&&(A2.data=e):A2=document.createTextNode(e),t=Gc(r,t,i,A2)}else t!==""&&typeof t=="string"?t=r.firstChild.data=e:t=r.textContent=e}else if(e==null||o==="boolean"){if(a)return t;t=Gc(r,t,i)}else{if(o==="function")return Bo(function(){var A=e();for(;typeof A=="function";)A=A();t=w0(r,A,t,i)}),function(){return t};if(Array.isArray(e)){var A3=[],u2=t&&Array.isArray(t);if(p1(A3,e,t,n))return Bo(function(){return t=w0(r,A3,t,i,!0)}),function(){return t};if(a){if(!A3.length)return t;if(i===void 0)return t=_to_consumable_array(r.childNodes);var c2=A3[0];if(c2.parentNode!==r)return t;var l=[c2];for(;(c2=c2.nextSibling)!==i;)l.push(c2);return t=l}if(A3.length===0){if(t=Gc(r,t,i),s)return t}else u2?t.length===0?U$(r,A3,i):Brr(r,t,A3):(t&&Gc(r),U$(r,A3));t=A3}else if(e.nodeType){if(a&&e.parentNode)return t=s?[e]:e;if(Array.isArray(t)){if(s)return t=Gc(r,t,i,e);Gc(r,t,null,e)}else t==null||t===""||!r.firstChild?r.appendChild(e):r.replaceChild(e,r.firstChild);t=e}}return t}function p1(r,e,t,i){var n=!1;for(var a=0,o=e.length;a<o;a++){var s=e[a],A=t&&t[r.length],u=void 0;if(!(s==null||s===!0||s===!1))if((u=typeof s==="undefined"?"undefined":_type_of(s))=="object"&&s.nodeType)r.push(s);else if(Array.isArray(s))n=p1(r,s,A)||n;else if(u==="function")if(i){for(;typeof s=="function";)s=s();n=p1(r,Array.isArray(s)?s:[s],Array.isArray(A)?A:[A])||n}else r.push(s),n=!0;else{var c=String(s);A&&A.nodeType===3&&A.data===c?r.push(A):r.push(document.createTextNode(c))}}return n}function U$(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;for(var i=0,n=e.length;i<n;i++)r.insertBefore(e[i],t)}function Gc(r,e,t,i){if(t===void 0)return r.textContent="";var n=i||document.createTextNode("");if(e.length){var a=!1;for(var o=e.length-1;o>=0;o--){var s=e[o];if(n!==s){var A=s.parentNode===r;!a&&!o?A?r.replaceChild(n,s):r.insertBefore(n,t):A&&s.remove()}else a=!0}}else r.insertBefore(n,t);return[n]}var B4r=Symbol();var tee=Le(require("obsidian"),1),iee=Le(kr(),1);var V$=Le(require("obsidian"),1);var yrr=oa('<div class="flex gap-2 items-center max-w-full border-rounded px-1 hover:cursor-not-allowed opacity-20"><div class="i-custom:file size-10"></div><span class="truncate flex-1">');function Qrr(r){return function(){var e=yrr(),t=e.firstChild,i=t.nextSibling;return ot(i,function(){return r.name}),e}()}var J$=Qrr;var wrr=oa('<div class="flex gap-2 items-center max-w-full hover:bg-[var(--interactive-accent)] border-rounded px-1"><div class="i-custom:folder size-10"></div><span class="truncate flex-1">');function Srr(r){return function(){var e=wrr(),t=e.firstChild,i=t.nextSibling;return e.$$click=function(){return r.onClick(r.path)},ot(i,function(){return r.name}),e}()}var K$=Srr;Lc(["click"]);function Y$(){var _at=_sliced_to_array(at(0),2),r=_at[0],e=_at[1];return{refresh:function refresh(){e(function(t){return++t})},FileList:function FileList(t){var _at=_sliced_to_array(at([]),2),i=_at[0],n=_at[1],a=function(){return i().sort(function(s,A){return s.isDir===A.isDir?s.basename.localeCompare(A.basename,["zh"]):s.isDir&&!A.isDir?-1:1})};function o(){return _async_to_generator(function(){var _$s,s;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,t.fs.ls(t.path)];case 1:_$s=_state.sent();n(_$s);return[3,3];case 2:s=_state.sent();_instanceof(s,Error)&&new V$.Notice(s.message);return[3,3];case 3:return[2]}})})()}return d1(function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(r()===0))return[3,2];return[4,o()];case 1:_state.sent();return[2];case 2:e(0);return[2]}})})()}),ui(I1,{get each(){return a()},children:function(s){return ui(jf,{get when(){return s.isDir},get fallback(){return ui(J$,{get name(){return s.basename}})},get children(){return ui(K$,{get name(){return s.basename},get path(){return s.path},onClick:function(){return t.onClick(s)}})}})}})}}}var z$=function(r){return r!=null&&(r=Object.getPrototypeOf(r),r===Array.prototype||r===Object.prototype)};function j$(r,e,t){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=Object.entries(e)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_sliced_to_array(_step.value,2),i=_step_value[0],n=_step_value[1];var a="".concat(t,".").concat(i);r[a]=n,z$(n)&&j$(r,n,a)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}function x1(r){var e=_object_spread({},r);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=Object.entries(r)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_sliced_to_array(_step.value,2),t=_step_value[0],i=_step_value[1];z$(i)&&j$(e,i,t)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e}var Drr=function(r){return r};function X$(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Drr;return function(t){for(var _len=arguments.length,i=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){i[_key-1]=arguments[_key]}var a;t[0]==="."&&(t=t.slice(1));var n=(a=r())==null?void 0:a[t];switch(typeof n==="undefined"?"undefined":_type_of(n)){case"function":return n.apply(void 0,_to_consumable_array(i));case"string":return e(n,i[0]);default:return n}}}var krr={newFolder:"New Folder",goBack:"Go Back",confirm:"Confirm",cancel:"Cancel",currentPath:"Current Path"},Z$=krr;var Nrr={newFolder:"新建文件夹",goBack:"返回上一层",confirm:"确定",cancel:"取消",currentPath:"当前路径"},$$=Nrr;function Trr(r){switch(r.split("-")[0].toLowerCase()){case"zh":return"zh";default:return"en"}}var _at1=_sliced_to_array(at(Trr(navigator.language)),2),Prr=_at1[0],w4r=_at1[1],_D$=_sliced_to_array(D$(Prr,function(r){switch(r){case"zh":return x1($$);default:return x1(Z$)}}),1),Mrr=_D$[0],sa=X$(Mrr);var Urr=oa('<div><div class="i-custom:folder size-10"></div><input type=text class=flex-1 autofocus><button></button><button>');function Grr(r){var _at=_sliced_to_array(at(""),2),e=_at[0],t=_at[1],i=function(){return"flex items-center gap-2 px-1 ".concat(r.class)};return function(){var n=Urr(),a=n.firstChild,o=a.nextSibling,s=o.nextSibling,A=s.nextSibling;return o.$$input=function(u){return t(u.target.value)},s.$$click=function(){return r.onConfirm(e())},ot(s,function(){return sa("confirm")}),A.$$click=function(){return r.onCancel()},ot(A,function(){return sa("cancel")}),Bo(function(){return L$(n,i())}),Bo(function(){return o.value=e()}),n}()}var ree=Grr;Lc(["input","click"]);var Hrr=oa('<div class="flex-1 flex flex-col overflow-y-auto scrollbar-hide">'),Wrr=oa('<div class="flex flex-col gap-4 h-50vh"><div class="flex gap-2 text-xs"><span>:</span><span class=break-all></span></div><div class="flex items-center gap-2"><button></button><a class=no-underline></a><div class=flex-1></div><button></button><button>');function Jrr(r){var _at=_sliced_to_array(at(["/"]),2),e=_at[0],t=_at[1],_at1=_sliced_to_array(at(!1),2),i=_at1[0],n=_at1[1],a=function(){return e().at(-1)};function o(u){t(function(c){return _to_consumable_array(c).concat([u])})}function s(){t(function(u){return u.length>1?u.slice(0,u.length-1):u})}var A=function(){var u=Y$();return function(){var c=Hrr();return ot(c,ui(jf,{get when(){return i()},get children(){return ui(ree,{class:"mt-1",onCancel:function(){return n(!1)},onConfirm:function(l){return _async_to_generator(function(){var g,f;return _ts_generator(this,function(_state){switch(_state.label){case 0:f=iee.default.join((g=a())!=null?g:"/",l);return[4,Promise.resolve(r.fs.mkdirs(f)).then(function(){n(!1),u.refresh()}).catch(function(h){_instanceof(h,Error)&&new tee.Notice(h.message)})];case 1:_state.sent();return[2]}})})()}})}}),null),ot(c,ui(u.FileList,{get fs(){return r.fs},get path(){var l;return(l=a())!=null?l:""},onClick:function(l){return o(l.path)}}),null),c}()};return function(){var u=Wrr(),c=u.firstChild,l=c.firstChild,f=l.firstChild,g=l.nextSibling,h=c.nextSibling,d=h.firstChild,p=d.nextSibling,m=p.nextSibling,x=m.nextSibling,v=x.nextSibling;return ot(u,ui(A,{}),c),ot(l,function(){return sa("currentPath")},f),ot(g,function(){var E;return(E=a())!=null?E:"/"}),d.$$click=s,ot(d,function(){return sa("goBack")}),p.$$click=function(){return n(!0)},ot(p,function(){return sa("newFolder")}),H$(x,"click",r.onClose,!0),ot(x,function(){return sa("cancel")}),v.$$click=function(){var E;return r.onConfirm((E=a())!=null?E:"/")},ot(v,function(){return sa("confirm")}),u}()}var nee=Jrr;Lc(["click"]);function aee(r,e){return G$(function(){return ui(nee,e)},r)}function oee(r,e){return r.createDirectory(e,{recursive:!0})}var ys=/*#__PURE__*/function(_see_Modal){"use strict";_inherits(ys1,_see_Modal);function ys1(t,i,n){_class_call_check(this,ys1);var _this;_this=_call_super(this,ys1,[t]);_this.plugin=i;_this.onConfirm=n;return _this}_create_class(ys1,[{key:"onOpen",value:function onOpen(){return _async_to_generator(function(){var _this,_this1,t,i,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_this1=this,t=_this1.contentEl,i=document.createElement("div");t.appendChild(i);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:n=_state.sent();aee(i,{fs:{ls:function(a){return _async_to_generator(function(){var o;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.plugin.getToken()];case 1:o=_state.sent();return[4,Nc(o,a)];case 2:return[2,_state.sent().map(fo)]}})}).call(_this)},mkdirs:function(a){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,oee(n,a)];case 1:_state.sent();return[2]}})})()}},onClose:function(){i.remove(),_this.close()},onConfirm:function(a){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Promise.resolve(this.onConfirm(nt(a)))];case 1:_state.sent(),i.remove(),this.close();return[2]}})}).call(_this)}});return[2]}})}).call(this)}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return ys1}(see.Modal);var Xf=/*#__PURE__*/function(oi1){"use strict";_inherits(Xf1,oi1);function Xf1(){_class_call_check(this,Xf1);return _call_super(this,Xf1,arguments)}_create_class(Xf1,[{key:"display",value:function display(){return _async_to_generator(function(){var _this;return _ts_generator(this,function(_state){_this=this;this.containerEl.empty(),new yn.Setting(this.containerEl).setName(_.t("settings.cache.title")).setHeading(),new yn.Setting(this.containerEl).setName(_.t("settings.cache.remoteCacheDir.name")).setDesc(_.t("settings.cache.remoteCacheDir.desc")).addText(function(e){e.setPlaceholder(_.t("settings.cache.remoteCacheDir.placeholder")).setValue(_this.remoteCacheDir).onChange(function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.remoteCacheDir=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)}),e.inputEl.addEventListener("blur",function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.remoteCacheDir=this.remoteCacheDir;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})}).call(_this)})}).addButton(function(e){e.setIcon("folder").onClick(function(){if(!_this.plugin.isAccountConfigured()){new yn.Notice(_.t("sync.error.accountNotConfigured"));return}new ys(_this.app,_this.plugin,function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.remoteCacheDir=t;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})}).call(_this)}).open()})}),new yn.Setting(this.containerEl).setName(_.t("settings.cache.dumpName")).setDesc(_.t("settings.cache.dumpDesc")).addButton(function(e){e.setButtonText(_.t("settings.cache.dump")).onClick(function(){new Jf(_this.plugin,_this.remoteCacheDir,function(){return _this.display()}).open()})}).addButton(function(e){e.setButtonText(_.t("settings.cache.restore")).onClick(function(){new Wf(_this.plugin,_this.remoteCacheDir,function(){return _this.display()}).open()})}),new yn.Setting(this.containerEl).setName(_.t("settings.cache.clearName")).setDesc(_.t("settings.cache.clearDesc")).addButton(function(e){e.setButtonText(_.t("settings.cache.clear")).onClick(function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){new qc(this.plugin,function(t){return _async_to_generator(function(){var i;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,qc.clearSelectedCaches(t)];case 1:_state.sent().length>0?new yn.Notice(_.t("settings.cache.cleared")):new yn.Notice(_.t("settings.cache.clearModal.nothingSelected"));return[3,3];case 2:i=_state.sent();z.error("Error clearing cache:",i),new yn.Notice("Error clearing cache: ".concat(i.message));return[3,3];case 3:return[2]}})})()}).open();return[2]})}).call(_this)})});return[2]})}).call(this)}},{key:"remoteCacheDir",get:function get(){var e;return nt(((e=this.plugin.settings.remoteCacheDir)==null?void 0:e.trim())||this.plugin.manifest.name.trim())}},{key:"remoteCachePath",get:function get(){var e=aa(this.app.vault.getName(),this.plugin.settings.remoteDir);return(0,Aee.join)(this.remoteCacheDir,e+".json")}},{key:"createRemoteCacheDir",value:function createRemoteCacheDir(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:return[4,_state.sent().createDirectory(this.remoteCacheDir,{recursive:!0})];case 2:return[2,_state.sent()]}})}).call(this)}}]);return Xf1}(oi);var $f=Le(C1());var br=require("obsidian");function B1(r){return r!=null&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"&&r["@@functional/placeholder"]===!0}function Zf(r){return function e(t){return arguments.length===0||B1(t)?e:r.apply(this,arguments)}}var itr=Zf(function(e){return e==null}),gee=itr;var ntr=Zf(function(e){return!gee(e)}),Aa=ntr;function dee(r){return!isNaN(parseFloat(r))&&Ec(Number(r))}var E1="500MB",atr=(0,$f.parse)(E1,{mode:"jedec"}),eg=/*#__PURE__*/function(oi1){"use strict";_inherits(eg1,oi1);function eg1(){_class_call_check(this,eg1);return _call_super(this,eg1,arguments)}_create_class(eg1,[{key:"display",value:function display(){return _async_to_generator(function(){var _this;return _ts_generator(this,function(_state){_this=this;this.containerEl.empty(),new br.Setting(this.containerEl).setName(_.t("settings.sections.common")).setHeading(),new br.Setting(this.containerEl).setName(_.t("settings.remoteDir.name")).setDesc(_.t("settings.remoteDir.desc")).addText(function(e){e.setPlaceholder(_.t("settings.remoteDir.placeholder")).setValue(_this.plugin.remoteBaseDir).onChange(function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.remoteDir=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)}),e.inputEl.addEventListener("blur",function(){_this.plugin.settings.remoteDir=_this.plugin.remoteBaseDir,_this.display()})}).addButton(function(e){e.setIcon("folder").onClick(function(){if(!_this.plugin.isAccountConfigured()){new br.Notice(_.t("sync.error.accountNotConfigured"));return}new ys(_this.app,_this.plugin,function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.remoteDir=t;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})}).call(_this)}).open()})}),new br.Setting(this.containerEl).setName(_.t("settings.skipLargeFiles.name")).setDesc(_.t("settings.skipLargeFiles.desc")).addText(function(e){var t=_this.plugin.settings.skipLargeFiles.maxSize.trim();e.setPlaceholder(_.t("settings.skipLargeFiles.placeholder")).setValue(t),e.inputEl.addEventListener("blur",function(){_this.handleMaxFileSizeBlur(e)})}),new br.Setting(this.containerEl).setName(_.t("settings.conflictStrategy.name")).setDesc(_.t("settings.conflictStrategy.desc")).addDropdown(function(e){return e.addOption("diff-match-patch",_.t("settings.conflictStrategy.diffMatchPatch")).addOption("latest-timestamp",_.t("settings.conflictStrategy.latestTimestamp")).addOption("skip",_.t("settings.conflictStrategy.skip")).setValue(_this.plugin.settings.conflictStrategy).onChange(function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.conflictStrategy=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)})}),new br.Setting(this.containerEl).setName(_.t("settings.useGitStyle.name")).setDesc(_.t("settings.useGitStyle.desc")).addToggle(function(e){return e.setValue(_this.plugin.settings.useGitStyle).onChange(function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.useGitStyle=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)})}),new br.Setting(this.containerEl).setName(_.t("settings.confirmBeforeSync.name")).setDesc(_.t("settings.confirmBeforeSync.desc")).addToggle(function(e){return e.setValue(_this.plugin.settings.confirmBeforeSync).onChange(function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.confirmBeforeSync=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)})}),new br.Setting(this.containerEl).setName(_.t("settings.confirmBeforeDeleteInAutoSync.name")).setDesc(_.t("settings.confirmBeforeDeleteInAutoSync.desc")).addToggle(function(e){return e.setValue(_this.plugin.settings.confirmBeforeDeleteInAutoSync).onChange(function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.confirmBeforeDeleteInAutoSync=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)})}),new br.Setting(this.containerEl).setName(_.t("settings.realtimeSync.name")).setDesc(_.t("settings.realtimeSync.desc")).addToggle(function(e){return e.setValue(_this.plugin.settings.realtimeSync).onChange(function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.realtimeSync=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)})}),new br.Setting(this.containerEl).setName(_.t("settings.startupSyncDelay.name")).setDesc(_.t("settings.startupSyncDelay.desc")).addText(function(e){e.setPlaceholder(_.t("settings.startupSyncDelay.placeholder")).setValue(_this.plugin.settings.startupSyncDelaySeconds.toString()).onChange(function(i){return _async_to_generator(function(){var n,a;return _ts_generator(this,function(_state){switch(_state.label){case 0:n=parseFloat(i);if(!!isNaN(n))return[3,2];a=co(n,0,86400);this.plugin.settings.startupSyncDelaySeconds=a;return[4,this.plugin.saveSettings()];case 1:_state.sent(),a!==n&&(new br.Notice(_.t("settings.startupSyncDelay.exceedsMax",{max:86400})),e.setValue(a.toString()));_state.label=2;case 2:return[2]}})}).call(_this)}),e.inputEl.addEventListener("blur",function(){return _async_to_generator(function(){var i,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:i=parseFloat(e.getValue()),n=isNaN(i)?0:co(i,0,86400);isNaN(i)?new br.Notice(_.t("settings.startupSyncDelay.invalidValue")):n!==i&&new br.Notice(_.t("settings.startupSyncDelay.exceedsMax",{max:86400})),e.setValue(n.toString()),this.plugin.settings.startupSyncDelaySeconds=n;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)}),e.inputEl.type="number",e.inputEl.min="0",e.inputEl.max=86400..toString()}),new br.Setting(this.containerEl).setName(_.t("settings.autoSyncInterval.name")).setDesc(_.t("settings.autoSyncInterval.desc")).addText(function(e){e.setPlaceholder(_.t("settings.autoSyncInterval.placeholder")).setValue(Math.round(_this.plugin.settings.autoSyncIntervalSeconds/60).toString()).onChange(function(i){return _async_to_generator(function(){var n,a;return _ts_generator(this,function(_state){switch(_state.label){case 0:n=parseFloat(i);if(!!isNaN(n))return[3,3];a=co(n,0,1440);this.plugin.settings.autoSyncIntervalSeconds=a*60;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[4,this.plugin.scheduledSyncService.updateInterval()];case 2:_state.sent(),a!==n&&(new br.Notice(_.t("settings.autoSyncInterval.exceedsMax",{max:1440})),e.setValue(a.toString()));_state.label=3;case 3:return[2]}})}).call(_this)}),e.inputEl.addEventListener("blur",function(){return _async_to_generator(function(){var i,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:i=parseFloat(e.getValue()),n=isNaN(i)?0:Math.round(co(i,0,1440));e.setValue(n.toString()),isNaN(i)?new br.Notice(_.t("settings.autoSyncInterval.invalidValue")):n!==i&&new br.Notice(_.t("settings.autoSyncInterval.exceedsMax",{max:1440})),this.plugin.settings.autoSyncIntervalSeconds=n*60;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[4,this.plugin.scheduledSyncService.updateInterval()];case 2:_state.sent();return[2]}})}).call(_this)}),e.inputEl.type="number",e.inputEl.min="0",e.inputEl.max=1440..toString(),e.inputEl.step="1"}),new br.Setting(this.containerEl).setName(_.t("settings.syncMode.name")).setDesc(_.t("settings.syncMode.desc")).addDropdown(function(e){return e.addOption("strict",_.t("settings.syncMode.strict")).addOption("loose",_.t("settings.syncMode.loose")).setValue(_this.plugin.settings.syncMode).onChange(function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.syncMode=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)})}),new br.Setting(this.containerEl).setName(_.t("settings.language.name")).setDesc(_.t("settings.language.desc")).addDropdown(function(e){return e.addOption("",_.t("settings.language.auto")).addOption("zh","简体中文").addOption("en","English").setValue(_this.plugin.settings.language||"").onChange(function(t){return _async_to_generator(function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_tmp=t==="zh"||t==="en"||t===""||jt(t);if(!_tmp)return[3,4];this.plugin.settings.language=t||void 0;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[4,this.plugin.i18nService.update()];case 2:_state.sent();return[4,this.settings.display()];case 3:_tmp=_state.sent();_state.label=4;case 4:_tmp;return[2]}})}).call(_this)})});return[2]})}).call(this)}},{key:"handleMaxFileSizeBlur",value:function handleMaxFileSizeBlur(e){return _async_to_generator(function(){var t,i,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:t=e.getValue().trim();t?(dee(t)||jt((0,$f.parse)(t))&&Aa((0,$f.parse)(t+"B")))&&(t+="B"):t=E1;i=(0,$f.parse)(t,{mode:"jedec"});if(i===null){new br.Notice(_.t("settings.skipLargeFiles.invalidFormat")),e.setValue(this.plugin.settings.skipLargeFiles.maxSize);return[2]}i>atr&&(new br.Notice(_.t("settings.skipLargeFiles.exceedsMaxSize")),t=E1),e.setValue(t);_tmp=this.plugin.settings.skipLargeFiles.maxSize!==t;if(!_tmp)return[3,2];this.plugin.settings.skipLargeFiles.maxSize=t;return[4,this.plugin.saveSettings()];case 1:_tmp=_state.sent();_state.label=2;case 2:_tmp;return[2]}})}).call(this)}}]);return eg1}(oi);var q0=require("obsidian");var rg=require("obsidian");var Cee=Le(xee());var Bee=Le(kr()),mee={caseSensitive:!1};function S0(r){return r.expr.trim()===""}function otr(r){var e="";return r.caseSensitive||(e+="i"),e}function Eee(r){var t=Bee.default.normalize(r).replace(/^\.+\//,"").replace(/^\/+/,""),i=t.endsWith("/"),n=i?t.slice(0,-1):t,a=n?n.split("/").filter(Boolean):[];return{normalized:a.join("/"),segments:a,isDirPath:i}}function vee(r,e){return(0,Cee.default)(r,{flags:otr(e),extended:!0,globstar:!0})}var ca=/*#__PURE__*/function(){"use strict";function ca1(e,t){_class_call_check(this,ca1);this.expr=e;this.options=t;var i=e.trim();this.isRooted=i.startsWith("/"),this.isDirOnly=i.endsWith("/"),this.patternBody=i.slice(this.isRooted?1:0,this.isDirOnly?-1:void 0),this.hasSlash=this.patternBody.includes("/"),this.patternBody!==""?this.isRooted||this.hasSlash?(this.pathRegex=vee(this.patternBody,t),this.re=this.pathRegex):(this.segmentRegex=vee(this.patternBody,t),this.re=this.segmentRegex):this.re=/^$/}_create_class(ca1,[{key:"matchDirectoryBySegments",value:function matchDirectoryBySegments(e,t){var i;for(var n=0;n<e.length;n+=1)if((n<e.length-1||t)&&(i=this.segmentRegex)!=null&&i.test(e[n]))return!0;return!1}},{key:"matchDirectoryByPrefix",value:function matchDirectoryByPrefix(e,t){var i;for(var n=1;n<=e.length;n+=1){if(!(n<e.length||t))continue;var o=e.slice(0,n).join("/");if((i=this.pathRegex)!=null&&i.test(o))return!0}return!1}},{key:"test",value:function test(e){var _this=this;var a,o;if(this.patternBody==="")return!1;var _Eee=Eee(e),t=_Eee.normalized,i=_Eee.segments,n=_Eee.isDirPath;return this.isDirOnly?this.isRooted||this.hasSlash?this.matchDirectoryByPrefix(i,n):this.matchDirectoryBySegments(i,n):this.isRooted||this.hasSlash?(o=(a=this.pathRegex)==null?void 0:a.test(t))!=null?o:!1:i.some(function(s){var A;return(A=_this.segmentRegex)==null?void 0:A.test(s)})}}]);return ca1}();function yee(r){var e;return typeof r=="string"?vc(mee):(e=r.options)!=null?e:vc(mee)}function _0(r,e,t){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;if(a.test(r))return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var _iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator1=t[Symbol.iterator](),_step1;!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){var a1=_step1.value;if(a1.test(r))return!1}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}var _Eee=Eee(r),i=_Eee.segments,n=Math.max(i.length-1,0);for(var a3=1;a3<=n;a3+=1){var o="".concat(i.slice(0,a3).join("/"),"/");var _iteratorNormalCompletion2=true,_didIteratorError2=false,_iteratorError2=undefined;try{for(var _iterator2=t[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var s=_step2.value;if(s.test(o))return!1}}catch(err1){_didIteratorError2=true;_iteratorError2=err1}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}return!0}var Qee=function(t){return t.Include="include",t.Exclude="exclude",t}(Qee||{}),ua=/*#__PURE__*/function(_rg_Modal){"use strict";_inherits(ua1,_rg_Modal);function ua1(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"exclude";_class_call_check(this,ua1);var _this;_this=_call_super(this,ua1,[t.app]);_this.plugin=t;_this.onSave=n;_this.filterType=a;_this.filters=vc(i);return _this}_create_class(ua1,[{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;t.empty();var i=this.filterType==="include"?"settings.filters.include.name":"settings.filters.exclude.name",n=this.filterType==="include"?"settings.filters.include.desc":"settings.filters.exclude.desc";t.createEl("h2",{text:_.t(i)}),t.createEl("p",{text:_.t(n),cls:"setting-item-description"});var a=t.createDiv({cls:"flex flex-col gap-2 pb-2"}),o=function(){a.empty(),_this.filters.forEach(function(s,A){var f=function f(){var _l_classList,_l_classList1,_l_classList2,_l_classList3;var d=yee(s),p=["bg-[var(--interactive-accent)]!"],m=["background-none!","hover:bg-[--interactive-normal]!"];d.caseSensitive?((_l_classList=l.classList).add.apply(_l_classList,_to_consumable_array(p)),(_l_classList1=l.classList).remove.apply(_l_classList1,_to_consumable_array(m))):((_l_classList2=l.classList).remove.apply(_l_classList2,_to_consumable_array(p)),(_l_classList3=l.classList).add.apply(_l_classList3,_to_consumable_array(m)))};var u=a.createDiv({cls:"flex gap-2"}),c=a.createEl("input",{type:"text",cls:"flex-1",placeholder:_.t("settings.filters.placeholder"),value:s.expr});c.spellcheck=!1,c.addEventListener("input",function(){s.expr=c.value,_this.filters[A]=s});var l=a.createEl("button",{text:"Aa",cls:"shadow-none!"});f(),l.addEventListener("click",function(){s.options.caseSensitive=!s.options.caseSensitive,f()});var g=a.createEl("button",{text:_.t("settings.filters.remove")}),h=!1;g.addEventListener("click",function(){h?(_this.filters.splice(A,1),o()):(h=!0,g.setText(_.t("settings.filters.confirmRemove")),g.addClass("mod-warning"))}),g.addEventListener("blur",function(){h=!1,g.setText(_.t("settings.filters.remove")),g.removeClass("mod-warning")}),u.appendChild(c),u.appendChild(l),u.appendChild(g)})};o(),new rg.Setting(t).addButton(function(s){s.setButtonText(_.t("settings.filters.add")).onClick(function(){_this.filters.push({expr:"",options:{caseSensitive:!1}}),o()})}),new rg.Setting(t).addButton(function(s){s.setButtonText(_.t("settings.filters.save")).setCta().onClick(function(){_this.onSave(_this.filters),_this.close()})}).addButton(function(s){s.setButtonText(_.t("settings.filters.cancel")).onClick(function(){_this.close()})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return ua1}(rg.Modal);ua.FilterType=Qee;var tg=/*#__PURE__*/function(oi1){"use strict";_inherits(tg1,oi1);function tg1(){_class_call_check(this,tg1);return _call_super(this,tg1,arguments)}_create_class(tg1,[{key:"display",value:function display(){return _async_to_generator(function(){var _this;return _ts_generator(this,function(_state){_this=this;this.containerEl.empty(),new q0.Setting(this.containerEl).setName(_.t("settings.sections.filters")).setHeading(),new q0.Setting(this.containerEl).setName(_.t("settings.filters.include.name")).setDesc(_.t("settings.filters.include.desc")).addButton(function(e){e.setButtonText(_.t("settings.filters.edit")).onClick(function(){new ua(_this.plugin,_this.plugin.settings.filterRules.inclusionRules,function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.filterRules.inclusionRules=t;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})}).call(_this)},ua.FilterType.Include).open()})}),new q0.Setting(this.containerEl).setName(_.t("settings.filters.exclude.name")).setDesc(_.t("settings.filters.exclude.desc")).addButton(function(e){e.setButtonText(_.t("settings.filters.edit")).onClick(function(){new ua(_this.plugin,_this.plugin.settings.filterRules.exclusionRules,function(t){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.filterRules.exclusionRules=t;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})}).call(_this)},ua.FilterType.Exclude).open()})});return[2]})}).call(this)}}]);return tg1}(oi);var Eo=require("obsidian");function ig(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;var i;if(Bw(r))return"null";if(mw(r))return String(r);if(xw(r))return JSON.stringify(r);if(Cw(r))return Ec(r)?String(r):"null";if(yw(r)||gs(r)||Hi(r))return;if((typeof r==="undefined"?"undefined":_type_of(r))=="bigint")throw new TypeError("Do not know how to serialize a BigInt");if(Ew(r))return JSON.stringify(String(r));if(vw(r))return Ec(r.getTime())?JSON.stringify(r.toISOString()):"null";if(hw(r))return JSON.stringify({type:"Error",value:(i=r==null?void 0:r.toString())!=null?i:{name:r.name,message:r.message}});if((typeof r==="undefined"?"undefined":_type_of(r))!="object"||r===null)throw new Error("Internal error: Unexpected non-object type: ".concat(typeof r==="undefined"?"undefined":_type_of(r)));if(e.has(r))throw new TypeError("Converting circular structure to JSON");e.add(r);var t;try{if(nr(r))t="[".concat(pw(r,function(a){var o=ig(a,e);return o===void 0?"null":o}).join(","),"]");else{var n=Object.keys(r),a=[];n.forEach(function(o){var s;try{var _$A=r[o];s=ig(_$A,e)}catch(A){var u="Error accessing property";if(_instanceof(A,Error))u=A.message;else if((typeof A==="undefined"?"undefined":_type_of(A))=="object"&&A!==null&&"message"in A&&typeof A.message=="string")u=A.message;else try{u=String(A)}catch(c){}s=JSON.stringify(u)}if(s!==void 0){var _$A1=JSON.stringify(o);a.push("".concat(_$A1,":").concat(s))}}),t="{".concat(a.join(","),"}")}}finally{e.delete(r)}return t}function bee(r){if(typeof r=="string")return r;try{return JSON.stringify(r)}catch(e){try{return ig(r)}catch(t){}}}var ng=/*#__PURE__*/function(oi1){"use strict";_inherits(ng1,oi1);function ng1(){_class_call_check(this,ng1);return _call_super(this,ng1,arguments)}_create_class(ng1,[{key:"display",value:function display(){return _async_to_generator(function(){var _this;return _ts_generator(this,function(_state){_this=this;this.containerEl.empty(),new Eo.Setting(this.containerEl).setName(_.t("settings.log.title")).setHeading(),new Eo.Setting(this.containerEl).setName(_.t("settings.log.name")).setDesc(_.t("settings.log.desc")).addButton(function(e){e.setButtonText(_.t("settings.log.saveToNote")).onClick(function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.saveLogsToNote()];case 1:_state.sent();return[2]}})}).call(_this)})}),new Eo.Setting(this.containerEl).setName(_.t("settings.log.clearName")).setDesc(_.t("settings.log.clearDesc")).addButton(function(e){e.setButtonText(_.t("settings.log.clear")).onClick(function(){_this.plugin.loggerService.clear(),new Eo.Notice(_.t("settings.log.cleared"))})});return[2]})}).call(this)}},{key:"logs",get:function get(){return this.plugin.loggerService.logs.map(bee).filter(Aa).join("\n\n")}},{key:"saveLogsToNote",value:function saveLogsToNote(){return _async_to_generator(function(){var t,i,n,a,_tmp,s,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,6,,7]);t="nutstore-logs-".concat(new Date().toISOString().replace(/[:.]/g,"-"),".md"),i="nutstore-sync/logs",n="".concat(i,"/").concat(t),a="# Nutstore Plugin Logs\n\nGenerated at: ".concat(new Date().toLocaleString(),"\n\n---\n\n").concat(this.logs);return[4,this.app.vault.getFolderByPath(i)];case 1:_tmp=_state.sent();if(_tmp)return[3,3];return[4,this.app.vault.createFolder(i)];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[4,this.app.vault.create(n,a)];case 4:s=_state.sent();new Eo.Notice(_.t("settings.log.savedToNote",{fileName:n}));return[4,this.app.workspace.getLeaf().openFile(s)];case 5:_state.sent();return[3,7];case 6:e=_state.sent();new Eo.Notice(_.t("settings.log.saveError")),z.error("Failed to save logs to note:",e);return[3,7];case 7:return[2]}})}).call(this)}}]);return ng1}(oi);var y1=null;function Q1(r){y1=r}function str(){return ms(function(){return!!y1},100)}function yt(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,str()];case 1:return[2,(_state.sent(),y1.settings)]}})})()}var D0=/*#__PURE__*/function(_F0_PluginSettingTab){"use strict";_inherits(D01,_F0_PluginSettingTab);function D01(t,i){_class_call_check(this,D01);var _this;_this=_call_super(this,D01,[t,i]);_this.subSso=LX().subscribe(function(){_this.display()});_this.plugin=i,_this.warningContainerEl=_this.containerEl.createDiv(),_this.accountSettings=new Ff(_this.app,_this.plugin,_this,_this.containerEl.createDiv()),_this.commonSettings=new eg(_this.app,_this.plugin,_this,_this.containerEl.createDiv()),_this.filterSettings=new tg(_this.app,_this.plugin,_this,_this.containerEl.createDiv()),_this.cacheSettings=new Xf(_this.app,_this.plugin,_this,_this.containerEl.createDiv()),_this.logSettings=new ng(_this.app,_this.plugin,_this,_this.containerEl.createDiv());return _this}_create_class(D01,[{key:"display",value:function display(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.warningContainerEl.empty(),new F0.Setting(this.warningContainerEl).setName(_.t("settings.backupWarning.name")).setDesc(_.t("settings.backupWarning.desc"));return[4,this.accountSettings.display()];case 1:_state.sent();return[4,this.commonSettings.display()];case 2:_state.sent();return[4,this.filterSettings.display()];case 3:_state.sent();return[4,this.cacheSettings.display()];case 4:_state.sent();return[4,this.logSettings.display()];case 5:_state.sent();return[2]}})}).call(this)}},{key:"isSSO",get:function get(){return this.plugin.settings.loginMode==="sso"}},{key:"hide",value:function hide(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.accountSettings.hide()];case 1:_state.sent();return[2]}})}).call(this)}}]);return D01}(F0.PluginSettingTab);var Qs=require("obsidian");function wee(r,e){return _async_to_generator(function(){var t,i,n,_i1,_t,o,s,A,u,c;function a(o){return o=(0,Qs.normalizePath)(o),!n.some(function(s){return s.test(o)})}return _ts_generator(this,function(_state){switch(_state.label){case 0:t=[],i=[e],n=[new ca("".concat(r.configDir,"/plugins/*/node_modules"),{caseSensitive:!0})];_state.label=1;case 1:if(!(i.length>0))return[3,4];o=i.shift();if(jt(o))return[3,3];s=r.getAbstractFileByPath((0,Qs.normalizePath)(o));if(!s||!_instanceof(s,Qs.TFolder))return[3,3];A=s.children.filter(function(l){return!_instanceof(l,Qs.TFolder)}).map(function(l){return l.path}),u=s.children.filter(function(l){return _instanceof(l,Qs.TFolder)}).map(function(l){return l.path});u=u.filter(a),(_i1=i).push.apply(_i1,_to_consumable_array(u));return[4,Promise.all(_to_consumable_array(A).concat(_to_consumable_array(u)).map(Bf(Xt,r))).then(function(l){return l.filter(Aa)})];case 2:c=_state.sent();(_t=t).push.apply(_t,_to_consumable_array(c));_state.label=3;case 3:return[3,1];case 4:return[2,t]}})})()}var See=Le(kr());function b1(r){return r==="/"||r==="."||r===""}function ag(r,e){var t=new Set(e),i=new Map(r.map(function(a){return[a.path,a]})),n=new Map(_to_consumable_array(t).filter(function(a){return a.isDir}).map(function(a){return[a.path,a]}));var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_step.value,a=_step_value.path;for(;a=(0,See.dirname)(a),!b1(a);){if(n.has(a))continue;var o=i.get(a);!o||!o.isDir||(n.set(a,o),t.add(o))}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return _to_consumable_array(t)}var k0=/*#__PURE__*/function(){"use strict";function k01(e){_class_call_check(this,k01);this.options=e}_create_class(k01,[{key:"walk",value:function walk(){return _async_to_generator(function(){var e,t,i,n,a,o,s;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,yt()];case 1:e=_state.sent(),t=this.buildRules(e==null?void 0:e.filterRules.exclusionRules),i=this.buildRules(e==null?void 0:e.filterRules.inclusionRules);return[4,wee(this.options.vault,this.options.vault.getRoot().path)];case 2:n=_state.sent(),a=n.filter(function(A){return _0(A.path,i,t)}),o=ag(n,a),s=new Set(o.map(function(A){return A.path}));return[2,n.map(function(A){return{stat:A,ignored:!s.has(A.path)}})]}})}).call(this)}},{key:"buildRules",value:function buildRules(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(t){return!S0(t)}).map(function(param){var t=param.expr,i=param.options;return new ca(t,i)})}}]);return k01}();var ite=Le(kr());var w1=Le(kr());function Xi(r,e){return r=(0,w1.normalize)(r),e=(0,w1.normalize)(e),r.endsWith("/")||(r+="/"),e.endsWith("/")||(e+="/"),e===r?!1:e.startsWith(r)}var l8r=new Error("timeout while waiting for mutex to become available"),f8r=new Error("mutex already locked"),Atr=new Error("request for lock canceled"),ctr=function ctr1(r,e,t,i){function n(a){return _instanceof(a,t)?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(i.next(c))}catch(l){o(l)}}function A(c){try{u(i.throw(c))}catch(l){o(l)}}function u(c){c.done?a(c.value):n(c.value).then(s,A)}u((i=i.apply(r,e||[])).next())})},S1=/*#__PURE__*/function(){"use strict";function S11(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Atr;_class_call_check(this,S11);this._value=e,this._cancelError=t,this._queue=[],this._weightedWaiters=[]}_create_class(S11,[{key:"acquire",value:function acquire(){var _this=this;var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));return new Promise(function(i,n){var a={resolve:i,reject:n,weight:e,priority:t},o=_ee(_this._queue,function(s){return t<=s.priority});o===-1&&e<=_this._value?_this._dispatchItem(a):_this._queue.splice(o+1,0,a)})}},{key:"runExclusive",value:function runExclusive(e){return ctr(this,arguments,void 0,function(t){var i,n,_ref,a,o;var _arguments=arguments;return _ts_generator(this,function(_state){switch(_state.label){case 0:i=_arguments.length>1&&_arguments[1]!==void 0?_arguments[1]:1,n=_arguments.length>2&&_arguments[2]!==void 0?_arguments[2]:0;return[4,this.acquire(i,n)];case 1:_ref=_sliced_to_array.apply(void 0,[_state.sent(),2]),a=_ref[0],o=_ref[1];_state.label=2;case 2:_state.trys.push([2,,4,5]);return[4,t(a)];case 3:return[2,_state.sent()];case 4:o();return[7];case 5:return[2]}})})}},{key:"waitForUnlock",value:function waitForUnlock(){var _this=this;var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));return this._couldLockImmediately(e,t)?Promise.resolve():new Promise(function(i){_this._weightedWaiters[e-1]||(_this._weightedWaiters[e-1]=[]),utr(_this._weightedWaiters[e-1],{resolve:i,priority:t})})}},{key:"isLocked",value:function isLocked(){return this._value<=0}},{key:"getValue",value:function getValue(){return this._value}},{key:"setValue",value:function setValue(e){this._value=e,this._dispatchQueue()}},{key:"release",value:function release(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));this._value+=e,this._dispatchQueue()}},{key:"cancel",value:function cancel(){var _this=this;this._queue.forEach(function(e){return e.reject(_this._cancelError)}),this._queue=[]}},{key:"_dispatchQueue",value:function _dispatchQueue(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()}},{key:"_dispatchItem",value:function _dispatchItem(e){var t=this._value;this._value-=e.weight,e.resolve([t,this._newReleaser(e.weight)])}},{key:"_newReleaser",value:function _newReleaser(e){var _this=this;var t=!1;return function(){t||(t=!0,_this.release(e))}}},{key:"_drainUnlockWaiters",value:function _drainUnlockWaiters(){if(this._queue.length===0)for(var e=this._value;e>0;e--){var t=this._weightedWaiters[e-1];t&&(t.forEach(function(i){return i.resolve()}),this._weightedWaiters[e-1]=[])}else{var e1=this._queue[0].priority;for(var t3=this._value;t3>0;t3--){var i=this._weightedWaiters[t3-1];if(!i)continue;var n=i.findIndex(function(a){return a.priority<=e1});(n===-1?i:i.splice(0,n)).forEach(function(a){return a.resolve()})}}}},{key:"_couldLockImmediately",value:function _couldLockImmediately(e,t){return(this._queue.length===0||this._queue[0].priority<t)&&e<=this._value}}]);return S11}();function utr(r,e){var t=_ee(r,function(i){return e.priority<=i.priority});r.splice(t+1,0,e)}function _ee(r,e){for(var t=r.length-1;t>=0;t--)if(e(r[t]))return t;return-1}var ltr=function ltr1(r,e,t,i){function n(a){return _instanceof(a,t)?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(i.next(c))}catch(l){o(l)}}function A(c){try{u(i.throw(c))}catch(l){o(l)}}function u(c){c.done?a(c.value):n(c.value).then(s,A)}u((i=i.apply(r,e||[])).next())})},R0=/*#__PURE__*/function(){"use strict";function R01(e){_class_call_check(this,R01);this._semaphore=new S1(1,e)}_create_class(R01,[{key:"acquire",value:function acquire(){return ltr(this,arguments,void 0,function(){var e,_ref,t;var _arguments=arguments;return _ts_generator(this,function(_state){switch(_state.label){case 0:e=_arguments.length>0&&_arguments[0]!==void 0?_arguments[0]:0;return[4,this._semaphore.acquire(1,e)];case 1:_ref=_sliced_to_array.apply(void 0,[_state.sent(),2]),t=_ref[1];return[2,t]}})})}},{key:"runExclusive",value:function runExclusive(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._semaphore.runExclusive(function(){return e()},1,t)}},{key:"isLocked",value:function isLocked(){return this._semaphore.isLocked()}},{key:"waitForUnlock",value:function waitForUnlock(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this._semaphore.waitForUnlock(1,e)}},{key:"release",value:function release(){this._semaphore.isLocked()&&this._semaphore.release()}},{key:"cancel",value:function cancel(){return this._semaphore.cancel()}}]);return R01}();var Yc=Le(kr());var $re=Le(h0());var Jc=function Jc1(){return Jc=Object.assign||function(r){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r},Jc.apply(this,arguments)},ftr="~",gtr="~~";function _1(r,e){for(var t={},i={},n=r.split(gtr),a=!1,o=0;n.length>o;o++){for(var s=n[o].split(ftr),A=0;A<s.length;A+=2){var u=s[A],c=s[A+1],l="&"+u+";";t[l]=c,a&&(t["&"+u]=c),i[c]=l}a=!0}return e?{entities:Jc(Jc({},t),e.entities),characters:Jc(Jc({},i),e.characters)}:{entities:t,characters:i}}var N0={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/&notin;|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/&centerdot;|&copysr;|&divideontimes;|&gtcc;|&gtcir;|&gtdot;|&gtlPar;|&gtquest;|&gtrapprox;|&gtrarr;|&gtrdot;|&gtreqless;|&gtreqqless;|&gtrless;|&gtrsim;|&ltcc;|&ltcir;|&ltdot;|&lthree;|&ltimes;|&ltlarr;|&ltquest;|&ltrPar;|&ltri;|&ltrie;|&ltrif;|&notin;|&notinE;|&notindot;|&notinva;|&notinvb;|&notinvc;|&notni;|&notniva;|&notnivb;|&notnivc;|&parallel;|&timesb;|&timesbar;|&timesd;|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g},bs={};bs.xml=_1("lt~<~gt~>~quot~\"~apos~'~amp~&");bs.html4=_1("apos~'~OElig~Œ~oelig~œ~Scaron~Š~scaron~š~Yuml~Ÿ~circ~ˆ~tilde~˜~ensp~~emsp~~thinsp~~zwnj~~zwj~~lrm~~rlm~~ndash~~mdash~—~lsquo~~rsquo~~sbquo~~ldquo~“~rdquo~”~bdquo~„~dagger~†~Dagger~‡~permil~‰~lsaquo~~rsaquo~~euro~€~fnof~ƒ~Alpha~Α~Beta~Β~Gamma~Γ~Delta~Δ~Epsilon~Ε~Zeta~Ζ~Eta~Η~Theta~Θ~Iota~Ι~Kappa~Κ~Lambda~Λ~Mu~Μ~Nu~Ν~Xi~Ξ~Omicron~Ο~Pi~Π~Rho~Ρ~Sigma~Σ~Tau~Τ~Upsilon~Υ~Phi~Φ~Chi~Χ~Psi~Ψ~Omega~Ω~alpha~α~beta~β~gamma~γ~delta~δ~epsilon~ε~zeta~ζ~eta~η~theta~θ~iota~ι~kappa~κ~lambda~λ~mu~μ~nu~ν~xi~ξ~omicron~ο~pi~π~rho~ρ~sigmaf~ς~sigma~σ~tau~τ~upsilon~υ~phi~φ~chi~χ~psi~ψ~omega~ω~thetasym~ϑ~upsih~ϒ~piv~ϖ~bull~•~hellip~…~prime~~Prime~″~oline~‾~frasl~~weierp~℘~image~~real~~trade~™~alefsym~ℵ~larr~←~uarr~↑~rarr~→~darr~↓~harr~↔~crarr~↵~lArr~⇐~uArr~⇑~rArr~⇒~dArr~⇓~hArr~⇔~forall~∀~part~∂~exist~∃~empty~∅~nabla~∇~isin~∈~notin~∉~ni~∋~prod~∏~sum~∑~minus~~lowast~~radic~√~prop~∝~infin~∞~ang~∠~and~∧~or~~cap~∩~cup~~int~∫~there4~∴~sim~~cong~≅~asymp~≈~ne~≠~equiv~≡~le~≤~ge~≥~sub~⊂~sup~⊃~nsub~⊄~sube~⊆~supe~⊇~oplus~⊕~otimes~⊗~perp~⊥~sdot~⋅~lceil~⌈~rceil~⌉~lfloor~⌊~rfloor~⌋~lang~〈~rang~〉~loz~◊~spades~♠~clubs~♣~hearts~♥~diams~♦~~nbsp~\xa0~iexcl~\xa1~cent~\xa2~pound~\xa3~curren~\xa4~yen~\xa5~brvbar~\xa6~sect~\xa7~uml~\xa8~copy~\xa9~ordf~\xaa~laquo~\xab~not~\xac~shy~\xad~reg~\xae~macr~\xaf~deg~\xb0~plusmn~\xb1~sup2~\xb2~sup3~\xb3~acute~\xb4~micro~\xb5~para~\xb6~middot~\xb7~cedil~\xb8~sup1~\xb9~ordm~\xba~raquo~\xbb~frac14~\xbc~frac12~\xbd~frac34~\xbe~iquest~\xbf~Agrave~\xc0~Aacute~\xc1~Acirc~\xc2~Atilde~\xc3~Auml~\xc4~Aring~\xc5~AElig~\xc6~Ccedil~\xc7~Egrave~\xc8~Eacute~\xc9~Ecirc~\xca~Euml~\xcb~Igrave~\xcc~Iacute~\xcd~Icirc~\xce~Iuml~\xcf~ETH~\xd0~Ntilde~\xd1~Ograve~\xd2~Oacute~\xd3~Ocirc~\xd4~Otilde~\xd5~Ouml~\xd6~times~\xd7~Oslash~\xd8~Ugrave~\xd9~Uacute~\xda~Ucirc~\xdb~Uuml~\xdc~Yacute~\xdd~THORN~\xde~szlig~\xdf~agrave~\xe0~aacute~\xe1~acirc~\xe2~atilde~\xe3~auml~\xe4~aring~\xe5~aelig~\xe6~ccedil~\xe7~egrave~\xe8~eacute~\xe9~ecirc~\xea~euml~\xeb~igrave~\xec~iacute~\xed~icirc~\xee~iuml~\xef~eth~\xf0~ntilde~\xf1~ograve~\xf2~oacute~\xf3~ocirc~\xf4~otilde~\xf5~ouml~\xf6~divide~\xf7~oslash~\xf8~ugrave~\xf9~uacute~\xfa~ucirc~\xfb~uuml~\xfc~yacute~\xfd~thorn~\xfe~yuml~\xff~quot~\"~amp~&~lt~<~gt~>");bs.html5=_1('Abreve~Ă~Acy~А~Afr~\uD835\uDD04~Amacr~Ā~And~⩓~Aogon~Ą~Aopf~\uD835\uDD38~ApplyFunction~~Ascr~\uD835\uDC9C~Assign~≔~Backslash~~Barv~⫧~Barwed~⌆~Bcy~Б~Because~∵~Bernoullis~~Bfr~\uD835\uDD05~Bopf~\uD835\uDD39~Breve~˘~Bscr~~Bumpeq~≎~CHcy~Ч~Cacute~Ć~Cap~⋒~CapitalDifferentialD~~Cayleys~~Ccaron~Č~Ccirc~Ĉ~Cconint~∰~Cdot~Ċ~Cedilla~\xb8~CenterDot~\xb7~Cfr~~CircleDot~⊙~CircleMinus~⊖~CirclePlus~⊕~CircleTimes~⊗~ClockwiseContourIntegral~∲~CloseCurlyDoubleQuote~”~CloseCurlyQuote~~Colon~∷~Colone~⩴~Congruent~≡~Conint~∯~ContourIntegral~∮~Copf~~Coproduct~∐~CounterClockwiseContourIntegral~∳~Cross~~Cscr~\uD835\uDC9E~Cup~⋓~CupCap~≍~DD~~DDotrahd~⤑~DJcy~Ђ~DScy~Ѕ~DZcy~Џ~Darr~↡~Dashv~⫤~Dcaron~Ď~Dcy~Д~Del~∇~Dfr~\uD835\uDD07~DiacriticalAcute~\xb4~DiacriticalDot~˙~DiacriticalDoubleAcute~˝~DiacriticalGrave~`~DiacriticalTilde~˜~Diamond~⋄~DifferentialD~~Dopf~\uD835\uDD3B~Dot~\xa8~DotDot~⃜~DotEqual~≐~DoubleContourIntegral~∯~DoubleDot~\xa8~DoubleDownArrow~⇓~DoubleLeftArrow~⇐~DoubleLeftRightArrow~⇔~DoubleLeftTee~⫤~DoubleLongLeftArrow~⟸~DoubleLongLeftRightArrow~⟺~DoubleLongRightArrow~⟹~DoubleRightArrow~⇒~DoubleRightTee~⊨~DoubleUpArrow~⇑~DoubleUpDownArrow~⇕~DoubleVerticalBar~∥~DownArrow~↓~DownArrowBar~⤓~DownArrowUpArrow~⇵~DownBreve~̑~DownLeftRightVector~⥐~DownLeftTeeVector~⥞~DownLeftVector~↽~DownLeftVectorBar~⥖~DownRightTeeVector~⥟~DownRightVector~⇁~DownRightVectorBar~⥗~DownTee~~DownTeeArrow~↧~Downarrow~⇓~Dscr~\uD835\uDC9F~Dstrok~Đ~ENG~Ŋ~Ecaron~Ě~Ecy~Э~Edot~Ė~Efr~\uD835\uDD08~Element~∈~Emacr~Ē~EmptySmallSquare~◻~EmptyVerySmallSquare~▫~Eogon~Ę~Eopf~\uD835\uDD3C~Equal~⩵~EqualTilde~≂~Equilibrium~⇌~Escr~~Esim~⩳~Exists~∃~ExponentialE~~Fcy~Ф~Ffr~\uD835\uDD09~FilledSmallSquare~◼~FilledVerySmallSquare~▪~Fopf~\uD835\uDD3D~ForAll~∀~Fouriertrf~~Fscr~~GJcy~Ѓ~Gammad~Ϝ~Gbreve~Ğ~Gcedil~Ģ~Gcirc~Ĝ~Gcy~Г~Gdot~Ġ~Gfr~\uD835\uDD0A~Gg~⋙~Gopf~\uD835\uDD3E~GreaterEqual~≥~GreaterEqualLess~⋛~GreaterFullEqual~≧~GreaterGreater~⪢~GreaterLess~≷~GreaterSlantEqual~⩾~GreaterTilde~≳~Gscr~\uD835\uDCA2~Gt~≫~HARDcy~Ъ~Hacek~ˇ~Hat~^~Hcirc~Ĥ~Hfr~~HilbertSpace~~Hopf~~HorizontalLine~─~Hscr~~Hstrok~Ħ~HumpDownHump~≎~HumpEqual~≏~IEcy~Е~IJlig~IJ~IOcy~Ё~Icy~И~Idot~İ~Ifr~~Im~~Imacr~Ī~ImaginaryI~~Implies~⇒~Int~∬~Integral~∫~Intersection~⋂~InvisibleComma~~InvisibleTimes~~Iogon~Į~Iopf~\uD835\uDD40~Iscr~~Itilde~Ĩ~Iukcy~І~Jcirc~Ĵ~Jcy~Й~Jfr~\uD835\uDD0D~Jopf~\uD835\uDD41~Jscr~\uD835\uDCA5~Jsercy~Ј~Jukcy~Є~KHcy~Х~KJcy~Ќ~Kcedil~Ķ~Kcy~К~Kfr~\uD835\uDD0E~Kopf~\uD835\uDD42~Kscr~\uD835\uDCA6~LJcy~Љ~Lacute~Ĺ~Lang~⟪~Laplacetrf~~Larr~↞~Lcaron~Ľ~Lcedil~Ļ~Lcy~Л~LeftAngleBracket~⟨~LeftArrow~←~LeftArrowBar~⇤~LeftArrowRightArrow~⇆~LeftCeiling~⌈~LeftDoubleBracket~⟦~LeftDownTeeVector~⥡~LeftDownVector~⇃~LeftDownVectorBar~⥙~LeftFloor~⌊~LeftRightArrow~↔~LeftRightVector~⥎~LeftTee~⊣~LeftTeeArrow~↤~LeftTeeVector~⥚~LeftTriangle~⊲~LeftTriangleBar~⧏~LeftTriangleEqual~⊴~LeftUpDownVector~⥑~LeftUpTeeVector~⥠~LeftUpVector~↿~LeftUpVectorBar~⥘~LeftVector~↼~LeftVectorBar~⥒~Leftarrow~⇐~Leftrightarrow~⇔~LessEqualGreater~⋚~LessFullEqual~≦~LessGreater~≶~LessLess~⪡~LessSlantEqual~⩽~LessTilde~≲~Lfr~\uD835\uDD0F~Ll~⋘~Lleftarrow~⇚~Lmidot~Ŀ~LongLeftArrow~⟵~LongLeftRightArrow~⟷~LongRightArrow~⟶~Longleftarrow~⟸~Longleftrightarrow~⟺~Longrightarrow~⟹~Lopf~\uD835\uDD43~LowerLeftArrow~↙~LowerRightArrow~↘~Lscr~~Lsh~↰~Lstrok~Ł~Lt~≪~Map~⤅~Mcy~М~MediumSpace~~Mellintrf~~Mfr~\uD835\uDD10~MinusPlus~∓~Mopf~\uD835\uDD44~Mscr~~NJcy~Њ~Nacute~Ń~Ncaron~Ň~Ncedil~Ņ~Ncy~Н~NegativeMediumSpace~~NegativeThickSpace~~NegativeThinSpace~~NegativeVeryThinSpace~~NestedGreaterGreater~≫~NestedLessLess~≪~NewLine~\n~Nfr~\uD835\uDD11~NoBreak~~NonBreakingSpace~\xa0~Nopf~~Not~⫬~NotCongruent~≢~NotCupCap~≭~NotDoubleVerticalBar~∦~NotElement~∉~NotEqual~≠~NotEqualTilde~≂̸~NotExists~∄~NotGreater~≯~NotGreaterEqual~≱~NotGreaterFullEqual~≧̸~NotGreaterGreater~≫̸~NotGreaterLess~≹~NotGreaterSlantEqual~⩾̸~NotGreaterTilde~≵~NotHumpDownHump~≎̸~NotHumpEqual~≏̸~NotLeftTriangle~⋪~NotLeftTriangleBar~⧏̸~NotLeftTriangleEqual~⋬~NotLess~≮~NotLessEqual~≰~NotLessGreater~≸~NotLessLess~≪̸~NotLessSlantEqual~⩽̸~NotLessTilde~≴~NotNestedGreaterGreater~⪢̸~NotNestedLessLess~⪡̸~NotPrecedes~⊀~NotPrecedesEqual~⪯̸~NotPrecedesSlantEqual~⋠~NotReverseElement~∌~NotRightTriangle~⋫~NotRightTriangleBar~⧐̸~NotRightTriangleEqual~⋭~NotSquareSubset~⊏̸~NotSquareSubsetEqual~⋢~NotSquareSuperset~⊐̸~NotSquareSupersetEqual~⋣~NotSubset~⊂⃒~NotSubsetEqual~⊈~NotSucceeds~⊁~NotSucceedsEqual~⪰̸~NotSucceedsSlantEqual~⋡~NotSucceedsTilde~≿̸~NotSuperset~⊃⃒~NotSupersetEqual~⊉~NotTilde~≁~NotTildeEqual~≄~NotTildeFullEqual~≇~NotTildeTilde~≉~NotVerticalBar~∤~Nscr~\uD835\uDCA9~Ocy~О~Odblac~Ő~Ofr~\uD835\uDD12~Omacr~Ō~Oopf~\uD835\uDD46~OpenCurlyDoubleQuote~“~OpenCurlyQuote~~Or~⩔~Oscr~\uD835\uDCAA~Otimes~⨷~OverBar~‾~OverBrace~⏞~OverBracket~⎴~OverParenthesis~⏜~PartialD~∂~Pcy~П~Pfr~\uD835\uDD13~PlusMinus~\xb1~Poincareplane~~Popf~~Pr~⪻~Precedes~≺~PrecedesEqual~⪯~PrecedesSlantEqual~≼~PrecedesTilde~≾~Product~∏~Proportion~∷~Proportional~∝~Pscr~\uD835\uDCAB~Qfr~\uD835\uDD14~Qopf~~Qscr~\uD835\uDCAC~RBarr~⤐~Racute~Ŕ~Rang~⟫~Rarr~↠~Rarrtl~⤖~Rcaron~Ř~Rcedil~Ŗ~Rcy~Р~Re~~ReverseElement~∋~ReverseEquilibrium~⇋~ReverseUpEquilibrium~⥯~Rfr~~RightAngleBracket~⟩~RightArrow~→~RightArrowBar~⇥~RightArrowLeftArrow~⇄~RightCeiling~⌉~RightDoubleBracket~⟧~RightDownTeeVector~⥝~RightDownVector~⇂~RightDownVectorBar~⥕~RightFloor~⌋~RightTee~⊢~RightTeeArrow~↦~RightTeeVector~⥛~RightTriangle~⊳~RightTriangleBar~⧐~RightTriangleEqual~⊵~RightUpDownVector~⥏~RightUpTeeVector~⥜~RightUpVector~↾~RightUpVectorBar~⥔~RightVector~⇀~RightVectorBar~⥓~Rightarrow~⇒~Ropf~~RoundImplies~⥰~Rrightarrow~⇛~Rscr~~Rsh~↱~RuleDelayed~⧴~SHCHcy~Щ~SHcy~Ш~SOFTcy~Ь~Sacute~Ś~Sc~⪼~Scedil~Ş~Scirc~Ŝ~Scy~С~Sfr~\uD835\uDD16~ShortDownArrow~↓~ShortLeftArrow~←~ShortRightArrow~→~ShortUpArrow~↑~SmallCircle~∘~Sopf~\uD835\uDD4A~Sqrt~√~Square~□~SquareIntersection~⊓~SquareSubset~⊏~SquareSubsetEqual~⊑~SquareSuperset~⊐~SquareSupersetEqual~⊒~SquareUnion~⊔~Sscr~\uD835\uDCAE~Star~⋆~Sub~⋐~Subset~⋐~SubsetEqual~⊆~Succeeds~≻~SucceedsEqual~⪰~SucceedsSlantEqual~≽~SucceedsTilde~≿~SuchThat~∋~Sum~∑~Sup~⋑~Superset~⊃~SupersetEqual~⊇~Supset~⋑~TRADE~™~TSHcy~Ћ~TScy~Ц~Tab~ ~Tcaron~Ť~Tcedil~Ţ~Tcy~Т~Tfr~\uD835\uDD17~Therefore~∴~ThickSpace~~ThinSpace~~Tilde~~TildeEqual~≃~TildeFullEqual~≅~TildeTilde~≈~Topf~\uD835\uDD4B~TripleDot~⃛~Tscr~\uD835\uDCAF~Tstrok~Ŧ~Uarr~↟~Uarrocir~⥉~Ubrcy~Ў~Ubreve~Ŭ~Ucy~У~Udblac~Ű~Ufr~\uD835\uDD18~Umacr~Ū~UnderBar~_~UnderBrace~⏟~UnderBracket~⎵~UnderParenthesis~⏝~Union~~UnionPlus~⊎~Uogon~Ų~Uopf~\uD835\uDD4C~UpArrow~↑~UpArrowBar~⤒~UpArrowDownArrow~⇅~UpDownArrow~↕~UpEquilibrium~⥮~UpTee~⊥~UpTeeArrow~↥~Uparrow~⇑~Updownarrow~⇕~UpperLeftArrow~↖~UpperRightArrow~↗~Upsi~ϒ~Uring~Ů~Uscr~\uD835\uDCB0~Utilde~Ũ~VDash~⊫~Vbar~⫫~Vcy~В~Vdash~⊩~Vdashl~⫦~Vee~~Verbar~‖~Vert~‖~VerticalBar~~VerticalLine~|~VerticalSeparator~❘~VerticalTilde~≀~VeryThinSpace~~Vfr~\uD835\uDD19~Vopf~\uD835\uDD4D~Vscr~\uD835\uDCB1~Vvdash~⊪~Wcirc~Ŵ~Wedge~⋀~Wfr~\uD835\uDD1A~Wopf~\uD835\uDD4E~Wscr~\uD835\uDCB2~Xfr~\uD835\uDD1B~Xopf~\uD835\uDD4F~Xscr~\uD835\uDCB3~YAcy~Я~YIcy~Ї~YUcy~Ю~Ycirc~Ŷ~Ycy~Ы~Yfr~\uD835\uDD1C~Yopf~\uD835\uDD50~Yscr~\uD835\uDCB4~ZHcy~Ж~Zacute~Ź~Zcaron~Ž~Zcy~З~Zdot~Ż~ZeroWidthSpace~~Zfr~~Zopf~~Zscr~\uD835\uDCB5~abreve~ă~ac~∾~acE~∾̳~acd~∿~acy~а~af~~afr~\uD835\uDD1E~aleph~ℵ~amacr~ā~amalg~⨿~andand~⩕~andd~⩜~andslope~⩘~andv~⩚~ange~⦤~angle~∠~angmsd~∡~angmsdaa~⦨~angmsdab~⦩~angmsdac~⦪~angmsdad~⦫~angmsdae~⦬~angmsdaf~⦭~angmsdag~⦮~angmsdah~⦯~angrt~∟~angrtvb~⊾~angrtvbd~⦝~angsph~∢~angst~\xc5~angzarr~⍼~aogon~ą~aopf~\uD835\uDD52~ap~≈~apE~⩰~apacir~⩯~ape~≊~apid~≋~approx~≈~approxeq~≊~ascr~\uD835\uDCB6~ast~*~asympeq~≍~awconint~∳~awint~⨑~bNot~⫭~backcong~≌~backepsilon~϶~backprime~~backsim~∽~backsimeq~⋍~barvee~⊽~barwed~⌅~barwedge~⌅~bbrk~⎵~bbrktbrk~⎶~bcong~≌~bcy~б~becaus~∵~because~∵~bemptyv~⦰~bepsi~϶~bernou~~beth~ℶ~between~≬~bfr~\uD835\uDD1F~bigcap~⋂~bigcirc~◯~bigcup~~bigodot~⨀~bigoplus~⨁~bigotimes~⨂~bigsqcup~⨆~bigstar~★~bigtriangledown~▽~bigtriangleup~△~biguplus~⨄~bigvee~~bigwedge~⋀~bkarow~⤍~blacklozenge~⧫~blacksquare~▪~blacktriangle~▴~blacktriangledown~▾~blacktriangleleft~◂~blacktriangleright~▸~blank~␣~blk12~▒~blk14~░~blk34~▓~block~█~bne~=⃥~bnequiv~≡⃥~bnot~⌐~bopf~\uD835\uDD53~bot~⊥~bottom~⊥~bowtie~⋈~boxDL~╗~boxDR~╔~boxDl~╖~boxDr~╓~boxH~═~boxHD~╦~boxHU~╩~boxHd~╤~boxHu~╧~boxUL~╝~boxUR~╚~boxUl~╜~boxUr~╙~boxV~║~boxVH~╬~boxVL~╣~boxVR~╠~boxVh~╫~boxVl~╢~boxVr~╟~boxbox~⧉~boxdL~╕~boxdR~╒~boxdl~┐~boxdr~┌~boxh~─~boxhD~╥~boxhU~╨~boxhd~┬~boxhu~┴~boxminus~⊟~boxplus~⊞~boxtimes~⊠~boxuL~╛~boxuR~╘~boxul~┘~boxur~└~boxv~│~boxvH~╪~boxvL~╡~boxvR~╞~boxvh~┼~boxvl~┤~boxvr~├~bprime~~breve~˘~bscr~\uD835\uDCB7~bsemi~⁏~bsim~∽~bsime~⋍~bsol~\\~bsolb~⧅~bsolhsub~⟈~bullet~•~bump~≎~bumpE~⪮~bumpe~≏~bumpeq~≏~cacute~ć~capand~⩄~capbrcup~⩉~capcap~⩋~capcup~⩇~capdot~⩀~caps~∩︀~caret~~caron~ˇ~ccaps~⩍~ccaron~č~ccirc~ĉ~ccups~⩌~ccupssm~⩐~cdot~ċ~cemptyv~⦲~centerdot~\xb7~cfr~\uD835\uDD20~chcy~ч~check~✓~checkmark~✓~cir~○~cirE~⧃~circeq~≗~circlearrowleft~↺~circlearrowright~↻~circledR~\xae~circledS~Ⓢ~circledast~⊛~circledcirc~⊚~circleddash~⊝~cire~≗~cirfnint~⨐~cirmid~⫯~cirscir~⧂~clubsuit~♣~colon~:~colone~≔~coloneq~≔~comma~,~commat~@~comp~∁~compfn~∘~complement~∁~complexes~~congdot~⩭~conint~∮~copf~\uD835\uDD54~coprod~∐~copysr~℗~cross~✗~cscr~\uD835\uDCB8~csub~⫏~csube~⫑~csup~⫐~csupe~⫒~ctdot~⋯~cudarrl~⤸~cudarrr~⤵~cuepr~⋞~cuesc~⋟~cularr~↶~cularrp~⤽~cupbrcap~⩈~cupcap~⩆~cupcup~⩊~cupdot~⊍~cupor~⩅~cups~~curarr~↷~curarrm~⤼~curlyeqprec~⋞~curlyeqsucc~⋟~curlyvee~⋎~curlywedge~⋏~curvearrowleft~↶~curvearrowright~↷~cuvee~⋎~cuwed~⋏~cwconint~∲~cwint~∱~cylcty~⌭~dHar~⥥~daleth~ℸ~dash~~dashv~⊣~dbkarow~⤏~dblac~˝~dcaron~ď~dcy~д~dd~~ddagger~‡~ddarr~⇊~ddotseq~⩷~demptyv~⦱~dfisht~⥿~dfr~\uD835\uDD21~dharl~⇃~dharr~⇂~diam~⋄~diamond~⋄~diamondsuit~♦~die~\xa8~digamma~ϝ~disin~⋲~div~\xf7~divideontimes~⋇~divonx~⋇~djcy~ђ~dlcorn~⌞~dlcrop~⌍~dollar~$~dopf~\uD835\uDD55~dot~˙~doteq~≐~doteqdot~≑~dotminus~∸~dotplus~∔~dotsquare~⊡~doublebarwedge~⌆~downarrow~↓~downdownarrows~⇊~downharpoonleft~⇃~downharpoonright~⇂~drbkarow~⤐~drcorn~⌟~drcrop~⌌~dscr~\uD835\uDCB9~dscy~ѕ~dsol~⧶~dstrok~đ~dtdot~⋱~dtri~▿~dtrif~▾~duarr~⇵~duhar~⥯~dwangle~⦦~dzcy~џ~dzigrarr~⟿~eDDot~⩷~eDot~≑~easter~⩮~ecaron~ě~ecir~≖~ecolon~≕~ecy~э~edot~ė~ee~~efDot~≒~efr~\uD835\uDD22~eg~⪚~egs~⪖~egsdot~⪘~el~⪙~elinters~⏧~ell~~els~⪕~elsdot~⪗~emacr~ē~emptyset~∅~emptyv~∅~emsp13~~emsp14~~eng~ŋ~eogon~ę~eopf~\uD835\uDD56~epar~⋕~eparsl~⧣~eplus~⩱~epsi~ε~epsiv~ϵ~eqcirc~≖~eqcolon~≕~eqsim~≂~eqslantgtr~⪖~eqslantless~⪕~equals~=~equest~≟~equivDD~⩸~eqvparsl~⧥~erDot~≓~erarr~⥱~escr~~esdot~≐~esim~≂~excl~!~expectation~~exponentiale~~fallingdotseq~≒~fcy~ф~female~♀~ffilig~ffi~fflig~ff~ffllig~ffl~ffr~\uD835\uDD23~filig~fi~fjlig~fj~flat~♭~fllig~fl~fltns~▱~fopf~\uD835\uDD57~fork~⋔~forkv~⫙~fpartint~⨍~frac13~⅓~frac15~⅕~frac16~⅙~frac18~⅛~frac23~⅔~frac25~⅖~frac35~⅗~frac38~⅜~frac45~⅘~frac56~⅚~frac58~⅝~frac78~⅞~frown~⌢~fscr~\uD835\uDCBB~gE~≧~gEl~⪌~gacute~ǵ~gammad~ϝ~gap~⪆~gbreve~ğ~gcirc~ĝ~gcy~г~gdot~ġ~gel~⋛~geq~≥~geqq~≧~geqslant~⩾~ges~⩾~gescc~⪩~gesdot~⪀~gesdoto~⪂~gesdotol~⪄~gesl~⋛︀~gesles~⪔~gfr~\uD835\uDD24~gg~≫~ggg~⋙~gimel~ℷ~gjcy~ѓ~gl~≷~glE~⪒~gla~⪥~glj~⪤~gnE~≩~gnap~⪊~gnapprox~⪊~gne~⪈~gneq~⪈~gneqq~≩~gnsim~⋧~gopf~\uD835\uDD58~grave~`~gscr~~gsim~≳~gsime~⪎~gsiml~⪐~gtcc~⪧~gtcir~⩺~gtdot~⋗~gtlPar~⦕~gtquest~⩼~gtrapprox~⪆~gtrarr~⥸~gtrdot~⋗~gtreqless~⋛~gtreqqless~⪌~gtrless~≷~gtrsim~≳~gvertneqq~≩︀~gvnE~≩︀~hairsp~~half~\xbd~hamilt~~hardcy~ъ~harrcir~⥈~harrw~↭~hbar~ℏ~hcirc~ĥ~heartsuit~♥~hercon~⊹~hfr~\uD835\uDD25~hksearow~⤥~hkswarow~⤦~hoarr~⇿~homtht~∻~hookleftarrow~↩~hookrightarrow~↪~hopf~\uD835\uDD59~horbar~―~hscr~\uD835\uDCBD~hslash~ℏ~hstrok~ħ~hybull~~hyphen~~ic~~icy~и~iecy~е~iff~⇔~ifr~\uD835\uDD26~ii~~iiiint~⨌~iiint~∭~iinfin~⧜~iiota~℩~ijlig~ij~imacr~ī~imagline~~imagpart~~imath~ı~imof~⊷~imped~Ƶ~in~∈~incare~℅~infintie~⧝~inodot~ı~intcal~⊺~integers~~intercal~⊺~intlarhk~⨗~intprod~⨼~iocy~ё~iogon~į~iopf~\uD835\uDD5A~iprod~⨼~iscr~\uD835\uDCBE~isinE~⋹~isindot~⋵~isins~⋴~isinsv~⋳~isinv~∈~it~~itilde~ĩ~iukcy~і~jcirc~ĵ~jcy~й~jfr~\uD835\uDD27~jmath~ȷ~jopf~\uD835\uDD5B~jscr~\uD835\uDCBF~jsercy~ј~jukcy~є~kappav~ϰ~kcedil~ķ~kcy~к~kfr~\uD835\uDD28~kgreen~ĸ~khcy~х~kjcy~ќ~kopf~\uD835\uDD5C~kscr~\uD835\uDCC0~lAarr~⇚~lAtail~⤛~lBarr~⤎~lE~≦~lEg~⪋~lHar~⥢~lacute~ĺ~laemptyv~⦴~lagran~~langd~⦑~langle~⟨~lap~⪅~larrb~⇤~larrbfs~⤟~larrfs~⤝~larrhk~↩~larrlp~↫~larrpl~⤹~larrsim~⥳~larrtl~↢~lat~⪫~latail~⤙~late~⪭~lates~⪭︀~lbarr~⤌~lbbrk~~lbrace~{~lbrack~[~lbrke~⦋~lbrksld~⦏~lbrkslu~⦍~lcaron~ľ~lcedil~ļ~lcub~{~lcy~л~ldca~⤶~ldquor~„~ldrdhar~⥧~ldrushar~⥋~ldsh~↲~leftarrow~←~leftarrowtail~↢~leftharpoondown~↽~leftharpoonup~↼~leftleftarrows~⇇~leftrightarrow~↔~leftrightarrows~⇆~leftrightharpoons~⇋~leftrightsquigarrow~↭~leftthreetimes~⋋~leg~⋚~leq~≤~leqq~≦~leqslant~⩽~les~⩽~lescc~⪨~lesdot~⩿~lesdoto~⪁~lesdotor~⪃~lesg~⋚︀~lesges~⪓~lessapprox~⪅~lessdot~⋖~lesseqgtr~⋚~lesseqqgtr~⪋~lessgtr~≶~lesssim~≲~lfisht~⥼~lfr~\uD835\uDD29~lg~≶~lgE~⪑~lhard~↽~lharu~↼~lharul~⥪~lhblk~▄~ljcy~љ~ll~≪~llarr~⇇~llcorner~⌞~llhard~⥫~lltri~◺~lmidot~ŀ~lmoust~⎰~lmoustache~⎰~lnE~≨~lnap~⪉~lnapprox~⪉~lne~⪇~lneq~⪇~lneqq~≨~lnsim~⋦~loang~⟬~loarr~⇽~lobrk~⟦~longleftarrow~⟵~longleftrightarrow~⟷~longmapsto~⟼~longrightarrow~⟶~looparrowleft~↫~looparrowright~↬~lopar~⦅~lopf~\uD835\uDD5D~loplus~⨭~lotimes~⨴~lowbar~_~lozenge~◊~lozf~⧫~lpar~(~lparlt~⦓~lrarr~⇆~lrcorner~⌟~lrhar~⇋~lrhard~⥭~lrtri~⊿~lscr~\uD835\uDCC1~lsh~↰~lsim~≲~lsime~⪍~lsimg~⪏~lsqb~[~lsquor~~lstrok~ł~ltcc~⪦~ltcir~⩹~ltdot~⋖~lthree~⋋~ltimes~⋉~ltlarr~⥶~ltquest~⩻~ltrPar~⦖~ltri~◃~ltrie~⊴~ltrif~◂~lurdshar~⥊~luruhar~⥦~lvertneqq~≨︀~lvnE~≨︀~mDDot~∺~male~♂~malt~✠~maltese~✠~map~↦~mapsto~↦~mapstodown~↧~mapstoleft~↤~mapstoup~↥~marker~▮~mcomma~⨩~mcy~м~measuredangle~∡~mfr~\uD835\uDD2A~mho~℧~mid~~midast~*~midcir~⫰~minusb~⊟~minusd~∸~minusdu~⨪~mlcp~⫛~mldr~…~mnplus~∓~models~⊧~mopf~\uD835\uDD5E~mp~∓~mscr~\uD835\uDCC2~mstpos~∾~multimap~⊸~mumap~⊸~nGg~⋙̸~nGt~≫⃒~nGtv~≫̸~nLeftarrow~⇍~nLeftrightarrow~⇎~nLl~⋘̸~nLt~≪⃒~nLtv~≪̸~nRightarrow~⇏~nVDash~⊯~nVdash~⊮~nacute~ń~nang~∠⃒~nap~≉~napE~⩰̸~napid~≋̸~napos~ʼn~napprox~≉~natur~♮~natural~♮~naturals~~nbump~≎̸~nbumpe~≏̸~ncap~⩃~ncaron~ň~ncedil~ņ~ncong~≇~ncongdot~⩭̸~ncup~⩂~ncy~н~neArr~⇗~nearhk~⤤~nearr~↗~nearrow~↗~nedot~≐̸~nequiv~≢~nesear~⤨~nesim~≂̸~nexist~∄~nexists~∄~nfr~\uD835\uDD2B~ngE~≧̸~nge~≱~ngeq~≱~ngeqq~≧̸~ngeqslant~⩾̸~nges~⩾̸~ngsim~≵~ngt~≯~ngtr~≯~nhArr~⇎~nharr~↮~nhpar~⫲~nis~⋼~nisd~⋺~niv~∋~njcy~њ~nlArr~⇍~nlE~≦̸~nlarr~↚~nldr~‥~nle~≰~nleftarrow~↚~nleftrightarrow~↮~nleq~≰~nleqq~≦̸~nleqslant~⩽̸~nles~⩽̸~nless~≮~nlsim~≴~nlt~≮~nltri~⋪~nltrie~⋬~nmid~∤~nopf~\uD835\uDD5F~notinE~⋹̸~notindot~⋵̸~notinva~∉~notinvb~⋷~notinvc~⋶~notni~∌~notniva~∌~notnivb~⋾~notnivc~⋽~npar~∦~nparallel~∦~nparsl~⫽⃥~npart~∂̸~npolint~⨔~npr~⊀~nprcue~⋠~npre~⪯̸~nprec~⊀~npreceq~⪯̸~nrArr~⇏~nrarr~↛~nrarrc~⤳̸~nrarrw~↝̸~nrightarrow~↛~nrtri~⋫~nrtrie~⋭~nsc~⊁~nsccue~⋡~nsce~⪰̸~nscr~\uD835\uDCC3~nshortmid~∤~nshortparallel~∦~nsim~≁~nsime~≄~nsimeq~≄~nsmid~∤~nspar~∦~nsqsube~⋢~nsqsupe~⋣~nsubE~⫅̸~nsube~⊈~nsubset~⊂⃒~nsubseteq~⊈~nsubseteqq~⫅̸~nsucc~⊁~nsucceq~⪰̸~nsup~⊅~nsupE~⫆̸~nsupe~⊉~nsupset~⊃⃒~nsupseteq~⊉~nsupseteqq~⫆̸~ntgl~≹~ntlg~≸~ntriangleleft~⋪~ntrianglelefteq~⋬~ntriangleright~⋫~ntrianglerighteq~⋭~num~#~numero~№~numsp~~nvDash~⊭~nvHarr~⤄~nvap~≍⃒~nvdash~⊬~nvge~≥⃒~nvgt~>⃒~nvinfin~⧞~nvlArr~⤂~nvle~≤⃒~nvlt~<⃒~nvltrie~⊴⃒~nvrArr~⤃~nvrtrie~⊵⃒~nvsim~∼⃒~nwArr~⇖~nwarhk~⤣~nwarr~↖~nwarrow~↖~nwnear~⤧~oS~Ⓢ~oast~⊛~ocir~⊚~ocy~о~odash~⊝~odblac~ő~odiv~⨸~odot~⊙~odsold~⦼~ofcir~⦿~ofr~\uD835\uDD2C~ogon~˛~ogt~⧁~ohbar~⦵~ohm~Ω~oint~∮~olarr~↺~olcir~⦾~olcross~⦻~olt~⧀~omacr~ō~omid~⦶~ominus~⊖~oopf~\uD835\uDD60~opar~⦷~operp~⦹~orarr~↻~ord~⩝~order~~orderof~~origof~⊶~oror~⩖~orslope~⩗~orv~⩛~oscr~~osol~⊘~otimesas~⨶~ovbar~⌽~par~∥~parallel~∥~parsim~⫳~parsl~⫽~pcy~п~percnt~%~period~.~pertenk~‱~pfr~\uD835\uDD2D~phiv~ϕ~phmmat~~phone~☎~pitchfork~⋔~planck~ℏ~planckh~~plankv~ℏ~plus~+~plusacir~⨣~plusb~⊞~pluscir~⨢~plusdo~∔~plusdu~⨥~pluse~⩲~plussim~⨦~plustwo~⨧~pm~\xb1~pointint~⨕~popf~\uD835\uDD61~pr~≺~prE~⪳~prap~⪷~prcue~≼~pre~⪯~prec~≺~precapprox~⪷~preccurlyeq~≼~preceq~⪯~precnapprox~⪹~precneqq~⪵~precnsim~⋨~precsim~≾~primes~~prnE~⪵~prnap~⪹~prnsim~⋨~profalar~⌮~profline~⌒~profsurf~⌓~propto~∝~prsim~≾~prurel~⊰~pscr~\uD835\uDCC5~puncsp~~qfr~\uD835\uDD2E~qint~⨌~qopf~\uD835\uDD62~qprime~⁗~qscr~\uD835\uDCC6~quaternions~~quatint~⨖~quest~?~questeq~≟~rAarr~⇛~rAtail~⤜~rBarr~⤏~rHar~⥤~race~∽̱~racute~ŕ~raemptyv~⦳~rangd~⦒~range~⦥~rangle~⟩~rarrap~⥵~rarrb~⇥~rarrbfs~⤠~rarrc~⤳~rarrfs~⤞~rarrhk~↪~rarrlp~↬~rarrpl~⥅~rarrsim~⥴~rarrtl~↣~rarrw~↝~ratail~⤚~ratio~~rationals~~rbarr~⤍~rbbrk~~rbrace~}~rbrack~]~rbrke~⦌~rbrksld~⦎~rbrkslu~⦐~rcaron~ř~rcedil~ŗ~rcub~}~rcy~р~rdca~⤷~rdldhar~⥩~rdquor~”~rdsh~↳~realine~~realpart~~reals~~rect~▭~rfisht~⥽~rfr~\uD835\uDD2F~rhard~⇁~rharu~⇀~rharul~⥬~rhov~ϱ~rightarrow~→~rightarrowtail~↣~rightharpoondown~⇁~rightharpoonup~⇀~rightleftarrows~⇄~rightleftharpoons~⇌~rightrightarrows~⇉~rightsquigarrow~↝~rightthreetimes~⋌~ring~˚~risingdotseq~≓~rlarr~⇄~rlhar~⇌~rmoust~⎱~rmoustache~⎱~rnmid~⫮~roang~⟭~roarr~⇾~robrk~⟧~ropar~⦆~ropf~\uD835\uDD63~roplus~⨮~rotimes~⨵~rpar~)~rpargt~⦔~rppolint~⨒~rrarr~⇉~rscr~\uD835\uDCC7~rsh~↱~rsqb~]~rsquor~~rthree~⋌~rtimes~⋊~rtri~▹~rtrie~⊵~rtrif~▸~rtriltri~⧎~ruluhar~⥨~rx~℞~sacute~ś~sc~≻~scE~⪴~scap~⪸~sccue~≽~sce~⪰~scedil~ş~scirc~ŝ~scnE~⪶~scnap~⪺~scnsim~⋩~scpolint~⨓~scsim~≿~scy~с~sdotb~⊡~sdote~⩦~seArr~⇘~searhk~⤥~searr~↘~searrow~↘~semi~;~seswar~⤩~setminus~~setmn~~sext~✶~sfr~\uD835\uDD30~sfrown~⌢~sharp~♯~shchcy~щ~shcy~ш~shortmid~~shortparallel~∥~sigmav~ς~simdot~⩪~sime~≃~simeq~≃~simg~⪞~simgE~⪠~siml~⪝~simlE~⪟~simne~≆~simplus~⨤~simrarr~⥲~slarr~←~smallsetminus~~smashp~⨳~smeparsl~⧤~smid~~smile~⌣~smt~⪪~smte~⪬~smtes~⪬︀~softcy~ь~sol~/~solb~⧄~solbar~⌿~sopf~\uD835\uDD64~spadesuit~♠~spar~∥~sqcap~⊓~sqcaps~⊓︀~sqcup~⊔~sqcups~⊔︀~sqsub~⊏~sqsube~⊑~sqsubset~⊏~sqsubseteq~⊑~sqsup~⊐~sqsupe~⊒~sqsupset~⊐~sqsupseteq~⊒~squ~□~square~□~squarf~▪~squf~▪~srarr~→~sscr~\uD835\uDCC8~ssetmn~~ssmile~⌣~sstarf~⋆~star~☆~starf~★~straightepsilon~ϵ~straightphi~ϕ~strns~\xaf~subE~⫅~subdot~⪽~subedot~⫃~submult~⫁~subnE~⫋~subne~⊊~subplus~⪿~subrarr~⥹~subset~⊂~subseteq~⊆~subseteqq~⫅~subsetneq~⊊~subsetneqq~⫋~subsim~⫇~subsub~⫕~subsup~⫓~succ~≻~succapprox~⪸~succcurlyeq~≽~succeq~⪰~succnapprox~⪺~succneqq~⪶~succnsim~⋩~succsim~≿~sung~♪~supE~⫆~supdot~⪾~supdsub~⫘~supedot~⫄~suphsol~⟉~suphsub~⫗~suplarr~⥻~supmult~⫂~supnE~⫌~supne~⊋~supplus~⫀~supset~⊃~supseteq~⊇~supseteqq~⫆~supsetneq~⊋~supsetneqq~⫌~supsim~⫈~supsub~⫔~supsup~⫖~swArr~⇙~swarhk~⤦~swarr~↙~swarrow~↙~swnwar~⤪~target~⌖~tbrk~⎴~tcaron~ť~tcedil~ţ~tcy~т~tdot~⃛~telrec~⌕~tfr~\uD835\uDD31~therefore~∴~thetav~ϑ~thickapprox~≈~thicksim~~thkap~≈~thksim~~timesb~⊠~timesbar~⨱~timesd~⨰~tint~∭~toea~⤨~top~~topbot~⌶~topcir~⫱~topf~\uD835\uDD65~topfork~⫚~tosa~⤩~tprime~‴~triangle~▵~triangledown~▿~triangleleft~◃~trianglelefteq~⊴~triangleq~≜~triangleright~▹~trianglerighteq~⊵~tridot~◬~trie~≜~triminus~⨺~triplus~⨹~trisb~⧍~tritime~⨻~trpezium~⏢~tscr~\uD835\uDCC9~tscy~ц~tshcy~ћ~tstrok~ŧ~twixt~≬~twoheadleftarrow~↞~twoheadrightarrow~↠~uHar~⥣~ubrcy~ў~ubreve~ŭ~ucy~у~udarr~⇅~udblac~ű~udhar~⥮~ufisht~⥾~ufr~\uD835\uDD32~uharl~↿~uharr~↾~uhblk~▀~ulcorn~⌜~ulcorner~⌜~ulcrop~⌏~ultri~◸~umacr~ū~uogon~ų~uopf~\uD835\uDD66~uparrow~↑~updownarrow~↕~upharpoonleft~↿~upharpoonright~↾~uplus~⊎~upsi~υ~upuparrows~⇈~urcorn~⌝~urcorner~⌝~urcrop~⌎~uring~ů~urtri~◹~uscr~\uD835\uDCCA~utdot~⋰~utilde~ũ~utri~▵~utrif~▴~uuarr~⇈~uwangle~⦧~vArr~⇕~vBar~⫨~vBarv~⫩~vDash~⊨~vangrt~⦜~varepsilon~ϵ~varkappa~ϰ~varnothing~∅~varphi~ϕ~varpi~ϖ~varpropto~∝~varr~↕~varrho~ϱ~varsigma~ς~varsubsetneq~⊊︀~varsubsetneqq~⫋︀~varsupsetneq~⊋︀~varsupsetneqq~⫌︀~vartheta~ϑ~vartriangleleft~⊲~vartriangleright~⊳~vcy~в~vdash~⊢~vee~~veebar~⊻~veeeq~≚~vellip~⋮~verbar~|~vert~|~vfr~\uD835\uDD33~vltri~⊲~vnsub~⊂⃒~vnsup~⊃⃒~vopf~\uD835\uDD67~vprop~∝~vrtri~⊳~vscr~\uD835\uDCCB~vsubnE~⫋︀~vsubne~⊊︀~vsupnE~⫌︀~vsupne~⊋︀~vzigzag~⦚~wcirc~ŵ~wedbar~⩟~wedge~∧~wedgeq~≙~wfr~\uD835\uDD34~wopf~\uD835\uDD68~wp~℘~wr~≀~wreath~≀~wscr~\uD835\uDCCC~xcap~⋂~xcirc~◯~xcup~~xdtri~▽~xfr~\uD835\uDD35~xhArr~⟺~xharr~⟷~xlArr~⟸~xlarr~⟵~xmap~⟼~xnis~⋻~xodot~⨀~xopf~\uD835\uDD69~xoplus~⨁~xotime~⨂~xrArr~⟹~xrarr~⟶~xscr~\uD835\uDCCD~xsqcup~⨆~xuplus~⨄~xutri~△~xvee~~xwedge~⋀~yacy~я~ycirc~ŷ~ycy~ы~yfr~\uD835\uDD36~yicy~ї~yopf~\uD835\uDD6A~yscr~\uD835\uDCCE~yucy~ю~zacute~ź~zcaron~ž~zcy~з~zdot~ż~zeetrf~~zfr~\uD835\uDD37~zhcy~ж~zigrarr~⇝~zopf~\uD835\uDD6B~zscr~\uD835\uDCCF~~AMP~&~COPY~\xa9~GT~>~LT~<~QUOT~"~REG~\xae',bs.html4);var qee={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Dee=String.fromCodePoint||function(r){return String.fromCharCode(Math.floor((r-65536)/1024)+55296,(r-65536)%1024+56320)},dtr=String.prototype.codePointAt?function dtr1(r,e){return r.codePointAt(e)}:function(r,e){return(r.charCodeAt(e)-55296)*1024+r.charCodeAt(e+1)-56320+65536};var Kc=function Kc1(){return Kc=Object.assign||function(r){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r},Kc.apply(this,arguments)},htr=Kc(Kc({},bs),{all:bs.html5});var Itr={scope:"body",level:"all"},q1=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,D1=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,Fee={xml:{strict:q1,attribute:D1,body:N0.xml},html4:{strict:q1,attribute:D1,body:N0.html4},html5:{strict:q1,attribute:D1,body:N0.html5}},ptr=Kc(Kc({},Fee),{all:Fee.html5}),kee=String.fromCharCode,xtr=kee(65533);function mtr(r,e,t,i){var n=r,a=r[r.length-1];if(t&&a==="=")n=r;else if(i&&a!==";")n=r;else{var o=e[r];if(o)n=o;else if(r[0]==="&"&&r[1]==="#"){var s=r[2],A=s=="x"||s=="X"?parseInt(r.substr(3),16):parseInt(r.substr(2));n=A>=1114111?xtr:A>65535?Dee(A):kee(qee[A]||A)}}return n}function Ree(r,e){var t=e===void 0?Itr:e,i=t.level,n=i===void 0?"all":i,a=t.scope,o=a===void 0?n==="xml"?"strict":"body":a;if(!r)return"";var s=ptr[n][o],A=htr[n].entities,u=o==="attribute",c=o==="strict";return r.replace(s,function(l){return mtr(l,A,u,c)})}var Zre=Le(Xre()),yo=new Zre.default({maxConcurrent:1,minTime:200});function J0(r){return"".concat(bK,"/").concat(r)}var ete=yo.wrap(function(param){var r=param.folderName,e=param.cursor,t=param.token;return _async_to_generator(function(){var s,i,n,o,A,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,A2;return _ts_generator(this,function(_state){switch(_state.label){case 0:i='<?xml version="1.0" encoding="utf-8"?>\n <s:delta xmlns:s="http://ns.jianguoyun.com">\n <s:folderName>'.concat(r,"</s:folderName>\n <s:cursor>").concat(e!=null?e:"","</s:cursor>\n </s:delta>");return[4,gn({url:J0("delta"),method:"POST",headers:{Authorization:"Basic ".concat(t),"Content-Type":"application/xml"},body:i})];case 1:n=_state.sent(),o=new $re.XMLParser({attributeNamePrefix:"",removeNSPrefix:!0,numberParseOptions:{eNotation:!1,hex:!0,leadingZeros:!0},processEntities:!1}).parse(n.text);if(jt((s=o==null?void 0:o.response)==null?void 0:s.cursor)||(o.response.cursor=o.response.cursor.toString()),o.response.delta){A=o.response.delta.entry;Array.isArray(A)||(o.response.delta.entry=[A])}else o.response.delta={entry:[]};_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(_iterator=o.response.delta.entry[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){A2=_step.value;A2.path=Ree(A2.path)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return[2,o]}})})()});var rte=Le(h0());var K0=yo.wrap(function(param){var r=param.folderName,e=param.token;return _async_to_generator(function(){var t,i,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:t='<?xml version="1.0" encoding="utf-8"?>\n <s:delta xmlns:s="http://ns.jianguoyun.com">\n <s:folderName>'.concat(r,"</s:folderName>\n </s:delta>"),i={Authorization:"Basic ".concat(e),"Content-Type":"application/xml"};return[4,gn({url:J0("latestDeltaCursor"),method:"POST",headers:i,body:t})];case 1:n=_state.sent();return[2,new rte.XMLParser({attributeNamePrefix:"",removeNSPrefix:!0,parseTagValue:!1,numberParseOptions:{eNotation:!1,hex:!0,leadingZeros:!0},processEntities:!1}).parse(n.text)]}})})()});var tte=Le(kr());function og(r){return r=(0,tte.normalize)(r),r.startsWith("/")&&(r=r.slice(1)),r.split("/")[0]}var Dtr=yo.wrap(Nc),W1=new Map;function Ftr(r){return W1.has(r)||W1.set(r,new R0),W1.get(r)}function sg(r){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,6]);return[4,r()];case 1:return[2,_state.sent()];case 2:e=_state.sent();if(!Yi(e))return[3,4];return[4,qf(3e4)];case 3:_state.sent();return[3,5];case 4:throw e;case 5:return[3,6];case 6:return[3,0];case 7:return[2]}})})()}var V0=/*#__PURE__*/function(){"use strict";function V01(e){_class_call_check(this,V01);this.rootCursor="";this.queue=[];this.nodes={};this.processedCount=0;this.token=e.token,this.remoteBaseDir=e.remoteBaseDir,this.kvKey=e.kvKey,this.saveInterval=Math.max(e.saveInterval||1,1)}_create_class(V01,[{key:"normalizeDirPath",value:function normalizeDirPath(e){return nt(e)}},{key:"normalizeForComparison",value:function normalizeForComparison(e){var t=(0,Yc.normalize)(e);return t.endsWith("/")&&t.length>1&&(t=t.slice(0,-1)),t}},{key:"lock",get:function get(){return Ftr(this.kvKey)}},{key:"cursor",get:function get(){return this.rootCursor}},{key:"traverse",value:function traverse(){return _async_to_generator(function(){var _this;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;return[4,this.lock.runExclusive(function(){return _async_to_generator(function(){var _this,_ref,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;return[4,this.loadState()];case 1:if(!(_state.sent(),this.queue.length===0&&Object.keys(this.nodes).length>0))return[3,3];return[4,this.incrementalScan()];case 2:_state.sent();return[3,7];case 3:if(!(this.queue.length===0))return[3,5];return[4,sg(function(){return K0({token:_this.token,folderName:og(_this.remoteBaseDir)})})];case 4:_ref=_state.sent(),t=_ref.response;this.rootCursor=t.cursor,this.queue=[this.remoteBaseDir];_state.label=5;case 5:return[4,this.bfsTraverse()];case 6:_state.sent();_state.label=7;case 7:return[4,this.saveState()];case 8:return[2,(_state.sent(),this.getAllFromCache())]}})}).call(_this)})];case 1:return[2,_state.sent()]}})}).call(this)}},{key:"bfsTraverse",value:function bfsTraverse(){return _async_to_generator(function(){var _this,_this1,_loop,e,t,_ref,i,n,a;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_state.label=1;case 1:_loop=function(){var a,o,s,_s1,_t,_$A,u,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,c,l,_iteratorNormalCompletion1,_didIteratorError1,_iteratorError1,_iterator1,_step1,u2,_tmp,A;return _ts_generator(this,function(_state){switch(_state.label){case 0:a=_this1.queue[0],o=_this1.normalizeDirPath(a),s=[];_state.label=1;case 1:_state.trys.push([1,7,,9]);_$A=_this1.nodes[o];if(!_$A)return[3,2];(_s1=s).push.apply(_s1,_to_consumable_array(_$A));return[3,4];case 2:return[4,sg(function(){return Dtr(_this.token,a)})];case 3:u=_state.sent();_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(_iterator=u[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){c=_step.value;l=fo(c);s.push(l)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}_state.label=4;case 4:(_t=t).push.apply(_t,_to_consumable_array(s));_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(_iterator1=s[Symbol.iterator]();!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){u2=_step1.value;u2.isDir&&_this1.queue.push(u2.path)}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}_this1.nodes[o]=s,_this1.queue.shift(),_this1.processedCount++;_tmp=_this1.processedCount%_this1.saveInterval===0;if(!_tmp)return[3,6];return[4,_this1.saveState()];case 5:_tmp=_state.sent();_state.label=6;case 6:_tmp;return[3,9];case 7:A=_state.sent();z.error("Error processing ".concat(a),A);return[4,_this1.saveState()];case 8:throw _state.sent(),A;case 9:return[2]}})};e=this.rootCursor,t=[];_state.label=2;case 2:if(!(this.queue.length>0))return[3,5];_this1=this;return[5,_ts_values(_loop())];case 3:_state.sent();_state.label=4;case 4:return[3,2];case 5:return[4,sg(function(){return K0({token:_this.token,folderName:og(_this.remoteBaseDir)})})];case 6:_ref=_state.sent(),i=_ref.response,n=i.cursor;if(!(e&&e!==n))return[3,8];z.info("Changes detected during traversal, applying delta");return[4,this.applyDeltaDuringTraversal(e)];case 7:a=_state.sent();if(this.rootCursor=a,this.queue.length>0){z.info("Reset detected during delta apply, performing full re-scan");return[3,9]}return[2,this.getAllFromCache()];case 8:return[2,(this.rootCursor=n,t)];case 9:return[3,1];case 10:return[2]}})}).call(this)}},{key:"fetchAllDelta",value:function fetchAllDelta(e){return _wrap_async_generator(function(){var _this,t,_ref,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;t=e;_state.label=1;case 1:return[4,_await_async_generator(sg(function(){return ete({token:_this.token,folderName:og(_this.remoteBaseDir),cursor:t})}))];case 2:_ref=_state.sent(),i=_ref.response;if(!i.reset)return[3,4];return[4,{entries:[],cursor:i.cursor,reset:!0,hasMore:!1}];case 3:_state.sent();return[2];case 4:t=i.cursor;return[4,{entries:i.delta.entry,cursor:t,reset:!1,hasMore:i.hasMore}];case 5:if(_state.sent(),!i.hasMore)return[3,7];_state.label=6;case 6:return[3,1];case 7:return[2]}})}).call(this)}},{key:"applyDeltaDuringTraversal",value:function applyDeltaDuringTraversal(e){return _async_to_generator(function(){var _this,t,i,_iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator,_step,_value,n,a,o,_ref,s,_tmp,_tmp1,err1;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;t=e,i=0;_iteratorAbruptCompletion=false,_didIteratorError=false;_state.label=1;case 1:_state.trys.push([1,11,12,17]);_iterator=_async_iterator(this.fetchAllDelta(e));_state.label=2;case 2:return[4,_iterator.next()];case 3:if(!(_iteratorAbruptCompletion=!(_step=_state.sent()).done))return[3,10];_value=_step.value;n=_value.entries,a=_value.cursor,o=_value.reset;if(!o)return[3,5];z.warn("Delta reset during traversal, clearing cache and will trigger full re-scan"),this.nodes={},this.queue=[this.remoteBaseDir],this.processedCount=0;return[4,sg(function(){return K0({token:_this.token,folderName:og(_this.remoteBaseDir)})})];case 4:_ref=_state.sent(),s=_ref.response;return[2,s.cursor];case 5:_tmp=n.length>0;if(!_tmp)return[3,8];this.applyDeltaToNodes(n),i+=n.length;_tmp1=i>=this.saveInterval;if(!_tmp1)return[3,7];return[4,this.saveState()];case 6:_tmp1=(_state.sent(),i=0);_state.label=7;case 7:_tmp=_tmp1;_state.label=8;case 8:_tmp,t=a;_state.label=9;case 9:_iteratorAbruptCompletion=false;return[3,2];case 10:return[3,17];case 11:err1=_state.sent();_didIteratorError=true;_iteratorError=err1;return[3,17];case 12:_state.trys.push([12,,15,16]);if(!(_iteratorAbruptCompletion&&_iterator.return!=null))return[3,14];return[4,_iterator.return()];case 13:_state.sent();_state.label=14;case 14:return[3,16];case 15:if(_didIteratorError){throw _iteratorError}return[7];case 16:return[7];case 17:return[4,this.saveState()];case 18:return[2,(_state.sent(),t)]}})}).call(this)}},{key:"incrementalScan",value:function incrementalScan(){return _async_to_generator(function(){var e,t,_iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator,_step,_value,i,n,a,o,_tmp,_tmp1,err1;return _ts_generator(this,function(_state){switch(_state.label){case 0:e=!1,t=0;_iteratorAbruptCompletion=false,_didIteratorError=false;_state.label=1;case 1:_state.trys.push([1,11,12,17]);_iterator=_async_iterator(this.fetchAllDelta(this.rootCursor));_state.label=2;case 2:return[4,_iterator.next()];case 3:if(!(_iteratorAbruptCompletion=!(_step=_state.sent()).done))return[3,10];_value=_step.value;i=_value;n=i.entries,a=i.cursor,o=i.reset;if(!(this.rootCursor=a,o))return[3,5];z.info("Delta reset, performing full scan"),this.queue=[this.remoteBaseDir],this.nodes={},this.processedCount=0;return[4,this.bfsTraverse()];case 4:return[2,_state.sent()];case 5:_tmp=n.length>0;if(!_tmp)return[3,8];e=!0,this.applyDeltaToNodes(n),t+=n.length;_tmp1=t>=this.saveInterval;if(!_tmp1)return[3,7];return[4,this.saveState()];case 6:_tmp1=(_state.sent(),t=0);_state.label=7;case 7:_tmp=_tmp1;_state.label=8;case 8:_tmp;_state.label=9;case 9:_iteratorAbruptCompletion=false;return[3,2];case 10:return[3,17];case 11:err1=_state.sent();_didIteratorError=true;_iteratorError=err1;return[3,17];case 12:_state.trys.push([12,,15,16]);if(!(_iteratorAbruptCompletion&&_iterator.return!=null))return[3,14];return[4,_iterator.return()];case 13:_state.sent();_state.label=14;case 14:return[3,16];case 15:if(_didIteratorError){throw _iteratorError}return[7];case 16:return[7];case 17:return[4,this.saveState()];case 18:return[2,(_state.sent(),e||z.info("No changes detected, returning from cache"),this.getAllFromCache())]}})}).call(this)}},{key:"applyDeltaToNodes",value:function applyDeltaToNodes(e){var _this=this;var t=this.remoteBaseDir.endsWith("/")?this.remoteBaseDir:this.remoteBaseDir+"/",i=_to_consumable_array(e).sort(function(n,a){return n.path.length-a.path.length});var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{var _this1,_loop=function(){var n=_step.value;var a=_this1.normalizeDirPath(_this1.remoteBaseDir),o=_this1.normalizeDirPath(n.path),s=o===a,A=n.path.startsWith(t);if(!(!s&&!A))if(n.isDir)if(n.isDeleted){var u=(0,Yc.dirname)(n.path);if(u){var c=_this1.normalizeDirPath(u),l=_this1.nodes[c];if(l){var f=_this1.normalizeForComparison(n.path);_this1.nodes[c]=l.filter(function(g){return _this.normalizeForComparison(g.path)!==f})}}for(var c2 in _this1.nodes)(c2===o||c2.startsWith(o))&&delete _this1.nodes[c2]}else{var u2=(0,Yc.dirname)(n.path);if(u2){var c3=_this1.normalizeDirPath(u2),l2=_this1.nodes[c3];if(l2){var f2={path:n.path,basename:n.path.split("/").pop()||"",isDir:!0,isDeleted:!1,mtime:n.modified?new Date(n.modified).getTime():void 0},g=_this1.normalizeForComparison(n.path);_this1.nodes[c3]=_to_consumable_array(l2.filter(function(h){return _this.normalizeForComparison(h.path)!==g})).concat([f2])}}_this1.nodes[o]||(_this1.nodes[o]=[])}else{var u3=(0,Yc.dirname)(n.path);if(u3){var c6=_this1.normalizeDirPath(u3);if(n.isDeleted){var l3=_this1.nodes[c6];if(l3){var f3=_this1.normalizeForComparison(n.path);_this1.nodes[c6]=l3.filter(function(g){return _this.normalizeForComparison(g.path)!==f3})}}else{var l5=_this1.nodes[c6];if(l5){var f4={path:n.path,basename:n.path.split("/").pop()||"",isDir:!1,isDeleted:!1,mtime:new Date(n.modified).getTime(),size:n.size},g2=_this1.normalizeForComparison(n.path);_this1.nodes[c6]=_to_consumable_array(l5.filter(function(h){return _this.normalizeForComparison(h.path)!==g2})).concat([f4])}}}}};for(var _iterator=i[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_this1=this,_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}},{key:"getAllFromCache",value:function getAllFromCache(){var _e1;var e=[];var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=Object.values(this.nodes)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;(_e1=e).push.apply(_e1,_to_consumable_array(t))}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e}},{key:"loadState",value:function loadState(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Cn.get(this.kvKey)];case 1:e=_state.sent();e&&(this.rootCursor=e.rootCursor||"",this.queue=e.queue||[],this.nodes=e.nodes||{});return[2]}})}).call(this)}},{key:"saveState",value:function saveState(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Cn.set(this.kvKey,{rootCursor:this.rootCursor,queue:this.queue,nodes:this.nodes})];case 1:_state.sent();return[2]}})}).call(this)}},{key:"clearCache",value:function clearCache(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Cn.unset(this.kvKey)];case 1:_state.sent(),this.rootCursor="",this.queue=[],this.nodes={},this.processedCount=0;return[2]}})}).call(this)}},{key:"isCacheValid",value:function isCacheValid(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Cn.get(this.kvKey)];case 1:e=_state.sent();return[2,e?e.queue.length===0:!1]}})}).call(this)}}]);return V01}();var zc=/*#__PURE__*/function(){"use strict";function zc1(e){_class_call_check(this,zc1);this.options=e;this.webdav=sf(os,{headers:{Authorization:"Basic ".concat(this.options.token)}})}_create_class(zc1,[{key:"walk",value:function walk(){return _async_to_generator(function(){var t,_2,_tmp,i,n,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,_step_value,g,a,_iteratorNormalCompletion1,_didIteratorError1,_iteratorError1,_iterator1,_step1,g2,o,s,A,u,c,l;return _ts_generator(this,function(_state){switch(_state.label){case 0:_2=V0.bind;_tmp={token:this.options.token,remoteBaseDir:this.options.remoteBaseDir};return[4,Lf(this.options.token,this.options.remoteBaseDir)];case 1:return[4,(new(_2.apply(V0,[void 0,(_tmp.kvKey=_state.sent(),_tmp.saveInterval=1,_tmp)]))).traverse()];case 2:t=_state.sent();if(t.length===0)return[2,[]];i=nt(this.options.remoteBaseDir),n=new Set;_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(_iterator=t[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){_step_value=_step.value,g=_step_value.path;g.endsWith("/")&&(g=g.slice(0,g.length-1)),g.startsWith("/")||(g="/".concat(g)),Xi(i,g)&&n.add(g)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}a=new Map(t.map(function(g){return[g.path,g]}));t=_to_consumable_array(n).map(function(g){return a.get(g)}).filter(Aa);_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(_iterator1=t[Symbol.iterator]();!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){g2=_step1.value;(0,ite.isAbsolute)(g2.path)&&(g2.path=g2.path.replace(this.options.remoteBaseDir,""),g2.path.startsWith("/")&&(g2.path=g2.path.slice(1)))}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}return[4,yt()];case 3:o=_state.sent(),s=this.buildRules(o==null?void 0:o.filterRules.exclusionRules),A=this.buildRules(o==null?void 0:o.filterRules.inclusionRules),u=t.filter(function(g){return _0(g.path,A,s)}),c=ag(t,u),l=new Set(c.map(function(g){return g.path}));return[2,t.map(function(g){return{stat:g,ignored:!l.has(g.path)}})]}})}).call(this)}},{key:"buildRules",value:function buildRules(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(t){return!S0(t)}).map(function(param){var t=param.expr,i=param.options;return new ca(t,i)})}}]);return zc1}();var fa=/*#__PURE__*/function(){"use strict";function fa1(e,t){_class_call_check(this,fa1);this.namespace=e;this.storage=t}_create_class(fa1,[{key:"updateFileRecord",value:function updateFileRecord(e,t){return _async_to_generator(function(){var i,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.get(this.namespace)];case 1:i=_state.sent();if(!i)return[3,3];i.set(e,t);return[4,this.storage.set(this.namespace,i)];case 2:_tmp=_state.sent();return[3,5];case 3:return[4,this.storage.set(this.namespace,new Map([[e,t]]))];case 4:_tmp=_state.sent();_state.label=5;case 5:_tmp;return[2]}})}).call(this)}},{key:"deleteFileRecord",value:function deleteFileRecord(e){return _async_to_generator(function(){var t,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.get(this.namespace)];case 1:t=_state.sent();_tmp=t&&t.has(e);if(!_tmp)return[3,3];t.delete(e);return[4,this.storage.set(this.namespace,t)];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})}).call(this)}},{key:"getRecords",value:function getRecords(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.get(this.namespace)];case 1:e=_state.sent();return[2,e!=null?e:new Map]}})}).call(this)}},{key:"setRecords",value:function setRecords(e){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.set(this.namespace,e)];case 1:_state.sent();return[2]}})}).call(this)}},{key:"getRecord",value:function getRecord(e){return _async_to_generator(function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.get(this.namespace)];case 1:t=_state.sent();if(t)return[2,t.get(e)];return[2]}})}).call(this)}},{key:"drop",value:function drop(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.unset(this.namespace)];case 1:_state.sent();return[2]}})}).call(this)}},{key:"exists",value:function exists(e){return _async_to_generator(function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.get(this.namespace)];case 1:t=_state.sent();return[2,t?t.has(e):!1]}})}).call(this)}},{key:"batchUpdate",value:function batchUpdate(e){return _async_to_generator(function(){var t,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,_step_value,i,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(e.length===0)return[2];return[4,this.storage.get(this.namespace)];case 1:t=_state.sent();if(!t)return[3,3];_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(_iterator=e[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){_step_value=_sliced_to_array(_step.value,2),i=_step_value[0],n=_step_value[1];t.set(i,n)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return[4,this.storage.set(this.namespace,t)];case 2:_state.sent();return[3,5];case 3:return[4,this.storage.set(this.namespace,new Map(e))];case 4:_state.sent();_state.label=5;case 5:return[2]}})}).call(this)}}]);return fa1}();function nte(r,e){return new Promise(function(t,i){var a=function a(){window.clearTimeout(o),n.unsubscribe(),t()};var n=r.subscribe({next:function(){return a()},error:function(s){window.clearTimeout(o),n.unsubscribe(),i(s)}});var o=window.setTimeout(function(){a()},e)})}var Ag=/*#__PURE__*/function(){"use strict";function Ag1(e,t){_class_call_check(this,Ag1);this.sync=e;this.syncRecordStorage=t}_create_class(Ag1,[{key:"getSyncRecordStorage",value:function getSyncRecordStorage(){return this.syncRecordStorage}},{key:"webdav",get:function get(){return this.sync.webdav}},{key:"settings",get:function get(){return this.sync.settings}},{key:"vault",get:function get(){return this.sync.vault}},{key:"remoteBaseDir",get:function get(){return this.sync.remoteBaseDir}}]);return Ag1}();var ote=Le(C1());function jc(r,e){if(r===void 0||e===void 0)return!1;var t=typeof r=="number"?r:r.getTime(),i=typeof e=="number"?e:e.getTime();return t===i}var Y0=Le(kr());function Nr(r,e){return(0,Y0.isAbsolute)(e)?e:(0,Y0.join)(r,e)}var Xc=Le(kr());function ate(r,e){return r=(0,Xc.normalize)(r),e=(0,Xc.normalize)(e),e=(0,Xc.isAbsolute)(e)&&e.startsWith(r)?e.replace(r,""):e,(0,Xc.normalize)(e)}function J1(r,e){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;if((Xi(r,t.stat.path)||t.stat.path===r)&&t.ignored)return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return!1}function K1(r,e){var t=[];var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var i=_step.value;(Xi(r,i.stat.path)||i.stat.path===r)&&i.ignored&&t.push(i.stat.path)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return t}function V1(r,e,t,i){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var n=_step.value;if(!Xi(r,n.path))continue;var a=t.get(n.path);if(!a)return!0;if(!n.isDir){var o=i==="local"?a.local.mtime:a.remote.mtime;if(n.mtime&&o&&!jc(n.mtime,o))return!0}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return!1}function ste(r){return _async_to_generator(function(){var _d,B,b,e,t,i,n,a,o,s,A,u,c,l,f,g,h,d,p,m,x,v,E,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,C,y,q,w,N,F,M,U,G,F1,err1,_iteratorNormalCompletion1,_didIteratorError1,_iteratorError1,_iterator1,_step1,_step_value,C2,y2,q3,w2,_iteratorNormalCompletion2,_didIteratorError2,_iteratorError2,_iterator2,_step2,C3,y3,q4,w3,N1,F2,_iteratorNormalCompletion3,_didIteratorError3,_iteratorError3,_iterator3,_step3,C6,y5,q5,w4,N3,S;return _ts_generator(this,function(_state){switch(_state.label){case 0:e=r.settings,t=r.localStats,i=r.remoteStats,n=r.syncRecords,a=r.remoteBaseDir,o=r.compareFileContent,s=r.taskFactory,A=1/0,u=e.skipLargeFiles.maxSize.trim();u!==""&&(A=(B=(0,ote.parse)(u,{mode:"jedec"}))!=null?B:1/0);c=t.filter(function(C){return!C.ignored}).map(function(C){return C.stat}),l=i.filter(function(C){return!C.ignored}).map(function(C){return C.stat}),f=new Map(c.map(function(C){return[C.path,C]})),g=new Map(l.map(function(C){return[C.path,C]})),h=new Set(_to_consumable_array(f.keys()).concat(_to_consumable_array(g.keys())));z.debug("local Stats",c.map(function(C){return{path:C.path,size:C.isDir?void 0:C.size,isDir:C.isDir}})),z.debug("remote Stats",l.map(function(C){return{path:C.path,size:C.isDir?void 0:C.size,isDir:C.isDir}}));d=[],p=[],m=[],x=[],v=[],E=[];_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;_state.label=1;case 1:_state.trys.push([1,14,15,16]);_iterator=h[Symbol.iterator]();_state.label=2;case 2:if(!!(_iteratorNormalCompletion=(_step=_iterator.next()).done))return[3,13];C=_step.value;y=g.get(C),q=f.get(C),w=n.get(C),N={remotePath:C,localPath:C,remoteBaseDir:a};if(!!(q!=null&&q.isDir||y!=null&&y.isDir))return[3,12];if(!w)return[3,11];if(!y)return[3,9];F=!jc(y.mtime,w.remote.mtime);if(!q)return[3,7];M=!jc(q.mtime,w.local.mtime);if(!(M&&(b=w.base)!=null&&b.key))return[3,6];return[4,Qc.get(w.base.key)];case 3:U=_state.sent();if(!U)return[3,6];return[4,U.arrayBuffer()];case 4:G=_state.sent();return[4,o(q.path,G)];case 5:M=!_state.sent();_state.label=6;case 6:if(F)if(M){if(z.debug({reason:"both local and remote files changed",remotePath:Nr(a,C),localPath:C,conditions:{remoteChanged:F,localChanged:M,recordExists:!!w,remoteExists:!!y,localExists:!!q}}),y.size>A||q.size>A){d.push(s.createSkippedTask(_object_spread_props(_object_spread({},N),{reason:"file-too-large",maxSize:A,remoteSize:y.size,localSize:q.size})));return[3,12]}go(q.path)?d.push(s.createFilenameErrorTask(N)):d.push(s.createConflictResolveTask(_object_spread_props(_object_spread({},N),{record:w,strategy:e.conflictStrategy==="latest-timestamp"?"latest-timestamp":"diff-match-patch",localStat:q,remoteStat:y,useGitStyle:e.useGitStyle})));return[3,12]}else{if(z.debug({reason:"remote file changed",remotePath:Nr(a,C),localPath:C,conditions:{remoteChanged:F,recordExists:!!w,remoteExists:!!y,localExists:!!q}}),y.size>A){d.push(s.createSkippedTask(_object_spread_props(_object_spread({},N),{reason:"file-too-large",maxSize:A,remoteSize:y.size,localSize:q.size})));return[3,12]}d.push(s.createPullTask(_object_spread_props(_object_spread({},N),{remoteSize:y.size})));return[3,12]}else if(M){if(z.debug({reason:"local file changed",remotePath:Nr(a,C),localPath:C,conditions:{localChanged:M,recordExists:!!w,remoteExists:!!y,localExists:!!q}}),q.size>A){d.push(s.createSkippedTask(_object_spread_props(_object_spread({},N),{reason:"file-too-large",maxSize:A,remoteSize:y.size,localSize:q.size})));return[3,12]}go(q.path)?d.push(s.createFilenameErrorTask(N)):d.push(s.createPushTask(N));return[3,12]}return[3,8];case 7:if(F){if(z.debug({reason:"remote file changed and local file does not exist",remotePath:Nr(a,C),localPath:C,conditions:{remoteChanged:F,recordExists:!!w,remoteExists:!!y,localExists:!!q}}),y.size>A){d.push(s.createSkippedTask(_object_spread_props(_object_spread({},N),{reason:"file-too-large",maxSize:A,remoteSize:y.size})));return[3,12]}d.push(s.createPullTask(_object_spread_props(_object_spread({},N),{remoteSize:y.size})));return[3,12]}else{z.debug({reason:"remote file is removable",remotePath:Nr(a,C),localPath:C,conditions:{recordExists:!!w,remoteExists:!!y,localExists:!!q}}),d.push(s.createRemoveRemoteTask(N));return[3,12]}_state.label=8;case 8:return[3,10];case 9:if(q){F1=!jc(q.mtime,w.local.mtime);if(F1){if(z.debug({reason:"local file changed and remote file does not exist",remotePath:Nr(a,C),localPath:C,conditions:{localChanged:F1,recordExists:!!w,remoteExists:!!y,localExists:!!q}}),q.size>A){d.push(s.createSkippedTask(_object_spread_props(_object_spread({},N),{reason:"file-too-large",localSize:q.size,maxSize:A})));return[3,12]}go(q.path)?d.push(s.createFilenameErrorTask(N)):d.push(s.createPushTask(N));return[3,12]}else{z.debug({reason:"local file is removable",remotePath:Nr(a,C),localPath:C,conditions:{recordExists:!!w,remoteExists:!!y,localExists:!!q}}),d.push(s.createRemoveLocalTask(N));return[3,12]}}_state.label=10;case 10:return[3,12];case 11:if(y)if(q){if(e.syncMode==="loose"&&!y.isDeleted&&!y.isDir&&y.size===q.size){d.push(s.createNoopTask(_object_spread({},N)));return[3,12]}if(z.debug({reason:"both local and remote files exist without a record",remotePath:Nr(a,C),localPath:C,conditions:{recordExists:!!w,remoteExists:!!y,localExists:!!q}}),y.size>A||q.size>A){d.push(s.createSkippedTask(_object_spread_props(_object_spread({},N),{reason:"file-too-large",remoteSize:y.size,localSize:q.size,maxSize:A})));return[3,12]}go(q.path)?d.push(s.createFilenameErrorTask(N)):d.push(s.createConflictResolveTask(_object_spread_props(_object_spread({},N),{strategy:"diff-match-patch",localStat:q,remoteStat:y,useGitStyle:e.useGitStyle})));return[3,12]}else{if(z.debug({reason:"remote file exists without a local file",remotePath:Nr(a,C),localPath:C,conditions:{recordExists:!!w,remoteExists:!!y,localExists:!!q}}),y.size>A){d.push(s.createSkippedTask(_object_spread_props(_object_spread({},N),{reason:"file-too-large",remoteSize:y.size,maxSize:A})));return[3,12]}d.push(s.createPullTask(_object_spread_props(_object_spread({},N),{remoteSize:y.size})));return[3,12]}else if(q){if(z.debug({reason:"local file exists without a remote file",remotePath:Nr(a,C),localPath:C,conditions:{recordExists:!!w,remoteExists:!!y,localExists:!!q}}),q.size>A){d.push(s.createSkippedTask(_object_spread_props(_object_spread({},N),{reason:"file-too-large",localSize:q.size,maxSize:A})));return[3,12]}go(q.path)?d.push(s.createFilenameErrorTask(N)):d.push(s.createPushTask(N));return[3,12]}_state.label=12;case 12:_iteratorNormalCompletion=true;return[3,2];case 13:return[3,16];case 14:err1=_state.sent();_didIteratorError=true;_iteratorError=err1;return[3,16];case 15:try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}return[7];case 16:_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(_iterator1=n[Symbol.iterator]();!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){_step_value=_sliced_to_array(_step1.value,2),C2=_step_value[0],y2=_step_value[1];q3=f.get(C2),w2=g.get(C2);!q3&&!w2&&(z.debug({reason:"cleaning orphaned sync record (both local and remote deleted)",remotePath:Nr(a,C2),localPath:C2,conditions:{localExists:!!q3,remoteExists:!!w2,recordExists:!!y2}}),d.push(s.createCleanRecordTask({remotePath:C2,localPath:C2,remoteBaseDir:a})))}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}_iteratorNormalCompletion2=true,_didIteratorError2=false,_iteratorError2=undefined;try{for(_iterator2=l[Symbol.iterator]();!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){C3=_step2.value;if(!C3.isDir)continue;y3=ate(a,C3.path),q4=f.get(y3),w3=n.get(y3);if(q4){if(!q4.isDir)throw new Error("Folder conflict: remote path ".concat(C3.path," is a folder but local path ").concat(y3," is a file"));if(!w3){E.push(s.createNoopTask({localPath:y3,remotePath:C3.path,remoteBaseDir:a}));continue}}else if(w3){N1=V1(C3.path,l,n,"remote");if(N1){z.debug({reason:"remote folder content changed",remotePath:Nr(a,C3.path),localPath:y3,conditions:{remoteChanged:N1,localExists:!!q4,recordExists:!!w3}}),x.push(s.createMkdirLocalTask({localPath:y3,remotePath:C3.path,remoteBaseDir:a}));continue}if(J1(C3.path,i)){F2=K1(C3.path,i);z.debug({reason:"skip removing remote folder (contains ignored items)",remotePath:Nr(a,C3.path),localPath:y3,conditions:{hasIgnoredItems:!0,localExists:!!q4,recordExists:!!w3},ignoredPaths:F2}),d.push(s.createSkippedTask({localPath:y3,remotePath:C3.path,remoteBaseDir:a,reason:"folder-contains-ignored-items",ignoredPaths:F2}));continue}z.debug({reason:"remote folder is removable (no content changes)",remotePath:Nr(a,C3.path),localPath:y3,conditions:{removable:!0,localExists:!!q4,recordExists:!!w3}}),p.push(s.createRemoveRemoteTask({localPath:C3.path,remotePath:C3.path,remoteBaseDir:a}));continue}else{z.debug({reason:"remote folder does not exist locally",remotePath:Nr(a,C3.path),localPath:y3,conditions:{localExists:!!q4,recordExists:!!w3}}),x.push(s.createMkdirLocalTask({localPath:y3,remotePath:C3.path,remoteBaseDir:a}));continue}}}catch(err1){_didIteratorError2=true;_iteratorError2=err1}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}_iteratorNormalCompletion3=true,_didIteratorError3=false,_iteratorError3=undefined;try{for(_iterator3=c[Symbol.iterator]();!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){C6=_step3.value;if(!C6.isDir)continue;y5=g.get(C6.path),q5=n.get(C6.path);if(y5){if(!q5){E.push(s.createNoopTask({localPath:C6.path,remotePath:y5.path,remoteBaseDir:a}));continue}}else{if(q5){w4=V1(C6.path,c,n,"local");if(w4){z.debug({reason:"local folder content changed",remotePath:Nr(a,C6.path),localPath:C6.path,conditions:{localChanged:w4,remoteExists:!!y5,recordExists:!!q5}}),go(C6.path)?d.push(s.createFilenameErrorTask({localPath:C6.path,remotePath:C6.path,remoteBaseDir:a})):v.push(s.createMkdirRemoteTask({localPath:C6.path,remotePath:C6.path,remoteBaseDir:a}));continue}if(J1(C6.path,t)){N3=K1(C6.path,t);z.debug({reason:"skip removing local folder (contains ignored items)",remotePath:Nr(a,C6.path),localPath:C6.path,conditions:{hasIgnoredItems:!0,remoteExists:!!y5,recordExists:!!q5},ignoredPaths:N3}),d.push(s.createSkippedTask({localPath:C6.path,remotePath:C6.path,remoteBaseDir:a,reason:"folder-contains-ignored-items",ignoredPaths:N3}));continue}z.debug({reason:"local folder is removable (no content changes)",remotePath:Nr(a,C6.path),localPath:C6.path,conditions:{removable:!0,remoteExists:!!y5,recordExists:!!q5}}),m.push(s.createRemoveLocalTask({localPath:C6.path,remotePath:C6.path,remoteBaseDir:a}))}else{z.debug({reason:"local folder does not exist remotely",remotePath:Nr(a,C6.path),localPath:C6.path,conditions:{remoteExists:!!y5,recordExists:!!q5}}),go(C6.path)?d.push(s.createFilenameErrorTask({localPath:C6.path,remotePath:C6.path,remoteBaseDir:a})):v.push(s.createMkdirRemoteTask({localPath:C6.path,remotePath:C6.path,remoteBaseDir:a}));continue}continue}if(!y5.isDir)throw new Error("Folder conflict: local path ".concat(C6.path," is a folder but remote path ").concat(y5.path," is a file"))}}catch(err1){_didIteratorError3=true;_iteratorError3=err1}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return!=null){_iterator3.return()}}finally{if(_didIteratorError3){throw _iteratorError3}}}p.sort(function(C,y){return y.remotePath.length-C.remotePath.length}),m.sort(function(C,y){return y.localPath.length-C.localPath.length});S=_to_consumable_array(p).concat(_to_consumable_array(m),_to_consumable_array(x),_to_consumable_array(v),_to_consumable_array(E));return[2,((_d=d).splice.apply(_d,[0,0].concat(_to_consumable_array(S))),d)]}})})()}var Ss=/*#__PURE__*/function(Ag1){"use strict";_inherits(Ss1,Ag1);function Ss1(){_class_call_check(this,Ss1);return _call_super(this,Ss1,arguments)}_create_class(Ss1,[{key:"decide",value:function decide(){return _async_to_generator(function(){var _this,e,_ref,t,i,n,a,o,s;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;e=this.getSyncRecordStorage();return[4,Promise.all([e.getRecords(),this.sync.localFS.walk(),this.sync.remoteFs.walk()])];case 1:_ref=_sliced_to_array.apply(void 0,[_state.sent(),3]),t=_ref[0],i=_ref[1],n=_ref[2],a={webdav:this.webdav,vault:this.vault,remoteBaseDir:this.remoteBaseDir,syncRecord:e},o={createPullTask:function(A){return new ea(_object_spread({},a,A))},createPushTask:function(A){return new Ki(_object_spread({},a,A))},createConflictResolveTask:function(A){return new Xn(_object_spread({},a,A))},createNoopTask:function(A){return new Zt(_object_spread({},a,A))},createRemoveLocalTask:function(A){return new Si(_object_spread({},a,A))},createRemoveRemoteTask:function(A){return new _i(_object_spread({},a,A))},createMkdirLocalTask:function(A){return new $n(_object_spread({},a,A))},createMkdirRemoteTask:function(A){return new Ct(_object_spread({},a,A))},createCleanRecordTask:function(A){return new Rt(_object_spread({},a,A))},createFilenameErrorTask:function(A){return new Zn(_object_spread({},a,A))},createSkippedTask:function(A){return new ai(_object_spread({},a,A))}},s=function(A,u){return _async_to_generator(function(){var c,l;return _ts_generator(this,function(_state){switch(_state.label){case 0:c=this.vault.getFileByPath(A);if(!c)return[2,!1];return[4,this.vault.readBinary(c)];case 1:l=_state.sent();return[2,l1(u,l)]}})}).call(_this)};return[4,ste({settings:{skipLargeFiles:this.settings.skipLargeFiles,conflictStrategy:this.settings.conflictStrategy,useGitStyle:this.settings.useGitStyle,syncMode:this.settings.syncMode},localStats:i,remoteStats:n,syncRecords:t,remoteBaseDir:this.remoteBaseDir,compareFileContent:s,taskFactory:o})];case 2:return[2,_state.sent()]}})}).call(this)}}]);return Ss1}(Ag);function Ate(r){if(r.length===0)return[];var e=new Map;var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=r[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var i=_step.value;var n=i.remotePath,a=!1;var _iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator1=e.entries()[Symbol.iterator](),_step1;!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){var _step_value=_sliced_to_array(_step1.value,2),o=_step_value[0],s=_step_value[1];if(n.startsWith(o+"/")){e.delete(o),s.push({task:i,remotePath:n}),e.set(n,s),a=!0;break}}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}if(!a){var o1=[],s2=[];var _iteratorNormalCompletion2=true,_didIteratorError2=false,_iteratorError2=undefined;try{for(var _iterator2=e.entries()[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var _step_value1=_sliced_to_array(_step2.value,2),A=_step_value1[0],u=_step_value1[1];A.startsWith(n+"/")&&(o1=o1.concat(u),s2.push(A))}}catch(err1){_didIteratorError2=true;_iteratorError2=err1}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}var _iteratorNormalCompletion3=true,_didIteratorError3=false,_iteratorError3=undefined;try{for(var _iterator3=s2[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var A2=_step3.value;e.delete(A2)}}catch(err1){_didIteratorError3=true;_iteratorError3=err1}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return!=null){_iterator3.return()}}finally{if(_didIteratorError3){throw _iteratorError3}}}if(o1.length>0){o1.push({task:i,remotePath:n});var A3=o1.reduce(function(u,c){return c.remotePath.length>u.remotePath.length?c:u});e.set(A3.remotePath,o1)}else e.set(n,[{task:i,remotePath:n}])}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var t=[];var _iteratorNormalCompletion4=true,_didIteratorError4=false,_iteratorError4=undefined;try{var _loop=function(){var i=_step4.value;var n=i.reduce(function(s,A){return A.remotePath.length>s.remotePath.length?A:s}),a=i.filter(function(s){return s!==n}).map(function(s){return{localPath:s.task.localPath,remotePath:s.task.remotePath}}),o=new Ji(_object_spread_props(_object_spread({},n.task.options),{additionalPaths:a}));t.push(o)};for(var _iterator4=e.values()[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true)_loop()}catch(err1){_didIteratorError4=true;_iteratorError4=err1}finally{try{if(!_iteratorNormalCompletion4&&_iterator4.return!=null){_iterator4.return()}}finally{if(_didIteratorError4){throw _iteratorError4}}}return t}var cg=Le(kr());function cte(r){if(r.length===0)return[];var e=r.filter(function(a){var o=(0,cg.normalize)(a.remotePath);return o!==""&&o!=="."});if(e.length===0)return[];var t=_to_consumable_array(e).sort(function(a,o){var s=(0,cg.normalize)(a.remotePath),A=(0,cg.normalize)(o.remotePath);return s.length!==A.length?s.length-A.length:s.localeCompare(A)}),i=[],n=[];var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{var _loop=function(){var a=_step.value;var o=(0,cg.normalize)(a.remotePath);n.some(function(A){return o===A?!0:Xi(A,o)})||(n.push(o),i.push(new Vi(a.options)))};for(var _iterator=t[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return i}function ute(r,e,t,i,n,a){return _async_to_generator(function(){var o,s,u,c,l,f,g,h,d,p,m,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,v,E,_iteratorNormalCompletion1,_didIteratorError1,_iteratorError1,_iterator1,_step1,S,x,_iteratorNormalCompletion2,_didIteratorError2,_iteratorError2,_iterator2,_step2,v1,E2,err1;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(i.length===0)return[2];o=i.filter(function(v,E){var S,B;return((S=n[E])==null?void 0:S.success)&&!((B=n[E])!=null&&B.skipRecord)});if(o.length===0)return[2];return[4,r.getToken()];case 1:s=_state.sent();return[4,new zc({vault:e,token:s,remoteBaseDir:nt(t)}).walk()];case 2:u=_state.sent(),c=new Map(u.map(function(v){return[v.stat.path,v]})),l=new fa(aa(e.getName(),t),jn);return[4,l.getRecords()];case 3:f=_state.sent(),g=Date.now(),h=0,d=0,p=xs(function(v){return l.setRecords(v)},3e3,{trailing:!0,leading:!1}),m=[];_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(_iterator=o[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){v=_step.value;if(_instanceof(v,Ji)){E=v.getAllPaths();_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(_iterator1=E[Symbol.iterator]();!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){S=_step1.value;m.push({task:v,localPath:S.localPath})}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}}else m.push({task:v,localPath:v.localPath})}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}x=vf(m,a);_iteratorNormalCompletion2=true,_didIteratorError2=false,_iteratorError2=undefined;_state.label=4;case 4:_state.trys.push([4,9,10,11]);_iterator2=x[Symbol.iterator]();_state.label=5;case 5:if(!!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done))return[3,8];v1=_step2.value;E2=v1.map(function(param){var S=param.task,B=param.localPath;return _async_to_generator(function(){var _$b,C,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,w,y,q,w2,N,_ref,M,b;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,6,7,8]);_$b=c.get(B);return[4,Xt(e,B)];case 1:C=_state.sent();if(_instanceof(S,Vi)){_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(_iterator=f.keys()[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){w=_step.value;Xi(B,w)&&f.delete(w)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}f.delete(B);return[2]}if(!C&&!_$b){f.delete(B);return[2]}if(!C||!_$b)return[2];if(!!C.isDir)return[3,5];w2=e.getFileByPath(B);if(!w2)return[2];return[4,e.readBinary(w2)];case 2:N=_state.sent();if(!!wf(w2.path))return[3,3];q=void 0;return[3,5];case 3:return[4,Qc.store(N)];case 4:_ref=_state.sent(),M=_ref.key;q=M;_state.label=5;case 5:y=jt(q)?void 0:{key:q},f.set(B,{remote:_$b.stat,local:C,base:y}),d++;return[3,8];case 6:b=_state.sent();z.error("updateMtimeInRecord",{errorName:b.name,errorMsg:b.message},S.toJSON());return[3,8];case 7:h++;return[7];case 8:return[2]}})})()});return[4,Promise.all(E2)];case 6:_state.sent(),eY(m.length,h),p(f);_state.label=7;case 7:_iteratorNormalCompletion2=true;return[3,5];case 8:return[3,11];case 9:err1=_state.sent();_didIteratorError2=true;_iteratorError2=err1;return[3,11];case 10:try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}return[7];case 11:return[4,p.flush()];case 12:_state.sent(),z.debug("Records saving completed",{recordsSize:f.size,elapsedMs:Date.now()-g});return[2]}})})()}var Qo=/*#__PURE__*/function(){"use strict";function Qo1(e,t){var _this=this;_class_call_check(this,Qo1);this.plugin=e;this.options=t;this.isCancelled=!1;this.subscriptions=[];this.options=Object.freeze(this.options),this.remoteFs=new zc(this.options),this.localFS=new k0({vault:this.options.vault,syncRecord:new fa(aa(this.vault.getName(),this.remoteBaseDir),jn)}),this.subscriptions.push(lf().subscribe(function(){_this.isCancelled=!0}))}_create_class(Qo1,[{key:"start",value:function start(_01){return _async_to_generator(function(param){var _this,e,_$t,i,n,a,o,s,_tmp,w,A,u,c,l,f,_$w,_$w1,_ref,N,F,M,U,G,K,ce,J,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,le,ue,Ge,Ge1,err1,Ce,L,_iteratorNormalCompletion1,_didIteratorError1,_iteratorError1,_iterator1,_step1,le1,ue1,_iteratorNormalCompletion2,_didIteratorError2,_iteratorError2,_iterator2,_step2,Ge2,Ae,pe,_iteratorNormalCompletion3,_didIteratorError3,_iteratorError3,_iterator3,_step3,le2,g,h,d,p,m,v,E,B,b,C,y,_iteratorNormalCompletion4,_didIteratorError4,_iteratorError4,_iterator4,_step4,_$w2,_b1,N1,err1,q,_$w3,N3,F1,M1,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;e=param.mode;_state.label=1;case 1:_state.trys.push([1,38,39,40]);_$t=e==="manual_sync";VV({showNotice:_$t});i=this.settings,n=this.webdav,a=nt(this.options.remoteBaseDir),o=new fa(aa(this.vault.getName(),this.remoteBaseDir),jn);return[4,n.exists(a)];case 2:s=_state.sent();_tmp=s;if(_tmp)return[3,4];return[4,o.drop()];case 3:_tmp=_state.sent();_state.label=4;case 4:_tmp;_state.label=5;case 5:if(!!s)return[3,14];if(this.isCancelled){ls(new Error(_.t("sync.cancelled")));return[2]}_state.label=6;case 6:_state.trys.push([6,8,,13]);return[4,n.createDirectory(this.options.remoteBaseDir,{recursive:!0})];case 7:_state.sent();return[3,14];case 8:w=_state.sent();if(!Yi(w))return[3,11];return[4,this.handle503Error(6e4)];case 9:if(_state.sent(),this.isCancelled){ls(new Error(_.t("sync.cancelled")));return[2]}return[4,n.exists(a)];case 10:s=_state.sent();return[3,12];case 11:throw w;case 12:return[3,13];case 13:return[3,5];case 14:return[4,new Ss(this,o).decide()];case 15:A=_state.sent();if(A.length===0){Zb({showNotice:_$t,failedCount:0});return[2]}u=A.filter(function(w){return _instanceof(w,Zt)}),c=A.filter(function(w){return _instanceof(w,ai)}),l=A.filter(function(w){return!(_instanceof(w,Zt)||_instanceof(w,ai))}),f=l.findIndex(function(w){return!_instanceof(w,Rt)});if(this.isCancelled){ls(new Error(_.t("sync.cancelled")));return[2]}if(!(_$t&&i.confirmBeforeSync&&f>-1))return[3,17];return[4,new _f(this.app,l).open()];case 16:_$w=_state.sent();if(_$w.confirm)l=_$w.tasks;else{ls(new Error(_.t("sync.cancelled")));return[2]}_state.label=17;case 17:if(!(e==="auto_sync"&&i.confirmBeforeDeleteInAutoSync))return[3,28];_$w1=l.filter(function(N){return _instanceof(N,Si)});if(!(_$w1.length>0))return[3,28];new Di.Notice(_.t("deleteConfirm.warningNotice"),3e3);return[4,new Ef(this.app,_$w1).open()];case 18:_ref=_state.sent(),N=_ref.tasksToDelete,F=_ref.tasksToReupload,M=new Map,U=new Map,G=[],K=new Set,ce=function(le){var ue=le;for(;ue&&ue!=="."&&ue!==""&&ue!=="/"&&!K.has(ue);)K.add(ue),ue=nt((0,ug.dirname)(ue))},J=function(le,ue){return _async_to_generator(function(){var Ge,fe,Fe,Oe;return _ts_generator(this,function(_state){switch(_state.label){case 0:Ge=(0,Di.normalizePath)((0,ug.dirname)(le)),fe=nt((0,ug.dirname)(ue));if(!(!(Ge==="."||Ge===""||Ge==="/"||U.has(fe)||A.some(function(Fe){return _instanceof(Fe,Ct)&&Fe.remotePath===fe})||l.some(function(Fe){return _instanceof(Fe,Ct)&&Fe.remotePath===fe}))&&!K.has(fe)))return[3,4];_state.label=1;case 1:_state.trys.push([1,3,,4]);return[4,n.stat(fe)];case 2:_state.sent(),ce(fe);return[3,4];case 3:Fe=_state.sent();Oe=new Ct({vault:this.vault,webdav:n,remoteBaseDir:this.remoteBaseDir,remotePath:fe,localPath:Ge,syncRecord:o});U.set(fe,Oe);return[3,4];case 4:return[2]}})}).call(_this)};_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;_state.label=19;case 19:_state.trys.push([19,25,26,27]);_iterator=F[Symbol.iterator]();_state.label=20;case 20:if(!!(_iteratorNormalCompletion=(_step=_iterator.next()).done))return[3,24];le=_step.value;return[4,Xt(this.vault,le.localPath)];case 21:ue=_state.sent();if(!ue)return[3,23];return[4,J(le.localPath,le.remotePath)];case 22:if(_state.sent(),ue.isDir){Ge=new Ct(le.options);M.set(le,Ge),U.set(le.remotePath,Ge)}else{Ge1=new Ki(le.options);M.set(le,Ge1),G.push(Ge1)}_state.label=23;case 23:_iteratorNormalCompletion=true;return[3,20];case 24:return[3,27];case 25:err1=_state.sent();_didIteratorError=true;_iteratorError=err1;return[3,27];case 26:try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}return[7];case 27:Ce=Array.from(U.values()),L=new Set(N);_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(_iterator1=F[Symbol.iterator]();!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){le1=_step1.value;ue1=(0,Di.normalizePath)(le1.localPath);_iteratorNormalCompletion2=true,_didIteratorError2=false,_iteratorError2=undefined;for(;ue1&&ue1!=="."&&ue1!==""&&ue1!=="/"&&(ue1=(0,Di.normalizePath)((0,ug.dirname)(ue1)),!(ue1==="."||ue1===""||ue1==="/"));)try{for(_iterator2=L[Symbol.iterator]();!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){Ge2=_step2.value;if(Ge2.localPath===ue1){L.delete(Ge2);break}}}catch(err1){_didIteratorError2=true;_iteratorError2=err1}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}Ae=[],pe=[];_iteratorNormalCompletion3=true,_didIteratorError3=false,_iteratorError3=undefined;try{for(_iterator3=l[Symbol.iterator]();!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){le2=_step3.value;if(!_instanceof(le2,Si)){Ae.push(le2);continue}if(L.has(le2)){pe.push(le2);continue}}}catch(err1){_didIteratorError3=true;_iteratorError3=err1}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return!=null){_iterator3.return()}}finally{if(_didIteratorError3){throw _iteratorError3}}}l=_to_consumable_array(Ce).concat(_to_consumable_array(Ae),_to_consumable_array(G),_to_consumable_array(pe));_state.label=28;case 28:g=Array.from(new Set(_to_consumable_array(l).concat(_to_consumable_array(u),_to_consumable_array(c)))),h=g.filter(function(w){return _instanceof(w,Ct)}),d=g.filter(function(w){return _instanceof(w,_i)}),p=g.filter(function(w){return!(_instanceof(w,Ct)||_instanceof(w,_i))}),m=Ate(h),v=_to_consumable_array(cte(d)).concat(_to_consumable_array(m),_to_consumable_array(p));l.length>500&&Di.Platform.isDesktopApp&&new Di.Notice(_.t("sync.suggestUseClientForManyTasks"),5e3);E=v.some(function(w){return!(_instanceof(w,Zt)||_instanceof(w,Rt)||_instanceof(w,ai))});_$t&&E&&this.plugin.progressService.showProgressModal(),XV({showNotice:_$t});B=vf(v,200),b=[],C=v.filter(function(w){return!(_instanceof(w,Zt)||_instanceof(w,Rt))}),y=[];_iteratorNormalCompletion4=true,_didIteratorError4=false,_iteratorError4=undefined;_state.label=29;case 29:_state.trys.push([29,35,36,37]);_iterator4=B[Symbol.iterator]();_state.label=30;case 30:if(!!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done))return[3,34];_$w2=_step4.value;return[4,this.execTasks(_$w2,C,y)];case 31:N1=_state.sent();(_b1=b).push.apply(_b1,_to_consumable_array(N1));return[4,this.updateMtimeInRecord(_$w2,N1)];case 32:if(_state.sent(),this.isCancelled)return[3,34];_state.label=33;case 33:_iteratorNormalCompletion4=true;return[3,30];case 34:return[3,37];case 35:err1=_state.sent();_didIteratorError4=true;_iteratorError4=err1;return[3,37];case 36:try{if(!_iteratorNormalCompletion4&&_iterator4.return!=null){_iterator4.return()}}finally{if(_didIteratorError4){throw _iteratorError4}}return[7];case 37:q=b.filter(function(w){return!w.success}).length;if(z.debug("tasks result",b,"failed:",q),e==="manual_sync"&&q>0){_$w3=[];for(N3=0;N3<b.length;N3++){F1=b[N3];if(!F1.success&&F1.error){M1=F1.error.task;_$w3.push({taskName:Wi(M1),localPath:M1.options.localPath,errorMessage:F1.error.message})}}new yf(this.app,_$w3).open()}Zb({failedCount:q,showNotice:_$t});return[3,40];case 38:t=_state.sent();ls(t),z.error("Sync error:",t);return[3,40];case 39:this.subscriptions.forEach(function(t){return t.unsubscribe()});return[7];case 40:return[2]}})}).apply(this,arguments)}},{key:"execTasks",value:function execTasks(e,t,i){return _async_to_generator(function(){var n,a,s,A,u,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:n=[],a=e.filter(function(s){return!(_instanceof(s,Zt)||_instanceof(s,Rt))});z.debug("Starting to execute sync tasks",{totalTasks:e.length,displayedTasks:a.length,totalDisplayableTasks:t.length,alreadyCompleted:i.length});s=0;_state.label=1;case 1:if(!(s<e.length))return[3,4];A=e[s];if(this.isCancelled){ls(new lo(_.t("sync.cancelled"),A));return[3,4]}z.debug("Executing task [".concat(s+1,"/").concat(e.length,"] ").concat(A.localPath),{taskName:Wi(A),taskPath:A.localPath});return[4,this.executeWithRetry(A)];case 2:u=_state.sent();z.debug("Task completed [".concat(s+1,"/").concat(e.length,"] ").concat(A.localPath),{taskName:Wi(A),taskPath:A.localPath,result:u}),n[s]=u,_instanceof(A,Zt)||_instanceof(A,Rt)||(i.push(A),zV(t.length,i));_state.label=3;case 3:++s;return[3,1];case 4:o=n.filter(function(s){return s.success}).length;return[2,(z.debug("All tasks execution completed",{totalTasks:e.length,successCount:o,failedCount:e.length-o}),n)]}})}).call(this)}},{key:"executeWithRetry",value:function executeWithRetry(e){return _async_to_generator(function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(this.isCancelled)return[2,{success:!1,error:new lo(_.t("sync.cancelled"),e)}];return[4,e.exec()];case 1:t=_state.sent();if(!(!t.success&&Yi(t.error)))return[3,3];return[4,this.handle503Error(6e4)];case 2:if(_state.sent(),this.isCancelled)return[2,{success:!1,error:new lo(_.t("sync.cancelled"),e)}];return[3,4];case 3:return[2,t];case 4:return[3,0];case 5:return[2]}})}).call(this)}},{key:"updateMtimeInRecord",value:function updateMtimeInRecord(e,t){return _async_to_generator(function(){return _ts_generator(this,function(_state){return[2,ute(this.plugin,this.vault,this.remoteBaseDir,e,t,10)]})}).call(this)}},{key:"handle503Error",value:function handle503Error(e){return _async_to_generator(function(){var t,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:t=Date.now(),i=t+e;new Di.Notice(_.t("sync.requestsTooFrequent",{time:(0,Di.moment)(i).format("HH:mm:ss")}));return[4,nte(lf(),i-t)];case 1:_state.sent();return[2]}})})()}},{key:"app",get:function get(){return this.plugin.app}},{key:"webdav",get:function get(){return this.options.webdav}},{key:"vault",get:function get(){return this.options.vault}},{key:"remoteBaseDir",get:function get(){return this.options.remoteBaseDir}},{key:"settings",get:function get(){return this.plugin.settings}}]);return Qo1}();var z0=require("obsidian");var _s=/*#__PURE__*/function(_z0_Modal){"use strict";_inherits(_s1,_z0_Modal);function _s1(t,i){_class_call_check(this,_s1);var _this;_this=_call_super(this,_s1,[t]);_this.onConfirm=i;return _this}_create_class(_s1,[{key:"onOpen",value:function onOpen(){return _async_to_generator(function(){var _this,_this1,t,i,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_this1=this,t=_this1.contentEl;return[4,yt()];case 1:i=_state.sent();t.createEl("h2",{text:_.t("sync.confirmModal.title")});n=t.createDiv({cls:"sync-info"});n.createEl("p",{text:_.t("sync.confirmModal.remoteDir",{dir:i.remoteDir})}),n.createEl("p",{text:_.t("sync.confirmModal.strategy",{strategy:_.t("settings.conflictStrategy.".concat(i.conflictStrategy==="diff-match-patch"?"diffMatchPatch":"latestTimestamp"))})}),t.createEl("pre",{text:_.t("sync.confirmModal.message")}),new z0.Setting(t).addButton(function(a){return a.setButtonText(_.t("sync.confirmModal.cancel")).onClick(function(){return _this.close()})}).addButton(function(a){return a.setButtonText(_.t("sync.confirmModal.confirm")).setCta().onClick(function(){_this.close(),_this.onConfirm()})});return[2]}})}).call(this)}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return _s1}(z0.Modal);var j0=/*#__PURE__*/function(){"use strict";function j01(e){var _this=this;_class_call_check(this,j01);this.plugin=e;this.startRibbonEl=this.plugin.addRibbonIcon("refresh-ccw",_.t("sync.startButton"),function(){return _async_to_generator(function(){var _this,_$i,t;return _ts_generator(this,function(_state){_this=this;if(this.plugin.isSyncing)return[2];if(!this.plugin.isAccountConfigured()){new lte.Notice(_.t("sync.error.accountNotConfigured"));try{_$i=e.app.setting;_$i&&typeof _$i.open=="function"&&_$i.open(),_$i&&typeof _$i.openTabById=="function"&&_$i.openTabById(e.manifest.id)}catch(i){z.error("Failed to open settings:",i)}return[2]}t=function(){return _async_to_generator(function(){var _2,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:_2=Qo.bind;_tmp=[void 0,this.plugin];_tmp1={};return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_tmp1.webdav=_state.sent(),_tmp1.vault=this.plugin.app.vault;return[4,this.plugin.getToken()];case 2:return[4,(new(_2.apply(Qo,_tmp.concat([(_tmp1.token=_state.sent(),_tmp1.remoteBaseDir=this.plugin.remoteBaseDir,_tmp1)])))).start({mode:"manual_sync"})];case 3:_state.sent();return[2]}})}).call(_this)};e.settings.confirmBeforeSync?new _s(this.plugin.app,t).open():t();return[2]})}).call(_this)}),this.stopRibbonEl=this.plugin.addRibbonIcon("square",_.t("sync.stopButton"),function(){return Za()}),this.stopRibbonEl.classList.add("hidden")}_create_class(j01,[{key:"update",value:function update(){this.plugin.isSyncing?(this.startRibbonEl.setAttr("aria-disabled","true"),this.startRibbonEl.addClass("nutstore-sync-spinning"),this.stopRibbonEl.classList.remove("hidden")):(this.startRibbonEl.removeAttribute("aria-disabled"),this.startRibbonEl.removeClass("nutstore-sync-spinning"),this.stopRibbonEl.classList.add("hidden"))}}]);return j01}();var lg=/*#__PURE__*/function(){"use strict";function lg1(e,t){_class_call_check(this,lg1);this.plugin=e;this.syncExecutor=t;this.autoSyncTimer=null;this.startupSyncTimer=null}_create_class(lg1,[{key:"start",value:function start(){return _async_to_generator(function(){var _this,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;return[4,yt()];case 1:e=_state.sent();e.startupSyncDelaySeconds>0?this.startupSyncTimer=window.setTimeout(function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,,2,3]);return[4,this.syncExecutor.executeSync({mode:"auto_sync"})];case 1:_state.sent();return[3,3];case 2:this.startTimer(e.autoSyncIntervalSeconds);return[7];case 3:return[2]}})}).call(_this)},e.startupSyncDelaySeconds*1e3):this.startTimer(e.autoSyncIntervalSeconds);return[2]}})}).call(this)}},{key:"startTimer",value:function startTimer(e){var _this=this;this.stopTimer();var t=e*1e3,i=co(t,0,Math.pow(2,31)-1);i>0&&(this.autoSyncTimer=window.setInterval(function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.syncExecutor.executeSync({mode:"auto_sync"})];case 1:_state.sent();return[2]}})}).call(_this)},i))}},{key:"stopTimer",value:function stopTimer(){this.autoSyncTimer!==null&&(window.clearInterval(this.autoSyncTimer),this.autoSyncTimer=null)}},{key:"updateInterval",value:function updateInterval(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,yt()];case 1:e=_state.sent();this.startTimer(e.autoSyncIntervalSeconds);return[2]}})}).call(this)}},{key:"unload",value:function unload(){this.stopTimer(),this.startupSyncTimer!==null&&(window.clearTimeout(this.startupSyncTimer),this.startupSyncTimer=null)}}]);return lg1}();var fte=require("obsidian");var fg=function fg1(e){"use strict";_class_call_check(this,fg1);e.addCommand({id:"start-sync",name:_.t("sync.startButton"),checkCallback:function(t){if(e.isSyncing)return!1;if(t)return!0;if(!e.isAccountConfigured()){new fte.Notice(_.t("sync.error.accountNotConfigured"));try{var _$n=e.app.setting;_$n&&typeof _$n.open=="function"&&_$n.open(),_$n&&typeof _$n.openTabById=="function"&&_$n.openTabById(e.manifest.id)}catch(n){z.error("Failed to open settings:",n)}return}var i=function(){return _async_to_generator(function(){var _2,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:_2=Qo.bind;_tmp=[void 0,e];_tmp1={};return[4,e.webDAVService.createWebDAVClient()];case 1:_tmp1.webdav=_state.sent(),_tmp1.vault=e.app.vault;return[4,e.getToken()];case 2:return[4,(new(_2.apply(Qo,_tmp.concat([(_tmp1.token=_state.sent(),_tmp1.remoteBaseDir=e.remoteBaseDir,_tmp1)])))).start({mode:"manual_sync"})];case 3:_state.sent();return[2]}})})()};e.settings.confirmBeforeSync?new _s(e.app,i).open():i()}}),e.addCommand({id:"stop-sync",name:_.t("sync.stopButton"),checkCallback:function(t){return e.isSyncing?(t||Za(),!0):!1}}),e.addCommand({id:"show-sync-progress",name:_.t("sync.showProgressButton"),callback:function(){e.progressService.showProgressModal()}})};var z1=require("obsidian");var gg=/*#__PURE__*/function(){"use strict";function gg1(e){_class_call_check(this,gg1);this.plugin=e;this.subscriptions=[KV().subscribe(function(param){var t=param.showNotice;e.toggleSyncUI(!0),e.statusService.updateSyncStatus({text:_.t("sync.preparing"),showNotice:t})}),XI().subscribe(function(param){var t=param.showNotice;e.statusService.updateSyncStatus({text:_.t("sync.start"),showNotice:t})}),jI().subscribe(function(t){var i=Math.round(t.completed.length/t.total*1e4)/100;e.statusService.updateSyncStatus({text:_.t("sync.progress",{percent:i})})}),zI().subscribe(function(param){var t=param.failedCount,i=param.showNotice;return _async_to_generator(function(){var n,a;return _ts_generator(this,function(_state){e.toggleSyncUI(!1);n=Date.now();if(e.statusService.setLastSyncTime(n,t),i){a=t>0?_.t("sync.completeWithFailed",{failedCount:t}):_.t("sync.complete");new z1.Notice(a)}return[2]})})()}),WV().subscribe(function(t){e.toggleSyncUI(!1),e.statusService.updateSyncStatus({text:_.t("sync.failedStatus"),isError:!0,showNotice:!1}),new z1.Notice(_.t("sync.failedWithError",{error:Yi(t)?_.t("sync.error.requestsTooFrequent"):t.message}))})]}_create_class(gg1,[{key:"unload",value:function unload(){this.subscriptions.forEach(function(e){return e.unsubscribe()})}}]);return gg1}();var dg=function dg1(e){"use strict";_class_call_check(this,dg1);this.plugin=e;this.update=function(){return _async_to_generator(function(){var _$e1,t,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,yt()];case 1:_$e1=_state.sent();if(_$e1.language)_.changeLanguage(_$e1.language.toLowerCase());else{t=navigator.language.split("-")[0];_.changeLanguage(t.toLowerCase())}return[3,3];case 2:e=_state.sent();z.error(e);return[3,3];case 3:return[2]}})})()};this.update()};var gte=require("obsidian");var hg=/*#__PURE__*/function(){"use strict";function hg1(e){var _this=this;_class_call_check(this,hg1);this.plugin=e;this.logs=[];_K?z.addReporter({log:function(t){var i=[(0,gte.moment)(t.date).format("YYYY-MM-DD HH:mm:ss"),t.type,t.args];_this.logs.push(i)}}):z.setReporters([{log:function(t){_this.logs.push(t)}}])}_create_class(hg1,[{key:"clear",value:function clear(){this.logs=[]}}]);return hg1}();var dte=require("obsidian");var $t=require("obsidian");var Ig=/*#__PURE__*/function(_$t_Modal){"use strict";_inherits(Ig1,_$t_Modal);function Ig1(t,i){_class_call_check(this,Ig1);var _this;_this=_call_super(this,Ig1,[t.app]);_this.plugin=t;_this.closeCallback=i;_this.syncCancelled=!1;_this.cancelSubscription=lf().subscribe(function(){_this.syncCancelled=!0,_this.update()}),_this.updateMtimeSubscription=$V().subscribe(function(n){_this.updateCacheProgress(n.total,n.completed)});return _this}_create_class(Ig1,[{key:"update",value:function update(){var _this=this;if(!this.progressBar||!this.progressText||!this.progressStats||!this.currentFile||!this.filesList)return;var t=this.plugin.progressService.syncProgress,i=Math.round(t.completed.length/t.total*100)||0;if(this.progressBar.style.width="".concat(i,"%"),this.progressText.setText(_.t("sync.percentComplete",{percent:i})),this.progressStats.setText(_.t("sync.progressStats",{completed:t.completed.length,total:t.total})),t.completed.length>0)if(this.plugin.progressService.syncEnd)this.stopButtonComponent.buttonEl.addClass("hidden"),this.hideButtonComponent.setButtonText(_.t("sync.closeButton")),this.currentFile.setText(_.t("sync.complete"));else if(this.syncCancelled)this.stopButtonComponent.buttonEl.addClass("hidden"),this.hideButtonComponent.setButtonText(_.t("sync.closeButton")),this.currentFile.setText(_.t("sync.cancelled"));else{var a=t.completed.at(-1);a&&this.currentFile.setText(_.t("sync.currentFile",{path:a.localPath}))}this.filesList.empty(),t.completed.slice().reverse().forEach(function(a){var o=_this.filesList.createDiv({cls:"flex items-center p-1 rounded text-2.5 gap-2 hover:bg-[var(--background-secondary)]"}),s=o.createSpan({cls:"text-[var(--text-muted)]"});_instanceof(a,Rt)?(0,$t.setIcon)(s,"archive-x"):_instanceof(a,Xn)?(0,$t.setIcon)(s,"git-merge"):_instanceof(a,Zn)?(0,$t.setIcon)(s,"refresh-cw-off"):_instanceof(a,$n)||_instanceof(a,Ct)||_instanceof(a,Ji)?(0,$t.setIcon)(s,"folder-plus"):_instanceof(a,ea)?(0,$t.setIcon)(s,"arrow-down-narrow-wide"):_instanceof(a,Ki)?(0,$t.setIcon)(s,"arrow-up-narrow-wide"):_instanceof(a,Si)||_instanceof(a,_i)||_instanceof(a,Vi)?(0,$t.setIcon)(s,"trash"):_instanceof(a,ai)?(0,$t.setIcon)(s,"chevron-last"):(0,$t.setIcon)(s,"arrow-left-right"),o.createSpan({cls:"flex-none w-17 md:w-24 text-[var(--text-normal)] font-500"}).setText(Wi(a)),o.createSpan({cls:"flex-1 break-all"}).setText(_.t("sync.filePath",{path:a.localPath}))})}},{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;t.empty();var i=t.createDiv({cls:"flex flex-col gap-4 min-h-[40vh] max-h-[75vh]"});i.createDiv({cls:"border-b border-[var(--background-modifier-border)]"}).createEl("h2",{cls:"m-0"}).setText(_.t("sync.progressTitle"));var o=i.createDiv({cls:"flex flex-col gap-1"});o.createDiv().setText(_.t("sync.syncingFiles"));var A=o.createDiv({cls:"text-3 text-[var(--text-muted)] truncate overflow-hidden whitespace-nowrap"}),u=i.createDiv({cls:"flex flex-col gap-2"}),c=u.createDiv({cls:"text-3.25"}),l=u.createDiv({cls:"relative h-5 bg-[var(--background-secondary)] rounded overflow-hidden"}),f=l.createDiv({cls:"absolute h-full bg-[var(--interactive-accent)] w-0 transition-width"}),g=l.createDiv({cls:"absolute w-full text-center text-3 leading-5 text-[var(--text-on-accent)] mix-blend-difference"}),h=i.createDiv({cls:"flex flex-col gap-1"});this.cacheCurrentOperation=h.createDiv(),this.cacheCurrentOperation.setText(_.t("sync.updatingCache")),this.cacheCurrentOperation.hide();var d=h.createDiv({cls:"text-3.25"});this.cacheProgressStats=d,this.cacheProgressStats.hide();var p=h.createDiv({cls:"relative h-5 bg-[var(--background-secondary)] rounded overflow-hidden"});p.hide(),this.cacheProgressBar=p.createDiv({cls:"absolute h-full bg-[var(--interactive-accent)] w-0 transition-width"}),this.cacheProgressText=p.createDiv({cls:"absolute w-full text-center text-3 leading-5 text-[var(--text-on-accent)] mix-blend-difference"});var m=i.createDiv({cls:"flex flex-col flex-1 gap-2 mt-2 overflow-y-auto"});m.createDiv({cls:"font-500 text-3.5 pb-1 border-b border-[var(--background-modifier-border)]"}).setText(_.t("sync.completedFilesTitle"));var v=m.createDiv({cls:"flex-1 overflow-y-auto border border-[var(--background-modifier-border)] border-solid rounded p-1"});this.progressBar=f,this.progressText=g,this.progressStats=c,this.currentFile=A,this.filesList=v;var E=i.createDiv({cls:"border-t border-[var(--background-modifier-border)]"});new $t.Setting(E).addButton(function(S){S.setButtonText(_.t("sync.hideButton")).onClick(function(){return _this.close()}),_this.hideButtonComponent=S}).addButton(function(S){S.setButtonText(_.t("sync.stopButton")).setWarning().onClick(function(){Za()}),_this.stopButtonComponent=S}),this.update()}},{key:"onClose",value:function onClose(){this.cancelSubscription.unsubscribe(),this.updateMtimeSubscription.unsubscribe();var _this=this,t=_this.contentEl;t.empty(),this.closeCallback&&this.closeCallback()}},{key:"updateCacheProgress",value:function updateCacheProgress(t,i){var a;if(!this.cacheProgressBar||!this.cacheProgressText||!this.cacheProgressStats)return;this.cacheCurrentOperation.show(),this.cacheProgressStats.show(),(a=this.cacheProgressBar.parentElement)==null||a.show();var n=Math.round(i/t*100)||0;this.cacheProgressBar.style.width="".concat(n,"%"),this.cacheProgressText.setText(_.t("sync.percentComplete",{percent:n})),this.cacheProgressStats.setText(_.t("sync.progressStats",{completed:i,total:t})),i===t&&this.cacheCurrentOperation.setText(_.t("sync.cacheUpdated"))}}]);return Ig1}($t.Modal);var X0=/*#__PURE__*/function(){"use strict";function X01(e){var _this=this;_class_call_check(this,X01);this.plugin=e;this.progressModal=null;this.syncProgress={total:0,completed:[]};this.syncEnd=!1;this.subscriptions=[XI().subscribe(function(){_this.syncEnd=!1,_this.resetProgress()}),zI().subscribe(function(){_this.syncEnd=!0,_this.updateModal()}),jI().subscribe(function(e){_this.syncProgress=e,_this.updateModal()})];this.updateModal=bw(function(){_this.progressModal&&_this.progressModal.update()},200)}_create_class(X01,[{key:"resetProgress",value:function resetProgress(){this.syncProgress={total:0,completed:[]}}},{key:"showProgressModal",value:function showProgressModal(){if(!this.plugin.isSyncing){new dte.Notice(_.t("sync.notSyncing"));return}this.closeProgressModal(),this.progressModal=new Ig(this.plugin),this.progressModal.open()}},{key:"closeProgressModal",value:function closeProgressModal(){this.progressModal&&(this.progressModal.close(),this.progressModal=null)}},{key:"unload",value:function unload(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.closeProgressModal()}}]);return X01}();var pg=/*#__PURE__*/function(){"use strict";function pg1(e,t){var _this=this;_class_call_check(this,pg1);this.plugin=e;this.syncExecutor=t;this.waiting=!1;this.submitDirectly=function(){return _async_to_generator(function(){var _this,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_tmp=this.waiting;if(_tmp)return[3,3];this.waiting=!0;return[4,ms(function(){return _this.plugin.isSyncing===!1},500)];case 1:_state.sent(),this.waiting=!1;return[4,this.syncExecutor.executeSync({mode:"auto_sync"})];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})}).call(_this)};this.submitSyncRequest=xs(this.submitDirectly,8e3);this.plugin.registerEvent(this.vault.on("create",function(){return _async_to_generator(function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,yt()];case 1:_tmp=_state.sent().realtimeSync;if(!_tmp)return[3,3];return[4,this.submitSyncRequest()];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})}).call(_this)})),this.plugin.registerEvent(this.vault.on("delete",function(){return _async_to_generator(function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,yt()];case 1:_tmp=_state.sent().realtimeSync;if(!_tmp)return[3,3];return[4,this.submitSyncRequest()];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})}).call(_this)})),this.plugin.registerEvent(this.vault.on("modify",function(){return _async_to_generator(function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,yt()];case 1:_tmp=_state.sent().realtimeSync;if(!_tmp)return[3,3];return[4,this.submitSyncRequest()];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})}).call(_this)})),this.plugin.registerEvent(this.vault.on("rename",function(){return _async_to_generator(function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,yt()];case 1:_tmp=_state.sent().realtimeSync;if(!_tmp)return[3,3];return[4,this.submitSyncRequest()];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})}).call(_this)}))}_create_class(pg1,[{key:"vault",get:function get(){return this.plugin.app.vault}},{key:"unload",value:function unload(){this.submitSyncRequest.cancel()}}]);return pg1}();var Ite=require("obsidian");function hte(r){var t=Date.now()-r,i=Math.floor(t/1e3),n=Math.floor(i/60),a=Math.floor(n/60),o=Math.floor(a/24);return i<60?_.t("time.justNow"):n<60?_.t("time.minutesAgo",{count:n}):a<24?_.t("time.hoursAgo",{count:a}):o<30?_.t("time.daysAgo",{count:o}):_.t("time.longAgo")}var Z0=/*#__PURE__*/function(){"use strict";function Z01(e){_class_call_check(this,Z01);this.plugin=e;this.lastSyncTime=null;this.updateInterval=null;this.baseStatusText="";this.syncStatusBar=e.addStatusBarItem()}_create_class(Z01,[{key:"updateSyncStatus",value:function updateSyncStatus(e){this.syncStatusBar.setText(e.text),e.showNotice&&new Ite.Notice(e.text)}},{key:"setLastSyncTime",value:function setLastSyncTime(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.lastSyncTime=e,this.baseStatusText=t>0?_.t("sync.completeWithFailed",{failedCount:t}):_.t("sync.complete"),this.updateStatusBarWithTime(),this.stopTimeUpdates(),this.updateInterval=window.setInterval(function(){_this.updateStatusBarWithTime()},6e4)}},{key:"updateStatusBarWithTime",value:function updateStatusBarWithTime(){if(this.lastSyncTime===null)return;var e=Date.now();if(Math.floor((e-this.lastSyncTime)/1e3)<60)this.syncStatusBar.setText(this.baseStatusText);else{var i=hte(this.lastSyncTime),n="".concat(this.baseStatusText," (").concat(i,")");this.syncStatusBar.setText(n)}}},{key:"stopTimeUpdates",value:function stopTimeUpdates(){this.updateInterval!==null&&(window.clearInterval(this.updateInterval),this.updateInterval=null)}},{key:"unload",value:function unload(){this.stopTimeUpdates()}}]);return Z01}();var xg=/*#__PURE__*/function(){"use strict";function xg1(e){_class_call_check(this,xg1);this.plugin=e}_create_class(xg1,[{key:"executeSync",value:function executeSync(e){return _async_to_generator(function(){var _this,t,_tmp,n,a,_2,_tmp1,_tmp2,_tmp3;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;if(this.plugin.isSyncing||!this.plugin.isAccountConfigured())return[2,!1];return[4,ms(function(){return _this.plugin.isSyncing===!1},500)];case 1:_state.sent();t=this.plugin.app.vault.configDir;_tmp=this.plugin.settings.filterRules.exclusionRules.some(function(A){return A.expr===t});if(_tmp)return[3,3];this.plugin.settings.filterRules.exclusionRules.push({expr:t,options:{caseSensitive:!1}});return[4,this.plugin.saveSettings()];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;_2=Qo.bind;_tmp1=[void 0,this.plugin];_tmp2={vault:this.plugin.app.vault};return[4,this.plugin.getToken()];case 4:_tmp2.token=_state.sent(),_tmp2.remoteBaseDir=this.plugin.remoteBaseDir;return[4,this.plugin.webDAVService.createWebDAVClient()];case 5:n=new(_2.apply(Qo,_tmp1.concat([(_tmp2.webdav=_state.sent(),_tmp2)]))),a=new fa(aa(this.plugin.app.vault.getName(),this.plugin.remoteBaseDir),jn);return[4,new Ss(n,a).decide()];case 6:if(!(_state.sent().length===0))return[3,7];_tmp3=!1;return[3,9];case 7:return[4,n.start({mode:e.mode})];case 8:_tmp3=(_state.sent(),!0);_state.label=9;case 9:return[2,_tmp3]}})}).call(this)}}]);return xg1}();function pte(r){return new Proxy(r,{get:function get(e,t,i){var n=Reflect.get(e,t,i);return typeof n=="function"?function(){for(var _len=arguments.length,a=new Array(_len),_key=0;_key<_len;_key++){a[_key]=arguments[_key]}return yo.schedule(function(){return n.apply(e,a)})}:n}})}var $0=/*#__PURE__*/function(){"use strict";function $01(e){_class_call_check(this,$01);this.plugin=e}_create_class($01,[{key:"createWebDAVClient",value:function createWebDAVClient(){return _async_to_generator(function(){var e,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(this.plugin.settings.loginMode==="manual"))return[3,1];e=sf(os,{username:this.plugin.settings.account,password:this.plugin.settings.credential});return[3,3];case 1:return[4,this.plugin.getDecryptedOAuthInfo()];case 2:t=_state.sent();e=sf(os,{username:t.username,password:t.access_token});_state.label=3;case 3:return[2,pte(e)]}})}).call(this)}},{key:"checkWebDAVConnection",value:function checkWebDAVConnection(){return _async_to_generator(function(){var _tmp,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);_tmp={};return[4,this.createWebDAVClient()];case 1:return[4,_state.sent().exists("/")];case 2:return[2,(_tmp.success=_state.sent(),_tmp)];case 3:e=_state.sent();return[2,{error:e,success:!1}];case 4:return[2]}})}).call(this)}}]);return $01}();function xte(r){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,YX({app:"obsidian",s:r})];case 1:e=_state.sent();return[2,JSON.parse(e)]}})})()}var ex=/*#__PURE__*/function(_Zc_Plugin){"use strict";_inherits(ex1,_Zc_Plugin);function ex1(){_class_call_check(this,ex1);var _this;_this=_call_super(this,ex1,arguments);_this.isSyncing=!1;_this.commandService=new fg(_this);_this.eventsService=new gg(_this);_this.i18nService=new dg(_this);_this.loggerService=new hg(_this);_this.progressService=new X0(_this);_this.ribbonManager=new j0(_this);_this.statusService=new Z0(_this);_this.webDAVService=new $0(_this);_this.syncExecutorService=new xg(_this);_this.realtimeSyncService=new pg(_this,_this.syncExecutorService);_this.scheduledSyncService=new lg(_this,_this.syncExecutorService);return _this}_create_class(ex1,[{key:"onload",value:function onload(){return _async_to_generator(function(){var _this;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;return[4,this.loadSettings()];case 1:_state.sent(),this.addSettingTab(new D0(this.app,this)),this.registerObsidianProtocolHandler("nutstore-sync/sso",function(t){return _async_to_generator(function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_tmp=t!=null&&t.s;if(!_tmp)return[3,2];this.settings.oauthResponseText=t.s;return[4,this.saveSettings()];case 1:_tmp=(_state.sent(),new Zc.Notice(_.t("settings.login.success"),5e3));_state.label=2;case 2:_tmp,HX({token:t==null?void 0:t.s});return[2]}})}).call(_this)}),Q1(this);return[4,this.scheduledSyncService.start()];case 2:_state.sent();return[2]}})}).call(this)}},{key:"onunload",value:function onunload(){return _async_to_generator(function(){return _ts_generator(this,function(_state){Q1(null),Za(),this.scheduledSyncService.unload(),this.progressService.unload(),this.eventsService.unload(),this.realtimeSyncService.unload(),this.statusService.unload();return[2]})}).call(this)}},{key:"loadSettings",value:function loadSettings(){return _async_to_generator(function(){var i,_2,_3,_tmp;function t(n){return{expr:n,options:{caseSensitive:!1}}}return _ts_generator(this,function(_state){switch(_state.label){case 0:i={account:"",credential:"",remoteDir:"",remoteCacheDir:"",useGitStyle:!1,conflictStrategy:"diff-match-patch",oauthResponseText:"",loginMode:"sso",confirmBeforeSync:!0,confirmBeforeDeleteInAutoSync:!0,syncMode:"loose",filterRules:{exclusionRules:["**/.git","**/.DS_Store","**/.trash",this.app.vault.configDir].map(t),inclusionRules:[]},skipLargeFiles:{maxSize:"30 MB"},realtimeSync:!1,startupSyncDelaySeconds:0,autoSyncIntervalSeconds:300,language:void 0};_2=this;_3=Object.assign;_tmp=[{},i];return[4,this.loadData()];case 1:_2.settings=_3.apply(Object,_tmp.concat([_state.sent()]));return[2]}})}).call(this)}},{key:"saveSettings",value:function saveSettings(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.saveData(this.settings)];case 1:_state.sent();return[2]}})}).call(this)}},{key:"toggleSyncUI",value:function toggleSyncUI(t){this.isSyncing=t,this.ribbonManager.update()}},{key:"getDecryptedOAuthInfo",value:function getDecryptedOAuthInfo(){return _async_to_generator(function(){return _ts_generator(this,function(_state){return[2,xte(this.settings.oauthResponseText)]})}).call(this)}},{key:"getToken",value:function getToken(){return _async_to_generator(function(){var t,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(this.settings.loginMode==="sso"))return[3,2];return[4,this.getDecryptedOAuthInfo()];case 1:i=_state.sent();t="".concat(i.username,":").concat(i.access_token);return[3,3];case 2:t="".concat(this.settings.account,":").concat(this.settings.credential);_state.label=3;case 3:return[2,SV(t)]}})}).call(this)}},{key:"isAccountConfigured",value:function isAccountConfigured(){return this.settings.loginMode==="sso"?!!this.settings.oauthResponseText&&this.settings.oauthResponseText.trim()!=="":!!this.settings.account&&this.settings.account.trim()!==""&&!!this.settings.credential&&this.settings.credential.trim()!==""}},{key:"remoteBaseDir",get:function get(){var t=(0,Zc.normalizePath)(this.settings.remoteDir.trim());return(t===""||t==="/")&&(t=this.app.vault.getName()),nt(t)}}]);return ex1}(Zc.Plugin);/*! Bundled license information:
localforage/dist/localforage.js:
(*!
localForage -- Offline Storage, Improved
Version 1.10.0
https://localforage.github.io/localForage
(c) 2013-2017 Mozilla, Apache License 2.0
*)
bytes-iec/index.js:
(*!
* bytes
* Copyright(c) 2012-2014 TJ Holowaychuk
* Copyright(c) 2015 Jed Watson
* MIT Licensed
*)
webdav/dist/web/index.js:
(*! For license information please see index.js.LICENSE.txt *)
lodash-es/lodash.js:
(**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es" -o ./`
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*)
hash-wasm/dist/index.esm.js:
(*!
* hash-wasm (https://www.npmjs.com/package/hash-wasm)
* (c) Dani Biro
* @license MIT
*)
*/
/* nosourcemap */