@loftyshaky/shared 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/chunk-viewport.js CHANGED
@@ -2,4 +2,4 @@
2
2
  * Copyright 2024
3
3
  */
4
4
 
5
- "use strict";function __awaiter(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){var value;result.done?resolve(result.value):(value=result.value,value instanceof P?value:new P((function(resolve){resolve(value)}))).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))}function __values(o){var s="function"==typeof Symbol&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}"function"==typeof SuppressedError&&SuppressedError;var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var objectProto$f=Object.prototype;var _isPrototype=function(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto$f)};var _overArg=function(func,transform){return function(arg){return func(transform(arg))}},nativeKeys$1=_overArg(Object.keys,Object),isPrototype$3=_isPrototype,nativeKeys=nativeKeys$1,hasOwnProperty$c=Object.prototype.hasOwnProperty;var _baseKeys=function(object){if(!isPrototype$3(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty$c.call(object,key)&&"constructor"!=key&&result.push(key);return result},_freeGlobal="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,_root=freeGlobal||freeSelf||Function("return this")(),_Symbol=_root.Symbol,Symbol$5=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$b=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$5?Symbol$5.toStringTag:void 0;var _getRawTag=function(value){var isOwn=hasOwnProperty$b.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=void 0;var unmasked=!0}catch(e){}var result=nativeObjectToString$1.call(value);return unmasked&&(isOwn?value[symToStringTag$1]=tag:delete value[symToStringTag$1]),result},nativeObjectToString=Object.prototype.toString;var getRawTag=_getRawTag,objectToString=function(value){return nativeObjectToString.call(value)},symToStringTag=_Symbol?_Symbol.toStringTag:void 0;var _baseGetTag=function(value){return null==value?void 0===value?"[object Undefined]":"[object Null]":symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value)};var isObject_1=function(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)},baseGetTag$4=_baseGetTag,isObject$8=isObject_1;var uid,isFunction_1=function(value){if(!isObject$8(value))return!1;var tag=baseGetTag$4(value);return"[object Function]"==tag||"[object GeneratorFunction]"==tag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag},coreJsData=_root["__core-js_shared__"],maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""))?"Symbol(src)_1."+uid:"";var _isMasked=function(func){return!!maskSrcKey&&maskSrcKey in func},funcToString$1=Function.prototype.toString;var _toSource=function(func){if(null!=func){try{return funcToString$1.call(func)}catch(e){}try{return func+""}catch(e){}}return""},isFunction$1=isFunction_1,isMasked=_isMasked,isObject$7=isObject_1,toSource$1=_toSource,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$b=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$a=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$a).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var baseIsNative=function(value){return!(!isObject$7(value)||isMasked(value))&&(isFunction$1(value)?reIsNative:reIsHostCtor).test(toSource$1(value))},getValue=function(object,key){return null==object?void 0:object[key]};var _getNative=function(object,key){var value=getValue(object,key);return baseIsNative(value)?value:void 0},_DataView=_getNative(_root,"DataView"),_Map=_getNative(_root,"Map"),_Promise=_getNative(_root,"Promise"),_Set=_getNative(_root,"Set"),DataView=_DataView,Map$2=_Map,Promise$1=_Promise,Set=_Set,WeakMap=_getNative(_root,"WeakMap"),baseGetTag$3=_baseGetTag,toSource=_toSource,dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),getTag$5=baseGetTag$3;(DataView&&"[object DataView]"!=getTag$5(new DataView(new ArrayBuffer(1)))||Map$2&&"[object Map]"!=getTag$5(new Map$2)||Promise$1&&"[object Promise]"!=getTag$5(Promise$1.resolve())||Set&&"[object Set]"!=getTag$5(new Set)||WeakMap&&"[object WeakMap]"!=getTag$5(new WeakMap))&&(getTag$5=function(value){var result=baseGetTag$3(value),Ctor="[object Object]"==result?value.constructor:void 0,ctorString=Ctor?toSource(Ctor):"";if(ctorString)switch(ctorString){case dataViewCtorString:return"[object DataView]";case mapCtorString:return"[object Map]";case promiseCtorString:return"[object Promise]";case setCtorString:return"[object Set]";case weakMapCtorString:return"[object WeakMap]"}return result});var _getTag=getTag$5;var isObjectLike_1=function(value){return null!=value&&"object"==typeof value},baseGetTag$2=_baseGetTag,isObjectLike$6=isObjectLike_1;var baseIsArguments=function(value){return isObjectLike$6(value)&&"[object Arguments]"==baseGetTag$2(value)},isObjectLike$5=isObjectLike_1,objectProto$a=Object.prototype,hasOwnProperty$9=objectProto$a.hasOwnProperty,propertyIsEnumerable$1=objectProto$a.propertyIsEnumerable,isArguments_1=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike$5(value)&&hasOwnProperty$9.call(value,"callee")&&!propertyIsEnumerable$1.call(value,"callee")},isArray_1=Array.isArray;var isLength_1=function(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=9007199254740991},isFunction=isFunction_1,isLength$2=isLength_1;var isArrayLike_1=function(value){return null!=value&&isLength$2(value.length)&&!isFunction(value)},isBuffer$4={exports:{}};var stubFalse_1=function(){return!1};!function(module,exports){var root=_root,stubFalse=stubFalse_1,freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,Buffer=freeModule&&freeModule.exports===freeExports?root.Buffer:void 0,isBuffer=(Buffer?Buffer.isBuffer:void 0)||stubFalse;module.exports=isBuffer}(isBuffer$4,isBuffer$4.exports);var isBufferExports=isBuffer$4.exports,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$4=isObjectLike_1,typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0,typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=typedArrayTags["[object DataView]"]=typedArrayTags["[object Date]"]=typedArrayTags["[object Error]"]=typedArrayTags["[object Function]"]=typedArrayTags["[object Map]"]=typedArrayTags["[object Number]"]=typedArrayTags["[object Object]"]=typedArrayTags["[object RegExp]"]=typedArrayTags["[object Set]"]=typedArrayTags["[object String]"]=typedArrayTags["[object WeakMap]"]=!1;var _baseIsTypedArray=function(value){return isObjectLike$4(value)&&isLength$1(value.length)&&!!typedArrayTags[baseGetTag$1(value)]};var _baseUnary=function(func){return function(value){return func(value)}},_nodeUtil={exports:{}};!function(module,exports){var freeGlobal=_freeGlobal,freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil}(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeIsTypedArray=_nodeUtilExports&&_nodeUtilExports.isTypedArray,isTypedArray_1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,baseKeys$1=_baseKeys,getTag$4=_getTag,isArguments$2=isArguments_1,isArray$a=isArray_1,isArrayLike$3=isArrayLike_1,isBuffer$3=isBufferExports,isPrototype$2=_isPrototype,isTypedArray$2=isTypedArray_1,hasOwnProperty$8=Object.prototype.hasOwnProperty;var isEmpty$1=getDefaultExportFromCjs((function(value){if(null==value)return!0;if(isArrayLike$3(value)&&(isArray$a(value)||"string"==typeof value||"function"==typeof value.splice||isBuffer$3(value)||isTypedArray$2(value)||isArguments$2(value)))return!value.length;var tag=getTag$4(value);if("[object Map]"==tag||"[object Set]"==tag)return!value.size;if(isPrototype$2(value))return!baseKeys$1(value).length;for(var key in value)if(hasOwnProperty$8.call(value,key))return!1;return!0}));var _listCacheClear=function(){this.__data__=[],this.size=0};var eq_1=function(value,other){return value===other||value!=value&&other!=other},eq$2=eq_1;var _assocIndexOf=function(array,key){for(var length=array.length;length--;)if(eq$2(array[length][0],key))return length;return-1},assocIndexOf$3=_assocIndexOf,splice=Array.prototype.splice;var assocIndexOf$2=_assocIndexOf;var assocIndexOf$1=_assocIndexOf;var assocIndexOf=_assocIndexOf;var listCacheClear=_listCacheClear,listCacheDelete=function(key){var data=this.__data__,index=assocIndexOf$3(data,key);return!(index<0)&&(index==data.length-1?data.pop():splice.call(data,index,1),--this.size,!0)},listCacheGet=function(key){var data=this.__data__,index=assocIndexOf$2(data,key);return index<0?void 0:data[index][1]},listCacheHas=function(key){return assocIndexOf$1(this.__data__,key)>-1},listCacheSet=function(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this};function ListCache$4(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;var _stackClear=function(){this.__data__=new ListCache$3,this.size=0};var _stackDelete=function(key){var data=this.__data__,result=data.delete(key);return this.size=data.size,result};var _stackGet=function(key){return this.__data__.get(key)};var _stackHas=function(key){return this.__data__.has(key)},_nativeCreate=_getNative(Object,"create"),nativeCreate$3=_nativeCreate;var _hashClear=function(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0};var _hashDelete=function(key){var result=this.has(key)&&delete this.__data__[key];return this.size-=result?1:0,result},nativeCreate$2=_nativeCreate,hasOwnProperty$7=Object.prototype.hasOwnProperty;var _hashGet=function(key){var data=this.__data__;if(nativeCreate$2){var result=data[key];return"__lodash_hash_undefined__"===result?void 0:result}return hasOwnProperty$7.call(data,key)?data[key]:void 0},nativeCreate$1=_nativeCreate,hasOwnProperty$6=Object.prototype.hasOwnProperty;var nativeCreate=_nativeCreate;var hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=function(key){var data=this.__data__;return nativeCreate$1?void 0!==data[key]:hasOwnProperty$6.call(data,key)},hashSet=function(key,value){var data=this.__data__;return this.size+=this.has(key)?0:1,data[key]=nativeCreate&&void 0===value?"__lodash_hash_undefined__":value,this};function Hash$1(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var Hash=Hash$1,ListCache$2=_ListCache,Map$1=_Map;var isKeyable=function(value){var type=typeof value;return"string"==type||"number"==type||"symbol"==type||"boolean"==type?"__proto__"!==value:null===value};var _getMapData=function(map,key){var data=map.__data__;return isKeyable(key)?data["string"==typeof key?"string":"hash"]:data.map},getMapData$3=_getMapData;var getMapData$2=_getMapData;var getMapData$1=_getMapData;var getMapData=_getMapData;var mapCacheClear=function(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache$2),string:new Hash}},mapCacheDelete=function(key){var result=getMapData$3(this,key).delete(key);return this.size-=result?1:0,result},mapCacheGet=function(key){return getMapData$2(this,key).get(key)},mapCacheHas=function(key){return getMapData$1(this,key).has(key)},mapCacheSet=function(key,value){var data=getMapData(this,key),size=data.size;return data.set(key,value),this.size+=data.size==size?0:1,this};function MapCache$3(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,ListCache$1=_ListCache,Map=_Map,MapCache$2=_MapCache;var ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=function(key,value){var data=this.__data__;if(data instanceof ListCache$1){var pairs=data.__data__;if(!Map||pairs.length<199)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache$2(pairs)}return data.set(key,value),this.size=data.size,this};function Stack$3(entries){var data=this.__data__=new ListCache(entries);this.size=data.size}Stack$3.prototype.clear=stackClear,Stack$3.prototype.delete=stackDelete,Stack$3.prototype.get=stackGet,Stack$3.prototype.has=stackHas,Stack$3.prototype.set=stackSet;var _Stack=Stack$3,getNative=_getNative,_defineProperty=function(){try{var func=getNative(Object,"defineProperty");return func({},"",{}),func}catch(e){}}(),defineProperty=_defineProperty;var _baseAssignValue=function(object,key,value){"__proto__"==key&&defineProperty?defineProperty(object,key,{configurable:!0,enumerable:!0,value:value,writable:!0}):object[key]=value};var _baseFor=function(fromRight){return function(object,iteratee,keysFunc){for(var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;length--;){var key=props[fromRight?length:++index];if(!1===iteratee(iterable[key],key,iterable))break}return object}}(),_cloneBuffer={exports:{}};!function(module,exports){var root=_root,freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,Buffer=freeModule&&freeModule.exports===freeExports?root.Buffer:void 0,allocUnsafe=Buffer?Buffer.allocUnsafe:void 0;module.exports=function(buffer,isDeep){if(isDeep)return buffer.slice();var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);return buffer.copy(result),result}}(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports,_Uint8Array=_root.Uint8Array,Uint8Array$1=_Uint8Array;var _cloneArrayBuffer=function(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);return new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer)),result},cloneArrayBuffer$2=_cloneArrayBuffer;var _cloneTypedArray=function(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer$2(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length)};var _copyArray=function(source,array){var index=-1,length=source.length;for(array||(array=Array(length));++index<length;)array[index]=source[index];return array},isObject$6=isObject_1,objectCreate=Object.create,_baseCreate=function(){function object(){}return function(proto){if(!isObject$6(proto))return{};if(objectCreate)return objectCreate(proto);object.prototype=proto;var result=new object;return object.prototype=void 0,result}}(),_getPrototype=_overArg(Object.getPrototypeOf,Object),baseCreate=_baseCreate,getPrototype$1=_getPrototype,isPrototype$1=_isPrototype;var _initCloneObject=function(object){return"function"!=typeof object.constructor||isPrototype$1(object)?{}:baseCreate(getPrototype$1(object))},baseAssignValue$1=_baseAssignValue,eq$1=eq_1,hasOwnProperty$5=Object.prototype.hasOwnProperty;var _assignValue=function(object,key,value){var objValue=object[key];hasOwnProperty$5.call(object,key)&&eq$1(objValue,value)&&(void 0!==value||key in object)||baseAssignValue$1(object,key,value)},assignValue$1=_assignValue,baseAssignValue=_baseAssignValue;var _copyObject=function(source,props,object,customizer){var isNew=!object;object||(object={});for(var index=-1,length=props.length;++index<length;){var key=props[index],newValue=customizer?customizer(object[key],source[key],key,object,source):void 0;void 0===newValue&&(newValue=source[key]),isNew?baseAssignValue(object,key,newValue):assignValue$1(object,key,newValue)}return object};var reIsUint=/^(?:0|[1-9]\d*)$/;var _isIndex=function(value,length){var type=typeof value;return!!(length=null==length?9007199254740991:length)&&("number"==type||"symbol"!=type&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length},baseTimes=function(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result},isArguments$1=isArguments_1,isArray$9=isArray_1,isBuffer$2=isBufferExports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1,hasOwnProperty$4=Object.prototype.hasOwnProperty;var _arrayLikeKeys=function(value,inherited){var isArr=isArray$9(value),isArg=!isArr&&isArguments$1(value),isBuff=!isArr&&!isArg&&isBuffer$2(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray$1(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)!inherited&&!hasOwnProperty$4.call(value,key)||skipIndexes&&("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex$1(key,length))||result.push(key);return result};var isObject$5=isObject_1,isPrototype=_isPrototype,nativeKeysIn=function(object){var result=[];if(null!=object)for(var key in Object(object))result.push(key);return result},hasOwnProperty$3=Object.prototype.hasOwnProperty;var arrayLikeKeys$1=_arrayLikeKeys,baseKeysIn=function(object){if(!isObject$5(object))return nativeKeysIn(object);var isProto=isPrototype(object),result=[];for(var key in object)("constructor"!=key||!isProto&&hasOwnProperty$3.call(object,key))&&result.push(key);return result},isArrayLike$2=isArrayLike_1;var keysIn_1=function(object){return isArrayLike$2(object)?arrayLikeKeys$1(object,!0):baseKeysIn(object)};var identity_1=function(value){return value},baseGetTag=_baseGetTag,isObjectLike$3=isObjectLike_1;var isSymbol_1=function(value){return"symbol"==typeof value||isObjectLike$3(value)&&"[object Symbol]"==baseGetTag(value)},isArray$8=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;var _isKey=function(value,object){if(isArray$8(value))return!1;var type=typeof value;return!("number"!=type&&"symbol"!=type&&"boolean"!=type&&null!=value&&!isSymbol$3(value))||(reIsPlainProp.test(value)||!reIsDeepProp.test(value)||null!=object&&value in Object(object))},MapCache$1=_MapCache;function memoize$1(func,resolver){if("function"!=typeof func||null!=resolver&&"function"!=typeof resolver)throw new TypeError("Expected a function");var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result)||cache,result};return memoized.cache=new(memoize$1.Cache||MapCache$1),memoized}memoize$1.Cache=MapCache$1;var memoize=memoize$1;var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,_stringToPath=function(func){var result=memoize(func,(function(key){return 500===cache.size&&cache.clear(),key})),cache=result.cache;return result}((function(string){var result=[];return 46===string.charCodeAt(0)&&result.push(""),string.replace(rePropName,(function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):number||match)})),result}));var arrayMap=function(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result},isArray$7=isArray_1,isSymbol$2=isSymbol_1,symbolProto$2=_Symbol?_Symbol.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;var _baseToString=function baseToString$1(value){if("string"==typeof value)return value;if(isArray$7(value))return arrayMap(value,baseToString$1)+"";if(isSymbol$2(value))return symbolToString?symbolToString.call(value):"";var result=value+"";return"0"==result&&1/value==-Infinity?"-0":result},baseToString=_baseToString;var isArray$6=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString=function(value){return null==value?"":baseToString(value)};var _castPath=function(value,object){return isArray$6(value)?value:isKey$2(value,object)?[value]:stringToPath(toString(value))},isSymbol$1=isSymbol_1;var _toKey=function(value){if("string"==typeof value||isSymbol$1(value))return value;var result=value+"";return"0"==result&&1/value==-Infinity?"-0":result},castPath$1=_castPath,toKey$3=_toKey;var _baseGet=function(object,path){for(var index=0,length=(path=castPath$1(path,object)).length;null!=object&&index<length;)object=object[toKey$3(path[index++])];return index&&index==length?object:void 0};globalThis.is_ext="undefined"!=typeof browser||"undefined"!=typeof chrome&&void 0!==chrome.runtime;var _arrayFilter=function(array,predicate){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result},arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;var keys_1=function(object){return isArrayLike$1(object)?arrayLikeKeys(object):baseKeys(object)},baseFor=_baseFor,keys$4=keys_1;var isArrayLike=isArrayLike_1;var baseEach=function(eachFunc,fromRight){return function(collection,iteratee){if(null==collection)return collection;if(!isArrayLike(collection))return eachFunc(collection,iteratee);for(var length=collection.length,index=fromRight?length:-1,iterable=Object(collection);(fromRight?index--:++index<length)&&!1!==iteratee(iterable[index],index,iterable););return collection}}((function(object,iteratee){return object&&baseFor(object,iteratee,keys$4)}));var _baseFilter=function(collection,predicate){var result=[];return baseEach(collection,(function(value,index,collection){predicate(value,index,collection)&&result.push(value)})),result};var MapCache=_MapCache,setCacheAdd=function(value){return this.__data__.set(value,"__lodash_hash_undefined__"),this},setCacheHas=function(value){return this.__data__.has(value)};function SetCache$1(values){var index=-1,length=null==values?0:values.length;for(this.__data__=new MapCache;++index<length;)this.add(values[index])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd,SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;var _cacheHas=function(cache,key){return cache.has(key)},SetCache=_SetCache,arraySome=function(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;return!1},cacheHas=_cacheHas;var _equalArrays=function(array,other,bitmask,customizer,equalFunc,stack){var isPartial=1&bitmask,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=2&bitmask?new SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index<arrLength;){var arrValue=array[index],othValue=other[index];if(customizer)var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack);if(void 0!==compared){if(compared)continue;result=!1;break}if(seen){if(!arraySome(other,(function(othValue,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack)))return seen.push(othIndex)}))){result=!1;break}}else if(arrValue!==othValue&&!equalFunc(arrValue,othValue,bitmask,customizer,stack)){result=!1;break}}return stack.delete(array),stack.delete(other),result};var _setToArray=function(set){var index=-1,result=Array(set.size);return set.forEach((function(value){result[++index]=value})),result},Uint8Array=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=function(map){var index=-1,result=Array(map.size);return map.forEach((function(value,key){result[++index]=[key,value]})),result},setToArray=_setToArray,symbolProto$1=_Symbol?_Symbol.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;var _equalByTag=function(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case"[object DataView]":if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset)return!1;object=object.buffer,other=other.buffer;case"[object ArrayBuffer]":return!(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array(object),new Uint8Array(other)));case"[object Boolean]":case"[object Date]":case"[object Number]":return eq(+object,+other);case"[object Error]":return object.name==other.name&&object.message==other.message;case"[object RegExp]":case"[object String]":return object==other+"";case"[object Map]":var convert=mapToArray;case"[object Set]":var isPartial=1&bitmask;if(convert||(convert=setToArray),object.size!=other.size&&!isPartial)return!1;var stacked=stack.get(object);if(stacked)return stacked==other;bitmask|=2,stack.set(object,other);var result=equalArrays$1(convert(object),convert(other),bitmask,customizer,equalFunc,stack);return stack.delete(object),result;case"[object Symbol]":if(symbolValueOf$1)return symbolValueOf$1.call(object)==symbolValueOf$1.call(other)}return!1};var _arrayPush=function(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array},arrayPush$1=_arrayPush,isArray$5=isArray_1;var _baseGetAllKeys=function(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray$5(object)?result:arrayPush$1(result,symbolsFunc(object))};var stubArray_1=function(){return[]},arrayFilter$1=_arrayFilter,stubArray$1=stubArray_1,propertyIsEnumerable=Object.prototype.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,_getSymbols=nativeGetSymbols$1?function(object){return null==object?[]:(object=Object(object),arrayFilter$1(nativeGetSymbols$1(object),(function(symbol){return propertyIsEnumerable.call(object,symbol)})))}:stubArray$1,baseGetAllKeys$1=_baseGetAllKeys,getSymbols$2=_getSymbols,keys$3=keys_1;var _getAllKeys=function(object){return baseGetAllKeys$1(object,keys$3,getSymbols$2)},getAllKeys$1=_getAllKeys,hasOwnProperty$2=Object.prototype.hasOwnProperty;var Stack$2=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=function(object,other,bitmask,customizer,equalFunc,stack){var isPartial=1&bitmask,objProps=getAllKeys$1(object),objLength=objProps.length;if(objLength!=getAllKeys$1(other).length&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty$2.call(other,key)))return!1}var objStacked=stack.get(object),othStacked=stack.get(other);if(objStacked&&othStacked)return objStacked==other&&othStacked==object;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index<objLength;){var objValue=object[key=objProps[index]],othValue=other[key];if(customizer)var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);if(!(void 0===compared?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=!1;break}skipCtor||(skipCtor="constructor"==key)}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;objCtor==othCtor||!("constructor"in object)||!("constructor"in other)||"function"==typeof objCtor&&objCtor instanceof objCtor&&"function"==typeof othCtor&&othCtor instanceof othCtor||(result=!1)}return stack.delete(object),stack.delete(other),result},getTag$3=_getTag,isArray$4=isArray_1,isBuffer$1=isBufferExports,isTypedArray=isTypedArray_1,hasOwnProperty$1=Object.prototype.hasOwnProperty;var baseIsEqualDeep=function(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray$4(object),othIsArr=isArray$4(other),objTag=objIsArr?"[object Array]":getTag$3(object),othTag=othIsArr?"[object Array]":getTag$3(other),objIsObj="[object Object]"==(objTag="[object Arguments]"==objTag?"[object Object]":objTag),othIsObj="[object Object]"==(othTag="[object Arguments]"==othTag?"[object Object]":othTag),isSameTag=objTag==othTag;if(isSameTag&&isBuffer$1(object)){if(!isBuffer$1(other))return!1;objIsArr=!0,objIsObj=!1}if(isSameTag&&!objIsObj)return stack||(stack=new Stack$2),objIsArr||isTypedArray(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);if(!(1&bitmask)){var objIsWrapped=objIsObj&&hasOwnProperty$1.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty$1.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;return stack||(stack=new Stack$2),equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack)}}return!!isSameTag&&(stack||(stack=new Stack$2),equalObjects(object,other,bitmask,customizer,equalFunc,stack))},isObjectLike$2=isObjectLike_1;var _baseIsEqual=function baseIsEqual$3(value,other,bitmask,customizer,stack){return value===other||(null==value||null==other||!isObjectLike$2(value)&&!isObjectLike$2(other)?value!=value&&other!=other:baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual$3,stack))},Stack$1=_Stack,baseIsEqual$2=_baseIsEqual;var isObject$4=isObject_1;var _isStrictComparable=function(value){return value==value&&!isObject$4(value)},isStrictComparable$1=_isStrictComparable,keys$2=keys_1;var _matchesStrictComparable=function(key,srcValue){return function(object){return null!=object&&(object[key]===srcValue&&(void 0!==srcValue||key in Object(object)))}},baseIsMatch=function(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(null==object)return!length;for(object=Object(object);index--;){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++index<length;){var key=(data=matchData[index])[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(void 0===objValue&&!(key in object))return!1}else{var stack=new Stack$1;if(customizer)var result=customizer(objValue,srcValue,key,object,source,stack);if(!(void 0===result?baseIsEqual$2(srcValue,objValue,3,customizer,stack):result))return!1}}return!0},getMatchData=function(object){for(var result=keys$2(object),length=result.length;length--;){var key=result[length],value=object[key];result[length]=[key,value,isStrictComparable$1(value)]}return result},matchesStrictComparable$1=_matchesStrictComparable;var _baseMatches=function(source){var matchData=getMatchData(source);return 1==matchData.length&&matchData[0][2]?matchesStrictComparable$1(matchData[0][0],matchData[0][1]):function(object){return object===source||baseIsMatch(object,source,matchData)}},baseGet$1=_baseGet;var get_1=function(object,path,defaultValue){var result=null==object?void 0:baseGet$1(object,path);return void 0===result?defaultValue:result},get$2=getDefaultExportFromCjs(get_1);var castPath=_castPath,isArguments=isArguments_1,isArray$3=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$2=_toKey;var baseHasIn=function(object,key){return null!=object&&key in Object(object)},hasPath=function(object,path,hasFunc){for(var index=-1,length=(path=castPath(path,object)).length,result=!1;++index<length;){var key=toKey$2(path[index]);if(!(result=null!=object&&hasFunc(object,key)))break;object=object[key]}return result||++index!=length?result:!!(length=null==object?0:object.length)&&isLength(length)&&isIndex(key,length)&&(isArray$3(object)||isArguments(object))};var baseIsEqual$1=_baseIsEqual,get=get_1,hasIn=function(object,path){return null!=object&&hasPath(object,path,baseHasIn)},isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey;var baseGet=_baseGet;var baseProperty=function(key){return function(object){return null==object?void 0:object[key]}},basePropertyDeep=function(path){return function(object){return baseGet(object,path)}},isKey=_isKey,toKey=_toKey;var baseMatches=_baseMatches,baseMatchesProperty=function(path,srcValue){return isKey$1(path)&&isStrictComparable(srcValue)?matchesStrictComparable(toKey$1(path),srcValue):function(object){var objValue=get(object,path);return void 0===objValue&&objValue===srcValue?hasIn(object,path):baseIsEqual$1(srcValue,objValue,3)}},identity=identity_1,isArray$2=isArray_1,property=function(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)};var _baseIteratee=function(value){return"function"==typeof value?value:null==value?identity:"object"==typeof value?isArray$2(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value):property(value)};var arrayFilter=_arrayFilter,baseFilter=_baseFilter,baseIteratee=_baseIteratee,isArray$1=isArray_1,negate=function(predicate){if("function"!=typeof predicate)throw new TypeError("Expected a function");return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2])}return!predicate.apply(this,args)}};var reject_lodash=getDefaultExportFromCjs((function(collection,predicate){return(isArray$1(collection)?arrayFilter:baseFilter)(collection,negate(baseIteratee(predicate)))})),root=_root,reWhitespace=/\s/;var trimmedEndIndex=function(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););return index},reTrimStart=/^\s+/;var baseTrim=function(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string},isObject$3=isObject_1,isSymbol=isSymbol_1,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;var isObject$2=isObject_1,now=function(){return root.Date.now()},toNumber=function(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject$3(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject$3(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value},nativeMax=Math.max,nativeMin=Math.min;var debounce_1=function(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=void 0,lastInvokeTime=time,result=func.apply(thisArg,args)}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;return void 0===lastCallTime||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject$2(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function(){return void 0===timerId?result:trailingEdge(now())},debounced},debounce$2=getDefaultExportFromCjs(debounce_1),debounce=debounce_1,isObject$1=isObject_1;var throttle$1=getDefaultExportFromCjs((function(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");return isObject$1(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})}));globalThis.l=console.log.bind(console),globalThis.n=val=>err((()=>null!=val),"shr_1140"),globalThis.nn=val=>err((()=>null!==val),"shr_1141"),globalThis.rs=variable=>err((()=>!n(variable)||"function"!=typeof variable&&"string"!=typeof variable?"":shared.resolve_variable(variable)),"shr_1142"),globalThis.rn=variable=>err((()=>!n(variable)||"function"!=typeof variable&&"number"!=typeof variable?1/0:shared.resolve_variable(variable)),"shr_1143"),globalThis.rb=variable=>err((()=>!(!n(variable)||"function"!=typeof variable&&"boolean"!=typeof variable)&&shared.resolve_variable(variable)),"shr_1144"),globalThis.ru=variable=>err((()=>n(variable)?shared.resolve_variable(variable):void 0),"shr_1145");const shared={ensure_els:els=>err((()=>{if(n(els))return els}),"shr_1146"),resolve_variable:variable=>err((()=>"function"==typeof variable?variable():variable),"shr_1147")};globalThis.s=selector=>err((()=>shared.ensure_els(document.querySelector(selector))),"shr_1148"),globalThis.sa=selector=>err((()=>shared.ensure_els(document.querySelectorAll(selector))),"shr_1149"),globalThis.sb=(base_el,selector)=>err((()=>{if(n(base_el))return shared.ensure_els(base_el.querySelector(selector))}),"shr_1150"),globalThis.sab=(base_el,selector)=>err((()=>{const els=n(base_el)?base_el.querySelectorAll(selector):void 0;return shared.ensure_els(els)}),"shr_1151");const X=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.in_service_worker="undefined"==typeof document,this.invisible_chars="​​​​​​​​​​",this.manifest={},this.get_asset_path=()=>__awaiter(this,void 0,void 0,(function*(){if("adonis_app"===env.env){const manifest_path=`${globalThis.location.origin}/assets/manifest.json`,response=yield fetch(manifest_path),manifest=yield response.json();this.manifest=manifest}})),this.all=(els,callback)=>err((()=>{n(els)&&(els instanceof Window||!(els instanceof NodeList||els.length>1)?callback(els):Array.from(els).forEach((el=>{callback(el)})))}),"shr_1152"),this.create=(el_type,cls)=>err((()=>{const el=document.createElement(el_type);return el.className=cls,el}),"shr_1153"),this.append=(parent,child)=>err((()=>{n(parent)&&n(child)&&[1,11].includes(parent.nodeType)&&parent.appendChild(child)}),"shr_1154"),this.as_first=(parent,child)=>err((()=>{n(parent)&&n(child)&&n(parent.parentNode)&&[1,11].includes(parent.nodeType)&&parent.insertBefore(child,parent.firstChild)}),"shr_1155"),this.before=(el_to_insert_before,child)=>err((()=>{n(el_to_insert_before)&&n(child)&&n(el_to_insert_before.parentNode)&&[1,11].includes(child.nodeType)&&el_to_insert_before.before(child)}),"shr_1156"),this.after=(el_to_insert_after,child)=>err((()=>{n(el_to_insert_after)&&n(child)&&n(el_to_insert_after.parentNode)&&[1,11].includes(child.nodeType)&&el_to_insert_after.after(child)}),"shr_1157"),this.remove=els=>err((()=>{this.all(els,(el=>err((()=>{n(el)&&n(el.parentNode)&&1===el.nodeType&&el.parentNode.removeChild(el)}),"shr_1158")))}),"shr_1159"),this.matches=(el,selector)=>err((()=>!(!n(el)||1!==el.nodeType)&&el.matches(selector)),"shr_1160"),this.closest=(el,selector)=>err((()=>{if(n(el)&&1===el.nodeType)return shared.ensure_els(el.closest(selector))}),"shr_1161"),this.add_cls=(els,cls)=>err((()=>{this.all(els,(el=>err((()=>{n(el)&&1===el.nodeType&&el.classList.add(cls)}),"shr_1162")))}),"shr_1163"),this.remove_cls=(els,cls)=>err((()=>{this.all(els,(el=>err((()=>{n(el)&&1===el.nodeType&&el.classList.remove(cls)}),"shr_1164")))}),"shr_1165"),this.move_item=(from,to,arr)=>err((()=>{arr.splice(to,0,arr.splice(from,1)[0])}),"shr_1166"),this.insert_item=(position,items,arr)=>err((()=>[...arr.slice(0,position),...items,...arr.slice(position)]),"shr_1216"),this.remove_item=(i,arr)=>err((()=>{arr.splice(i,1)}),"shr_1167"),this.bind=(els,event,f)=>err((()=>{this.all(els,(el=>err((()=>{n(el.addEventListener)&&el.addEventListener(event,f)}),"shr_1168")))}),"shr_1169"),this.css=(filename,parent,cls)=>err((()=>{if(n(parent)){const cls_final=cls||`${filename}_link`,new_link=this.create("link",cls_final);this.bind(new_link,"load",(()=>{const old_links=sab(parent,`.${cls_final}`);if(n(old_links)){const old_links_arr=[...old_links];old_links_arr.length>1&&(old_links_arr.pop(),old_links_arr.forEach((old_link=>{this.remove(old_link)})))}}));const app_filename="adonis_app"===env.env?this.manifest[`assets/${filename}.css`]:`${filename}.css`;return new_link.href=is_ext?we.runtime.getURL(`${filename}.css`):`${app_filename}`,new_link.setAttribute("rel","stylesheet"),new_link.setAttribute("type","text/css"),parent.appendChild(new_link),new_link}}),"shr_1170"),this.dynamic_css=(parent,cls,css)=>err((()=>{const cls_final=`${cls}_style`,old_style=sb(parent,`.${cls_final}`);n(old_style)&&this.remove(old_style);const new_style=this.create("style",cls_final);return new_style.innerHTML=css,n(parent)&&parent.appendChild(new_style),new_style}),"shr_1171"),this.get_css_val=(el,key)=>err((()=>globalThis.getComputedStyle(el).getPropertyValue(key)),"shr_1172"),this.get_numeric_css_val=(el,key)=>err((()=>parseInt(globalThis.getComputedStyle(el).getPropertyValue(key),10)),"shr_1173"),this.get_float_css_val=(el,key)=>err((()=>parseFloat(globalThis.getComputedStyle(el).getPropertyValue(key))),"shr_1174"),this.str_is_number=val=>err((()=>/^\d+$|^\d+\.\d+$/.test(val)),"shr_1175"),this.delay=delay=>new Promise((resolve=>{err((()=>{globalThis.setTimeout((()=>{resolve()}),delay)}),"shr_1176")})),this.id=()=>err((()=>{const uint32=(n(globalThis.crypto)?globalThis.crypto:require("crypto").webcrypto).getRandomValues(new Uint32Array(1))[0];return Array.from(uint32.toString(16)).map((char=>this.rand_bool()?char.toUpperCase():char)).join("")}),"shr_1177"),this.unique_id=()=>err((()=>(new Date).getTime()+this.id()),"shr_1215"),this.range=(min,max)=>err((()=>Math.floor(Math.random()*(max-min+1))+min),"shr_1178"),this.rand_bool=()=>err((()=>!Math.round(Math.random())),"shr_1179"),this.convert_string_bool=bool=>err((()=>"true"===bool),"shr_1194"),this.range_arr=(end,start=0)=>err((()=>{const arr=[];for(let i=start;i<=end;i+=1)arr.push(i);return arr}),"shr_1217"),this.cls=classes=>err((()=>reject_lodash(classes,(item=>!n(item)||""===item)).join(" ")),"shr_1180"),this.get_prop=(obj,key)=>err((()=>obj[key]),"shr_1181"),this.set_prop=(obj,key,val)=>err((()=>{const updated_obj=obj;return updated_obj[key]=val,updated_obj}),"shr_1182"),this.sanitize_filename=(filename,new_character="_")=>err((()=>filename.replace(/[<>:"/\\|?]/g,new_character)),"shr_1183"),this.convert_blob_to_base64=blob=>new Promise(((resolve,reject)=>{err((()=>{const reader=new FileReader;reader.onerror=reject,reader.onload=()=>{resolve(reader.result)},reader.readAsDataURL(blob)}),"shr_1184")})),this.convert_base64_to_blob=base64=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){const response=yield fetch(base64);return yield response.blob()}))),"shr_1225"),this.chunk_str=(str,len)=>err((()=>{const size=Math.ceil(str.length/len),chunks=Array(size);let offset=0;for(let i=0;i<size;i+=1)chunks[i]=str[n(str.substr)?"substr":"substring"](offset,len),offset+=len;return chunks}),"shr_1288"),this.bytes_to_base64=bytes=>err((()=>Math.ceil(4*bytes/3)),"shr_1289"),this.copy_text=text=>err((()=>{const input=this.create("input","");input.style.position="fixed",input.style.opacity="0",this.append(document.body,input),input.value=text,input.focus(),input.select(),document.execCommand("copy"),this.remove(input)}),"shr_1185"),this.copy_img=img_url=>err((()=>{const selection=globalThis.getSelection();if(n(selection)){selection.removeAllRanges();const img=this.create("img","");img.style.position="fixed",img.style.opacity="0",img.src=img_url,this.append(document.body,img);const range=document.createRange();range.setStartBefore(img),range.setEndAfter(img),range.selectNode(img),selection.addRange(range),document.execCommand("Copy"),this.remove(img)}}),"shr_1186"),this.px=val=>err((()=>`${val}px`),"shr_1187"),this.insert_invisible_chars_in_title=()=>err((()=>{document.title+=this.invisible_chars}),"shr_1188"),this.gcd=(a,b)=>err((()=>0===b?a:this.gcd(b,a%b)),"shr_1257"),this.get_aspect_ratio=(width,height)=>err((()=>{const gcd=this.gcd(width,height);return`${width/gcd}:${height/gcd}`}),"shr_1258"),this.percentage=(partial_val,total_val,round_down=!1)=>err((()=>{const percentage_raw=100*partial_val/total_val;return round_down?Math.floor(percentage_raw):percentage_raw}),"shr_1261"),this.wrap_link_in_a=text=>err((()=>text.replace(/</gi,"$ANGLE_BRACKET_LEFT").replace(/>/gi,"$ANGLE_BRACKET_RIGHT").replace(/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&amp;:/~+#-]*[\w@?^=%&amp;/~+#-])?/gi,'<a class="link" href="$&" target="_blank" rel="noopener noreferrer">$&</a>').replace(/\$ANGLE_BRACKET_LEFT/gi,"&#60").replace(/\$ANGLE_BRACKET_RIGHT/gi,"&#62")),"shr_1294"),this.pastel_color=()=>err((()=>`hsl(${~~(360*Math.random())} 70% 80%)`),"shr_1262"),this.settings_are_filled=()=>err((()=>!isEmpty$1(n(data.settings))),"shr_1252"),this.prefs_are_filled=()=>err((()=>n(data.settings)&&n(data.settings.prefs)&&"prefs"in data.settings&&n(data.settings.prefs.enable_cut_features)),"shr_1241")}async_debounce(f,wait,options={}){const resolve_list=[];let reject_list=[];const debounced=debounce$2(((...args)=>{f(...args).then((result=>{resolve_list.forEach((resolve=>resolve(result))),reject_list=[]})).catch((error=>{resolve_list.forEach((reject=>reject(error))),reject_list=[]}))}),wait,options);return(...args)=>new Promise(((resolve,reject)=>{resolve_list.push(resolve),reject_list.push(reject),debounced(...args)}))}async_throttle(f,wait,options={}){const throttled_f=throttle$1(((resolve,reject,...args)=>{f(...args).then(resolve).catch(reject)}),wait,options);return(...args)=>new Promise(((resolve,reject)=>{throttled_f(resolve,reject,...args)}))}}.get_instance();globalThis.x=X,globalThis.data={settings:{}};var _arrayEach=function(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index<length&&!1!==iteratee(array[index],index,array););return array},copyObject$3=_copyObject,keys$1=keys_1;var _baseAssign=function(object,source){return object&&copyObject$3(source,keys$1(source),object)},copyObject$2=_copyObject,keysIn$2=keysIn_1;var _baseAssignIn=function(object,source){return object&&copyObject$2(source,keysIn$2(source),object)},copyObject$1=_copyObject,getSymbols$1=_getSymbols;var _copySymbols=function(source,object){return copyObject$1(source,getSymbols$1(source),object)},arrayPush=_arrayPush,getPrototype=_getPrototype,getSymbols=_getSymbols,stubArray=stubArray_1,getSymbolsIn$2=Object.getOwnPropertySymbols?function(object){for(var result=[];object;)arrayPush(result,getSymbols(object)),object=getPrototype(object);return result}:stubArray,copyObject=_copyObject,getSymbolsIn$1=getSymbolsIn$2;var _copySymbolsIn=function(source,object){return copyObject(source,getSymbolsIn$1(source),object)},baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=getSymbolsIn$2,keysIn$1=keysIn_1;var _getAllKeysIn=function(object){return baseGetAllKeys(object,keysIn$1,getSymbolsIn)},hasOwnProperty=Object.prototype.hasOwnProperty;var _initCloneArray=function(array){var length=array.length,result=new array.constructor(length);return length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input),result},cloneArrayBuffer$1=_cloneArrayBuffer;var _cloneDataView=function(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer$1(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength)},reFlags=/\w*$/;var _cloneRegExp=function(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));return result.lastIndex=regexp.lastIndex,result},symbolProto=_Symbol?_Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;var cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=function(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{}},cloneTypedArray=_cloneTypedArray;var _initCloneByTag=function(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case"[object ArrayBuffer]":return cloneArrayBuffer(object);case"[object Boolean]":case"[object Date]":return new Ctor(+object);case"[object DataView]":return cloneDataView(object,isDeep);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return cloneTypedArray(object,isDeep);case"[object Map]":case"[object Set]":return new Ctor;case"[object Number]":case"[object String]":return new Ctor(object);case"[object RegExp]":return cloneRegExp(object);case"[object Symbol]":return cloneSymbol(object)}},getTag$2=_getTag,isObjectLike$1=isObjectLike_1;var baseIsMap=function(value){return isObjectLike$1(value)&&"[object Map]"==getTag$2(value)},baseUnary$1=_baseUnary,nodeIsMap=_nodeUtilExports&&_nodeUtilExports.isMap,isMap_1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap,getTag$1=_getTag,isObjectLike=isObjectLike_1;var baseIsSet=function(value){return isObjectLike(value)&&"[object Set]"==getTag$1(value)},baseUnary=_baseUnary,nodeIsSet=_nodeUtilExports&&_nodeUtilExports.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,Stack=_Stack,arrayEach=_arrayEach,assignValue=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray=isArray_1,isBuffer=isBufferExports,isMap=isMap_1,isObject=isObject_1,isSet=isSet$1,keys=keys_1,keysIn=keysIn_1,cloneableTags={};cloneableTags["[object Arguments]"]=cloneableTags["[object Array]"]=cloneableTags["[object ArrayBuffer]"]=cloneableTags["[object DataView]"]=cloneableTags["[object Boolean]"]=cloneableTags["[object Date]"]=cloneableTags["[object Float32Array]"]=cloneableTags["[object Float64Array]"]=cloneableTags["[object Int8Array]"]=cloneableTags["[object Int16Array]"]=cloneableTags["[object Int32Array]"]=cloneableTags["[object Map]"]=cloneableTags["[object Number]"]=cloneableTags["[object Object]"]=cloneableTags["[object RegExp]"]=cloneableTags["[object Set]"]=cloneableTags["[object String]"]=cloneableTags["[object Symbol]"]=cloneableTags["[object Uint8Array]"]=cloneableTags["[object Uint8ClampedArray]"]=cloneableTags["[object Uint16Array]"]=cloneableTags["[object Uint32Array]"]=!0,cloneableTags["[object Error]"]=cloneableTags["[object Function]"]=cloneableTags["[object WeakMap]"]=!1;var _baseClone=function baseClone$1(value,bitmask,customizer,key,object,stack){var result,isDeep=1&bitmask,isFlat=2&bitmask,isFull=4&bitmask;if(customizer&&(result=object?customizer(value,key,object,stack):customizer(value)),void 0!==result)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return copyArray(value,result)}else{var tag=getTag(value),isFunc="[object Function]"==tag||"[object GeneratorFunction]"==tag;if(isBuffer(value))return cloneBuffer(value,isDeep);if("[object Object]"==tag||"[object Arguments]"==tag||isFunc&&!object){if(result=isFlat||isFunc?{}:initCloneObject(value),!isDeep)return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value))}else{if(!cloneableTags[tag])return object?value:{};result=initCloneByTag(value,tag,isDeep)}}stack||(stack=new Stack);var stacked=stack.get(value);if(stacked)return stacked;stack.set(value,result),isSet(value)?value.forEach((function(subValue){result.add(baseClone$1(subValue,bitmask,customizer,subValue,value,stack))})):isMap(value)&&value.forEach((function(subValue,key){result.set(key,baseClone$1(subValue,bitmask,customizer,key,value,stack))}));var props=isArr?void 0:(isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys)(value);return arrayEach(props||value,(function(subValue,key){props&&(subValue=value[key=subValue]),assignValue(result,key,baseClone$1(subValue,bitmask,customizer,key,value,stack))})),result},baseClone=_baseClone;var cloneDeep$1=getDefaultExportFromCjs((function(value){return baseClone(value,5)})),baseIsEqual=_baseIsEqual;var isEqual$1=getDefaultExportFromCjs((function(value,other){return baseIsEqual(value,other)}));const Settings$1=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.set=({settings:settings,run_in_action:run_in_action=run_in_action_placeholder})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){let settings_final;if(x.prefs_are_filled()&&n(settings))settings_final=settings;else{const default_settings=yield ext.send_msg_resp({msg:"get_defaults"});settings_final=default_settings}run_in_action((()=>err((()=>{data.settings.prefs.home_btn_is_visible=settings_final.prefs.home_btn_is_visible}),"shr_1364")))}))),"shr_1365"),this.set_from_storage=({to_js:to_js,run_in_action:run_in_action=run_in_action_placeholder,set_data:set_data=Cache.set_data}={})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){if(!ext.ext_context_invalidated()){const old_settings=cloneDeep$1(data.settings);yield set_data();return x.prefs_are_filled()?isEqual$1(n(to_js)?to_js(data.settings):data.settings,n(to_js)?to_js(old_settings):old_settings)||(yield this.set({settings:data.settings,run_in_action:run_in_action})):yield this.set({run_in_action:run_in_action}),data.settings}}))),"shr_1367")}}.get_instance(),run_in_action_placeholder=callback=>err((()=>{callback()}),"shr_1234");const Schema=class{constructor(){this.transform=({data_obj:data_obj,version:version,transform_items:transform_items,keys_to_remove:keys_to_remove=[],force:force=!1,run_in_action:run_in_action=run_in_action_placeholder})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){if(version!==ext.get_app_version()||force){const properties_to_remove=[];return transform_items.forEach((transform_item=>err((()=>{!transform_item.update_existing_val&&n(transform_item.new_key)&&!n(data_obj[transform_item.new_key])&&(transform_item.create_property_if_it_doesnt_exist||!transform_item.create_property_if_it_doesnt_exist&&n(transform_item.old_key)&&n(data_obj[transform_item.old_key]))&&(n(transform_item.new_val)?run_in_action((()=>err((()=>{n(transform_item)&&n(transform_item.new_key)&&(data_obj[transform_item.new_key]=transform_item.new_val)}),"shr_1229"))):n(transform_item.old_key)&&run_in_action((()=>err((()=>{n(transform_item)&&n(transform_item.new_key)&&n(transform_item.old_key)&&(data_obj[transform_item.new_key]=data_obj[transform_item.old_key])}),"shr_1230")))),transform_item.update_existing_val&&n(transform_item.old_key)&&n(transform_item.new_val)&&(data_obj[transform_item.old_key]=transform_item.new_val),transform_item.update_existing_val||!n(transform_item.old_key)||properties_to_remove.includes(transform_item.old_key)||properties_to_remove.push(transform_item.old_key)}),"shr_1227"))),properties_to_remove.forEach((property_to_remove=>err((()=>{run_in_action((()=>err((()=>{delete data_obj[property_to_remove]}),"shr_1231")))}),"shr_1228"))),keys_to_remove.forEach((key_to_remove=>err((()=>{run_in_action((()=>err((()=>{delete data_obj[key_to_remove]}),"shr_1231")))}),"shr_1260"))),data_obj}return data_obj}))),"shr_1299"),this.replace=({settings:settings})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){yield ext.storage_set(settings,!0)}))),"shr_1236"),this.get_version_legacy=({settings:settings})=>err((()=>n(settings.prefs)?settings.prefs.version:settings.version),"shr_1300")}static get_instance(){return this.instance||(this.instance=new this)}}.get_instance();const Visibility=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.display=()=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){we.tabs.create({url:we.runtime.getURL("announcement.html")})}))),"shr_1231")}}.get_instance();const Colors=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.default_colors=["rgb(255 255 255)","rgb(0 0 0)","rgb(255 0 0)","rgb(183 28 28)","rgb(244 67 54)","rgb(245 0 87)","rgb(136 14 79)","rgb(240 98 146)","rgb(170 0 255)","rgb(74 20 140)","rgb(156 39 176)","rgb(98 0 234)","rgb(103 58 183)","rgb(48 79 254)","rgb(63 81 181)","rgb(0 176 255)","rgb(24 255 255)","rgb(29 233 182)","rgb(0 150 136)","rgb(0 200 83)","rgb(27 94 32)","rgb(100 221 23)","rgb(174 234 0)","rgb(255 214 0)","rgb(255 235 59)","rgb(255 111 0)","rgb(255 213 79)","rgb(255 152 0)","rgb(221 44 0)","rgb(191 54 12)"]}}.get_instance();const CssVars=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.get=({name:name,el:el})=>err((()=>x.get_css_val(n(el)?el:document.documentElement,`--${name}`)),"shr_1089"),this.set_var=({roots:roots,name:name,val:val})=>err((()=>{roots.forEach((root=>err((()=>{root.style.setProperty(`--${name}`,val)}),"shr_1090")))}),"shr_1091"),this.set_transition_vars=({roots:roots,transition_duration:transition_duration})=>err((()=>{this.set_var({roots:roots,name:"transition_duration",val:transition_duration}),this.set_var({roots:roots,name:"transition",val:`all ${+transition_duration<1?1:transition_duration}ms ease-out`}),this.set_var({roots:roots,name:"animation",val:`${+transition_duration<1?1:transition_duration}ms ease-out 1 forwards`})}),"shr_1092")}}.get_instance();const Cache=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.get_data=({set_from_storage:set_from_storage=!1}={})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){const session_data=yield we.storage.session.get(),cache_is_filled=n(session_data.settings);let data_obj=cache_is_filled&&!set_from_storage?session_data:yield ext.storage_get();return set_from_storage&&(data_obj=Settings.apply_unchanged_prefs({settings:data_obj})),!cache_is_filled||set_from_storage?(yield this.set_settings({settings:data_obj}),{settings:data_obj}):data_obj}))),"shr_1123"),this.set_data=({run_in_action:run_in_action=run_in_action_placeholder}={})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){const session=yield this.get_data();run_in_action((()=>err((()=>{Object.assign(data,session)}),"shr_1244")))}))),"shr_1243"),this.set_settings=({settings:settings={},run_in_action:run_in_action=run_in_action_placeholder}={})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){yield we.storage.session.set({settings:settings}),run_in_action((()=>err((()=>{data.settings=settings}),"shr_1245")))}))),"shr_1124"),this.set=({key:key,val:val,run_in_action:run_in_action=run_in_action_placeholder})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){yield we.storage.session.set({[key]:val}),run_in_action((()=>err((()=>{data[key]=val}),"shr_1248")))}))),"shr_1249"),this.get=({key:key})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){return n(data[key])?data[key]:(yield we.storage.session.get(key))[key]}))),"shr_1250")}}.get_instance();const Settings=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.apply_unchanged_prefs=({settings:settings,additional_unchanged_prefs:additional_unchanged_prefs={}})=>err((()=>(settings.prefs=Object.assign(Object.assign(Object.assign({},settings.prefs),{current_section:data.settings.prefs.current_section,color_help_is_visible:data.settings.prefs.color_help_is_visible}),additional_unchanged_prefs),settings)),"shr_1253")}}.get_instance();let Class$6=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.react_sync=({changes:changes,callback:callback})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){!isEmpty$1(data.settings)&&Object.keys(changes).some((key=>!isEqual$1(data.settings[key],changes[key].newValue)&&n(changes[key].newValue)))&&(yield Cache.get_data({set_from_storage:!0}),yield callback())}))),"shr_1240")}};const Sync=Class$6.get_instance();const State=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.cls="no_tr",this.enable=({el:el=document.head}={el:document.head})=>err((()=>{x.css(this.cls,el)}),"shr_1120"),this.disable=({el:el=document.head}={el:document.head})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){yield x.delay(500);const tr_link=sb(el,`.${this.cls}_link`);x.remove(tr_link)}))),"shr_1121")}}.get_instance();const ServiceWorker=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.make_persistent_intervals=[],this.persistent_service_worker=!1,this.make_persistent=()=>__awaiter(this,void 0,void 0,(function*(){return err_async((()=>__awaiter(this,void 0,void 0,(function*(){this.clear_make_persistent_intervals(),this.make_persistent_intervals.push(setInterval((()=>{err_async((()=>__awaiter(this,void 0,void 0,(function*(){data.settings.prefs.persistent_service_worker?ext.get_active_tab():this.clear_make_persistent_intervals()}))),"shr_1284")}),25e3))}))),"shr_1285")})),this.clear_make_persistent_intervals=()=>err((()=>{const make_persistent_intervals=[...this.make_persistent_intervals];this.make_persistent_intervals=[],make_persistent_intervals.forEach((make_persistent_interval=>err((()=>{clearInterval(make_persistent_interval)}),"shr_1287")))}),"shr_1286")}}.get_instance();const Theme=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.set=({name:name,el:el=document.head,additional_theme_callback:additional_theme_callback})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){State.enable({el:el});const name_final=`${name}_theme`,loading_screen_root_el=s('div[class^="root"][class*="loading_screen"]');x.css(name_final,el,"theme_link"),n(loading_screen_root_el)&&n(loading_screen_root_el.shadowRoot)&&x.css(name_final,loading_screen_root_el.shadowRoot,"theme_link"),n(additional_theme_callback)&&additional_theme_callback({name:name,el:el}),yield State.disable({el:el})}))),"shr_1129")}}.get_instance();const Title=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.get=()=>err((()=>{const title_el=s("title");return n(title_el)&&n(title_el.textContent)?title_el.textContent:""}),"shr_1230"),this.set=()=>err((()=>{const title_el=s("title");if(n(title_el)){const title=ext.msg(`${page}_title_text`);title_el.textContent="announcement"===page?`${we.runtime.getManifest().name} - ${title}`:title}}),"shr_1229")}}.get_instance();const Utils=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.to_object=({arr:arr,section:section,subsection:subsection})=>err((()=>{const obj_final={};return arr.forEach((item=>err((()=>{if(obj_final[item.name]=item,section&&(obj_final[item.name].section=section),subsection&&(obj_final[item.name].subsection=subsection),n(obj_final[item.name].inputs)){const innner_inputs=[...obj_final[item.name].inputs];obj_final[item.name].inputs=[],innner_inputs.forEach(((item_2,i)=>{obj_final[item.name].inputs[i]=item_2,section&&(obj_final[item.name].inputs[i].section=section),subsection&&(obj_final[item.name].inputs[i].subsection=subsection),"form"===item.type&&(obj_final[item.name].inputs[i].form=item.name)}))}}),"shr_1136"))),obj_final}),"shr_1137")}}.get_instance();const Viewport=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.get_dim=({dim:dim})=>err((()=>"width"===dim?document.documentElement.clientWidth:document.documentElement.clientHeight),"shr_1139")}}.get_instance();exports.Cache=Cache,exports.Class=Class$6,exports.Colors=Colors,exports.CssVars=CssVars,exports.Schema=Schema,exports.ServiceWorker=ServiceWorker,exports.Settings=Settings$1,exports.Settings$1=Settings,exports.State=State,exports.Sync=Sync,exports.Theme=Theme,exports.Title=Title,exports.Utils=Utils,exports.Viewport=Viewport,exports.Visibility=Visibility,exports.X=X,exports._Set=_Set,exports._SetCache=_SetCache,exports._Stack=_Stack,exports._Symbol=_Symbol,exports.__asyncValues=function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,m=o[Symbol.asyncIterator];return m?m.call(o):(o=__values(o),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(n){i[n]=o[n]&&function(v){return new Promise((function(resolve,reject){(function(resolve,reject,d,v){Promise.resolve(v).then((function(v){resolve({value:v,done:d})}),reject)})(resolve,reject,(v=o[n](v)).done,v.value)}))}}},exports.__awaiter=__awaiter,exports._arrayPush=_arrayPush,exports._assignValue=_assignValue,exports._baseAssignValue=_baseAssignValue,exports._baseFor=_baseFor,exports._baseGet=_baseGet,exports._baseGetTag=_baseGetTag,exports._baseIteratee=_baseIteratee,exports._cacheHas=_cacheHas,exports._castPath=_castPath,exports._cloneBufferExports=_cloneBufferExports,exports._cloneTypedArray=_cloneTypedArray,exports._copyArray=_copyArray,exports._copyObject=_copyObject,exports._defineProperty=_defineProperty,exports._getPrototype=_getPrototype,exports._initCloneObject=_initCloneObject,exports._isIndex=_isIndex,exports._setToArray=_setToArray,exports._toKey=_toKey,exports.commonjsGlobal=commonjsGlobal,exports.eq_1=eq_1,exports.get=get$2,exports.getDefaultExportFromCjs=getDefaultExportFromCjs,exports.identity_1=identity_1,exports.isArguments_1=isArguments_1,exports.isArrayLike_1=isArrayLike_1,exports.isArray_1=isArray_1,exports.isBufferExports=isBufferExports,exports.isEmpty=isEmpty$1,exports.isFunction_1=isFunction_1,exports.isObjectLike_1=isObjectLike_1,exports.isObject_1=isObject_1,exports.isSymbol_1=isSymbol_1,exports.isTypedArray_1=isTypedArray_1,exports.keysIn_1=keysIn_1,exports.prevent_default=e=>err((()=>{e.preventDefault()}),"shr_1111"),exports.run_in_action_placeholder=run_in_action_placeholder,exports.stop_propagation=e=>err((()=>{e.stopPropagation()}),"shr_1218");
5
+ "use strict";function __awaiter(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){var value;result.done?resolve(result.value):(value=result.value,value instanceof P?value:new P((function(resolve){resolve(value)}))).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))}function __values(o){var s="function"==typeof Symbol&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}"function"==typeof SuppressedError&&SuppressedError;var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var objectProto$f=Object.prototype;var _isPrototype=function(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto$f)};var _overArg=function(func,transform){return function(arg){return func(transform(arg))}},nativeKeys$1=_overArg(Object.keys,Object),isPrototype$3=_isPrototype,nativeKeys=nativeKeys$1,hasOwnProperty$c=Object.prototype.hasOwnProperty;var _baseKeys=function(object){if(!isPrototype$3(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty$c.call(object,key)&&"constructor"!=key&&result.push(key);return result},_freeGlobal="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,_root=freeGlobal||freeSelf||Function("return this")(),_Symbol=_root.Symbol,Symbol$5=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$b=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$5?Symbol$5.toStringTag:void 0;var _getRawTag=function(value){var isOwn=hasOwnProperty$b.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=void 0;var unmasked=!0}catch(e){}var result=nativeObjectToString$1.call(value);return unmasked&&(isOwn?value[symToStringTag$1]=tag:delete value[symToStringTag$1]),result},nativeObjectToString=Object.prototype.toString;var getRawTag=_getRawTag,objectToString=function(value){return nativeObjectToString.call(value)},symToStringTag=_Symbol?_Symbol.toStringTag:void 0;var _baseGetTag=function(value){return null==value?void 0===value?"[object Undefined]":"[object Null]":symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value)};var isObject_1=function(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)},baseGetTag$4=_baseGetTag,isObject$8=isObject_1;var uid,isFunction_1=function(value){if(!isObject$8(value))return!1;var tag=baseGetTag$4(value);return"[object Function]"==tag||"[object GeneratorFunction]"==tag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag},coreJsData=_root["__core-js_shared__"],maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""))?"Symbol(src)_1."+uid:"";var _isMasked=function(func){return!!maskSrcKey&&maskSrcKey in func},funcToString$1=Function.prototype.toString;var _toSource=function(func){if(null!=func){try{return funcToString$1.call(func)}catch(e){}try{return func+""}catch(e){}}return""},isFunction$1=isFunction_1,isMasked=_isMasked,isObject$7=isObject_1,toSource$1=_toSource,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$b=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$a=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$a).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var baseIsNative=function(value){return!(!isObject$7(value)||isMasked(value))&&(isFunction$1(value)?reIsNative:reIsHostCtor).test(toSource$1(value))},getValue=function(object,key){return null==object?void 0:object[key]};var _getNative=function(object,key){var value=getValue(object,key);return baseIsNative(value)?value:void 0},_DataView=_getNative(_root,"DataView"),_Map=_getNative(_root,"Map"),_Promise=_getNative(_root,"Promise"),_Set=_getNative(_root,"Set"),DataView=_DataView,Map$2=_Map,Promise$1=_Promise,Set=_Set,WeakMap=_getNative(_root,"WeakMap"),baseGetTag$3=_baseGetTag,toSource=_toSource,dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),getTag$5=baseGetTag$3;(DataView&&"[object DataView]"!=getTag$5(new DataView(new ArrayBuffer(1)))||Map$2&&"[object Map]"!=getTag$5(new Map$2)||Promise$1&&"[object Promise]"!=getTag$5(Promise$1.resolve())||Set&&"[object Set]"!=getTag$5(new Set)||WeakMap&&"[object WeakMap]"!=getTag$5(new WeakMap))&&(getTag$5=function(value){var result=baseGetTag$3(value),Ctor="[object Object]"==result?value.constructor:void 0,ctorString=Ctor?toSource(Ctor):"";if(ctorString)switch(ctorString){case dataViewCtorString:return"[object DataView]";case mapCtorString:return"[object Map]";case promiseCtorString:return"[object Promise]";case setCtorString:return"[object Set]";case weakMapCtorString:return"[object WeakMap]"}return result});var _getTag=getTag$5;var isObjectLike_1=function(value){return null!=value&&"object"==typeof value},baseGetTag$2=_baseGetTag,isObjectLike$6=isObjectLike_1;var baseIsArguments=function(value){return isObjectLike$6(value)&&"[object Arguments]"==baseGetTag$2(value)},isObjectLike$5=isObjectLike_1,objectProto$a=Object.prototype,hasOwnProperty$9=objectProto$a.hasOwnProperty,propertyIsEnumerable$1=objectProto$a.propertyIsEnumerable,isArguments_1=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike$5(value)&&hasOwnProperty$9.call(value,"callee")&&!propertyIsEnumerable$1.call(value,"callee")},isArray_1=Array.isArray;var isLength_1=function(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=9007199254740991},isFunction=isFunction_1,isLength$2=isLength_1;var isArrayLike_1=function(value){return null!=value&&isLength$2(value.length)&&!isFunction(value)},isBuffer$4={exports:{}};var stubFalse_1=function(){return!1};!function(module,exports){var root=_root,stubFalse=stubFalse_1,freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,Buffer=freeModule&&freeModule.exports===freeExports?root.Buffer:void 0,isBuffer=(Buffer?Buffer.isBuffer:void 0)||stubFalse;module.exports=isBuffer}(isBuffer$4,isBuffer$4.exports);var isBufferExports=isBuffer$4.exports,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$4=isObjectLike_1,typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0,typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=typedArrayTags["[object DataView]"]=typedArrayTags["[object Date]"]=typedArrayTags["[object Error]"]=typedArrayTags["[object Function]"]=typedArrayTags["[object Map]"]=typedArrayTags["[object Number]"]=typedArrayTags["[object Object]"]=typedArrayTags["[object RegExp]"]=typedArrayTags["[object Set]"]=typedArrayTags["[object String]"]=typedArrayTags["[object WeakMap]"]=!1;var _baseIsTypedArray=function(value){return isObjectLike$4(value)&&isLength$1(value.length)&&!!typedArrayTags[baseGetTag$1(value)]};var _baseUnary=function(func){return function(value){return func(value)}},_nodeUtil={exports:{}};!function(module,exports){var freeGlobal=_freeGlobal,freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil}(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeIsTypedArray=_nodeUtilExports&&_nodeUtilExports.isTypedArray,isTypedArray_1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,baseKeys$1=_baseKeys,getTag$4=_getTag,isArguments$2=isArguments_1,isArray$a=isArray_1,isArrayLike$3=isArrayLike_1,isBuffer$3=isBufferExports,isPrototype$2=_isPrototype,isTypedArray$2=isTypedArray_1,hasOwnProperty$8=Object.prototype.hasOwnProperty;var isEmpty$1=getDefaultExportFromCjs((function(value){if(null==value)return!0;if(isArrayLike$3(value)&&(isArray$a(value)||"string"==typeof value||"function"==typeof value.splice||isBuffer$3(value)||isTypedArray$2(value)||isArguments$2(value)))return!value.length;var tag=getTag$4(value);if("[object Map]"==tag||"[object Set]"==tag)return!value.size;if(isPrototype$2(value))return!baseKeys$1(value).length;for(var key in value)if(hasOwnProperty$8.call(value,key))return!1;return!0}));var _listCacheClear=function(){this.__data__=[],this.size=0};var eq_1=function(value,other){return value===other||value!=value&&other!=other},eq$2=eq_1;var _assocIndexOf=function(array,key){for(var length=array.length;length--;)if(eq$2(array[length][0],key))return length;return-1},assocIndexOf$3=_assocIndexOf,splice=Array.prototype.splice;var assocIndexOf$2=_assocIndexOf;var assocIndexOf$1=_assocIndexOf;var assocIndexOf=_assocIndexOf;var listCacheClear=_listCacheClear,listCacheDelete=function(key){var data=this.__data__,index=assocIndexOf$3(data,key);return!(index<0)&&(index==data.length-1?data.pop():splice.call(data,index,1),--this.size,!0)},listCacheGet=function(key){var data=this.__data__,index=assocIndexOf$2(data,key);return index<0?void 0:data[index][1]},listCacheHas=function(key){return assocIndexOf$1(this.__data__,key)>-1},listCacheSet=function(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this};function ListCache$4(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;var _stackClear=function(){this.__data__=new ListCache$3,this.size=0};var _stackDelete=function(key){var data=this.__data__,result=data.delete(key);return this.size=data.size,result};var _stackGet=function(key){return this.__data__.get(key)};var _stackHas=function(key){return this.__data__.has(key)},_nativeCreate=_getNative(Object,"create"),nativeCreate$3=_nativeCreate;var _hashClear=function(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0};var _hashDelete=function(key){var result=this.has(key)&&delete this.__data__[key];return this.size-=result?1:0,result},nativeCreate$2=_nativeCreate,hasOwnProperty$7=Object.prototype.hasOwnProperty;var _hashGet=function(key){var data=this.__data__;if(nativeCreate$2){var result=data[key];return"__lodash_hash_undefined__"===result?void 0:result}return hasOwnProperty$7.call(data,key)?data[key]:void 0},nativeCreate$1=_nativeCreate,hasOwnProperty$6=Object.prototype.hasOwnProperty;var nativeCreate=_nativeCreate;var hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=function(key){var data=this.__data__;return nativeCreate$1?void 0!==data[key]:hasOwnProperty$6.call(data,key)},hashSet=function(key,value){var data=this.__data__;return this.size+=this.has(key)?0:1,data[key]=nativeCreate&&void 0===value?"__lodash_hash_undefined__":value,this};function Hash$1(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var Hash=Hash$1,ListCache$2=_ListCache,Map$1=_Map;var isKeyable=function(value){var type=typeof value;return"string"==type||"number"==type||"symbol"==type||"boolean"==type?"__proto__"!==value:null===value};var _getMapData=function(map,key){var data=map.__data__;return isKeyable(key)?data["string"==typeof key?"string":"hash"]:data.map},getMapData$3=_getMapData;var getMapData$2=_getMapData;var getMapData$1=_getMapData;var getMapData=_getMapData;var mapCacheClear=function(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache$2),string:new Hash}},mapCacheDelete=function(key){var result=getMapData$3(this,key).delete(key);return this.size-=result?1:0,result},mapCacheGet=function(key){return getMapData$2(this,key).get(key)},mapCacheHas=function(key){return getMapData$1(this,key).has(key)},mapCacheSet=function(key,value){var data=getMapData(this,key),size=data.size;return data.set(key,value),this.size+=data.size==size?0:1,this};function MapCache$3(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,ListCache$1=_ListCache,Map=_Map,MapCache$2=_MapCache;var ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=function(key,value){var data=this.__data__;if(data instanceof ListCache$1){var pairs=data.__data__;if(!Map||pairs.length<199)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache$2(pairs)}return data.set(key,value),this.size=data.size,this};function Stack$3(entries){var data=this.__data__=new ListCache(entries);this.size=data.size}Stack$3.prototype.clear=stackClear,Stack$3.prototype.delete=stackDelete,Stack$3.prototype.get=stackGet,Stack$3.prototype.has=stackHas,Stack$3.prototype.set=stackSet;var _Stack=Stack$3,getNative=_getNative,_defineProperty=function(){try{var func=getNative(Object,"defineProperty");return func({},"",{}),func}catch(e){}}(),defineProperty=_defineProperty;var _baseAssignValue=function(object,key,value){"__proto__"==key&&defineProperty?defineProperty(object,key,{configurable:!0,enumerable:!0,value:value,writable:!0}):object[key]=value};var _baseFor=function(fromRight){return function(object,iteratee,keysFunc){for(var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;length--;){var key=props[fromRight?length:++index];if(!1===iteratee(iterable[key],key,iterable))break}return object}}(),_cloneBuffer={exports:{}};!function(module,exports){var root=_root,freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,Buffer=freeModule&&freeModule.exports===freeExports?root.Buffer:void 0,allocUnsafe=Buffer?Buffer.allocUnsafe:void 0;module.exports=function(buffer,isDeep){if(isDeep)return buffer.slice();var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);return buffer.copy(result),result}}(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports,_Uint8Array=_root.Uint8Array,Uint8Array$1=_Uint8Array;var _cloneArrayBuffer=function(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);return new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer)),result},cloneArrayBuffer$2=_cloneArrayBuffer;var _cloneTypedArray=function(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer$2(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length)};var _copyArray=function(source,array){var index=-1,length=source.length;for(array||(array=Array(length));++index<length;)array[index]=source[index];return array},isObject$6=isObject_1,objectCreate=Object.create,_baseCreate=function(){function object(){}return function(proto){if(!isObject$6(proto))return{};if(objectCreate)return objectCreate(proto);object.prototype=proto;var result=new object;return object.prototype=void 0,result}}(),_getPrototype=_overArg(Object.getPrototypeOf,Object),baseCreate=_baseCreate,getPrototype$1=_getPrototype,isPrototype$1=_isPrototype;var _initCloneObject=function(object){return"function"!=typeof object.constructor||isPrototype$1(object)?{}:baseCreate(getPrototype$1(object))},baseAssignValue$1=_baseAssignValue,eq$1=eq_1,hasOwnProperty$5=Object.prototype.hasOwnProperty;var _assignValue=function(object,key,value){var objValue=object[key];hasOwnProperty$5.call(object,key)&&eq$1(objValue,value)&&(void 0!==value||key in object)||baseAssignValue$1(object,key,value)},assignValue$1=_assignValue,baseAssignValue=_baseAssignValue;var _copyObject=function(source,props,object,customizer){var isNew=!object;object||(object={});for(var index=-1,length=props.length;++index<length;){var key=props[index],newValue=customizer?customizer(object[key],source[key],key,object,source):void 0;void 0===newValue&&(newValue=source[key]),isNew?baseAssignValue(object,key,newValue):assignValue$1(object,key,newValue)}return object};var reIsUint=/^(?:0|[1-9]\d*)$/;var _isIndex=function(value,length){var type=typeof value;return!!(length=null==length?9007199254740991:length)&&("number"==type||"symbol"!=type&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length},baseTimes=function(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result},isArguments$1=isArguments_1,isArray$9=isArray_1,isBuffer$2=isBufferExports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1,hasOwnProperty$4=Object.prototype.hasOwnProperty;var _arrayLikeKeys=function(value,inherited){var isArr=isArray$9(value),isArg=!isArr&&isArguments$1(value),isBuff=!isArr&&!isArg&&isBuffer$2(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray$1(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)!inherited&&!hasOwnProperty$4.call(value,key)||skipIndexes&&("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex$1(key,length))||result.push(key);return result};var isObject$5=isObject_1,isPrototype=_isPrototype,nativeKeysIn=function(object){var result=[];if(null!=object)for(var key in Object(object))result.push(key);return result},hasOwnProperty$3=Object.prototype.hasOwnProperty;var arrayLikeKeys$1=_arrayLikeKeys,baseKeysIn=function(object){if(!isObject$5(object))return nativeKeysIn(object);var isProto=isPrototype(object),result=[];for(var key in object)("constructor"!=key||!isProto&&hasOwnProperty$3.call(object,key))&&result.push(key);return result},isArrayLike$2=isArrayLike_1;var keysIn_1=function(object){return isArrayLike$2(object)?arrayLikeKeys$1(object,!0):baseKeysIn(object)};var identity_1=function(value){return value},baseGetTag=_baseGetTag,isObjectLike$3=isObjectLike_1;var isSymbol_1=function(value){return"symbol"==typeof value||isObjectLike$3(value)&&"[object Symbol]"==baseGetTag(value)},isArray$8=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;var _isKey=function(value,object){if(isArray$8(value))return!1;var type=typeof value;return!("number"!=type&&"symbol"!=type&&"boolean"!=type&&null!=value&&!isSymbol$3(value))||(reIsPlainProp.test(value)||!reIsDeepProp.test(value)||null!=object&&value in Object(object))},MapCache$1=_MapCache;function memoize$1(func,resolver){if("function"!=typeof func||null!=resolver&&"function"!=typeof resolver)throw new TypeError("Expected a function");var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result)||cache,result};return memoized.cache=new(memoize$1.Cache||MapCache$1),memoized}memoize$1.Cache=MapCache$1;var memoize=memoize$1;var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,_stringToPath=function(func){var result=memoize(func,(function(key){return 500===cache.size&&cache.clear(),key})),cache=result.cache;return result}((function(string){var result=[];return 46===string.charCodeAt(0)&&result.push(""),string.replace(rePropName,(function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):number||match)})),result}));var arrayMap=function(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result},isArray$7=isArray_1,isSymbol$2=isSymbol_1,symbolProto$2=_Symbol?_Symbol.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;var _baseToString=function baseToString$1(value){if("string"==typeof value)return value;if(isArray$7(value))return arrayMap(value,baseToString$1)+"";if(isSymbol$2(value))return symbolToString?symbolToString.call(value):"";var result=value+"";return"0"==result&&1/value==-Infinity?"-0":result},baseToString=_baseToString;var isArray$6=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString=function(value){return null==value?"":baseToString(value)};var _castPath=function(value,object){return isArray$6(value)?value:isKey$2(value,object)?[value]:stringToPath(toString(value))},isSymbol$1=isSymbol_1;var _toKey=function(value){if("string"==typeof value||isSymbol$1(value))return value;var result=value+"";return"0"==result&&1/value==-Infinity?"-0":result},castPath$1=_castPath,toKey$3=_toKey;var _baseGet=function(object,path){for(var index=0,length=(path=castPath$1(path,object)).length;null!=object&&index<length;)object=object[toKey$3(path[index++])];return index&&index==length?object:void 0};globalThis.is_ext="undefined"!=typeof browser||"undefined"!=typeof chrome&&void 0!==chrome.runtime;var _arrayFilter=function(array,predicate){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result},arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;var keys_1=function(object){return isArrayLike$1(object)?arrayLikeKeys(object):baseKeys(object)},baseFor=_baseFor,keys$4=keys_1;var isArrayLike=isArrayLike_1;var baseEach=function(eachFunc,fromRight){return function(collection,iteratee){if(null==collection)return collection;if(!isArrayLike(collection))return eachFunc(collection,iteratee);for(var length=collection.length,index=fromRight?length:-1,iterable=Object(collection);(fromRight?index--:++index<length)&&!1!==iteratee(iterable[index],index,iterable););return collection}}((function(object,iteratee){return object&&baseFor(object,iteratee,keys$4)}));var _baseFilter=function(collection,predicate){var result=[];return baseEach(collection,(function(value,index,collection){predicate(value,index,collection)&&result.push(value)})),result};var MapCache=_MapCache,setCacheAdd=function(value){return this.__data__.set(value,"__lodash_hash_undefined__"),this},setCacheHas=function(value){return this.__data__.has(value)};function SetCache$1(values){var index=-1,length=null==values?0:values.length;for(this.__data__=new MapCache;++index<length;)this.add(values[index])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd,SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;var _cacheHas=function(cache,key){return cache.has(key)},SetCache=_SetCache,arraySome=function(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;return!1},cacheHas=_cacheHas;var _equalArrays=function(array,other,bitmask,customizer,equalFunc,stack){var isPartial=1&bitmask,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=2&bitmask?new SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index<arrLength;){var arrValue=array[index],othValue=other[index];if(customizer)var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack);if(void 0!==compared){if(compared)continue;result=!1;break}if(seen){if(!arraySome(other,(function(othValue,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack)))return seen.push(othIndex)}))){result=!1;break}}else if(arrValue!==othValue&&!equalFunc(arrValue,othValue,bitmask,customizer,stack)){result=!1;break}}return stack.delete(array),stack.delete(other),result};var _setToArray=function(set){var index=-1,result=Array(set.size);return set.forEach((function(value){result[++index]=value})),result},Uint8Array=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=function(map){var index=-1,result=Array(map.size);return map.forEach((function(value,key){result[++index]=[key,value]})),result},setToArray=_setToArray,symbolProto$1=_Symbol?_Symbol.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;var _equalByTag=function(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case"[object DataView]":if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset)return!1;object=object.buffer,other=other.buffer;case"[object ArrayBuffer]":return!(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array(object),new Uint8Array(other)));case"[object Boolean]":case"[object Date]":case"[object Number]":return eq(+object,+other);case"[object Error]":return object.name==other.name&&object.message==other.message;case"[object RegExp]":case"[object String]":return object==other+"";case"[object Map]":var convert=mapToArray;case"[object Set]":var isPartial=1&bitmask;if(convert||(convert=setToArray),object.size!=other.size&&!isPartial)return!1;var stacked=stack.get(object);if(stacked)return stacked==other;bitmask|=2,stack.set(object,other);var result=equalArrays$1(convert(object),convert(other),bitmask,customizer,equalFunc,stack);return stack.delete(object),result;case"[object Symbol]":if(symbolValueOf$1)return symbolValueOf$1.call(object)==symbolValueOf$1.call(other)}return!1};var _arrayPush=function(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array},arrayPush$1=_arrayPush,isArray$5=isArray_1;var _baseGetAllKeys=function(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray$5(object)?result:arrayPush$1(result,symbolsFunc(object))};var stubArray_1=function(){return[]},arrayFilter$1=_arrayFilter,stubArray$1=stubArray_1,propertyIsEnumerable=Object.prototype.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,_getSymbols=nativeGetSymbols$1?function(object){return null==object?[]:(object=Object(object),arrayFilter$1(nativeGetSymbols$1(object),(function(symbol){return propertyIsEnumerable.call(object,symbol)})))}:stubArray$1,baseGetAllKeys$1=_baseGetAllKeys,getSymbols$2=_getSymbols,keys$3=keys_1;var _getAllKeys=function(object){return baseGetAllKeys$1(object,keys$3,getSymbols$2)},getAllKeys$1=_getAllKeys,hasOwnProperty$2=Object.prototype.hasOwnProperty;var Stack$2=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=function(object,other,bitmask,customizer,equalFunc,stack){var isPartial=1&bitmask,objProps=getAllKeys$1(object),objLength=objProps.length;if(objLength!=getAllKeys$1(other).length&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty$2.call(other,key)))return!1}var objStacked=stack.get(object),othStacked=stack.get(other);if(objStacked&&othStacked)return objStacked==other&&othStacked==object;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index<objLength;){var objValue=object[key=objProps[index]],othValue=other[key];if(customizer)var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);if(!(void 0===compared?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=!1;break}skipCtor||(skipCtor="constructor"==key)}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;objCtor==othCtor||!("constructor"in object)||!("constructor"in other)||"function"==typeof objCtor&&objCtor instanceof objCtor&&"function"==typeof othCtor&&othCtor instanceof othCtor||(result=!1)}return stack.delete(object),stack.delete(other),result},getTag$3=_getTag,isArray$4=isArray_1,isBuffer$1=isBufferExports,isTypedArray=isTypedArray_1,hasOwnProperty$1=Object.prototype.hasOwnProperty;var baseIsEqualDeep=function(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray$4(object),othIsArr=isArray$4(other),objTag=objIsArr?"[object Array]":getTag$3(object),othTag=othIsArr?"[object Array]":getTag$3(other),objIsObj="[object Object]"==(objTag="[object Arguments]"==objTag?"[object Object]":objTag),othIsObj="[object Object]"==(othTag="[object Arguments]"==othTag?"[object Object]":othTag),isSameTag=objTag==othTag;if(isSameTag&&isBuffer$1(object)){if(!isBuffer$1(other))return!1;objIsArr=!0,objIsObj=!1}if(isSameTag&&!objIsObj)return stack||(stack=new Stack$2),objIsArr||isTypedArray(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);if(!(1&bitmask)){var objIsWrapped=objIsObj&&hasOwnProperty$1.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty$1.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;return stack||(stack=new Stack$2),equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack)}}return!!isSameTag&&(stack||(stack=new Stack$2),equalObjects(object,other,bitmask,customizer,equalFunc,stack))},isObjectLike$2=isObjectLike_1;var _baseIsEqual=function baseIsEqual$3(value,other,bitmask,customizer,stack){return value===other||(null==value||null==other||!isObjectLike$2(value)&&!isObjectLike$2(other)?value!=value&&other!=other:baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual$3,stack))},Stack$1=_Stack,baseIsEqual$2=_baseIsEqual;var isObject$4=isObject_1;var _isStrictComparable=function(value){return value==value&&!isObject$4(value)},isStrictComparable$1=_isStrictComparable,keys$2=keys_1;var _matchesStrictComparable=function(key,srcValue){return function(object){return null!=object&&(object[key]===srcValue&&(void 0!==srcValue||key in Object(object)))}},baseIsMatch=function(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(null==object)return!length;for(object=Object(object);index--;){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++index<length;){var key=(data=matchData[index])[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(void 0===objValue&&!(key in object))return!1}else{var stack=new Stack$1;if(customizer)var result=customizer(objValue,srcValue,key,object,source,stack);if(!(void 0===result?baseIsEqual$2(srcValue,objValue,3,customizer,stack):result))return!1}}return!0},getMatchData=function(object){for(var result=keys$2(object),length=result.length;length--;){var key=result[length],value=object[key];result[length]=[key,value,isStrictComparable$1(value)]}return result},matchesStrictComparable$1=_matchesStrictComparable;var _baseMatches=function(source){var matchData=getMatchData(source);return 1==matchData.length&&matchData[0][2]?matchesStrictComparable$1(matchData[0][0],matchData[0][1]):function(object){return object===source||baseIsMatch(object,source,matchData)}},baseGet$1=_baseGet;var get_1=function(object,path,defaultValue){var result=null==object?void 0:baseGet$1(object,path);return void 0===result?defaultValue:result},get$2=getDefaultExportFromCjs(get_1);var castPath=_castPath,isArguments=isArguments_1,isArray$3=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$2=_toKey;var baseHasIn=function(object,key){return null!=object&&key in Object(object)},hasPath=function(object,path,hasFunc){for(var index=-1,length=(path=castPath(path,object)).length,result=!1;++index<length;){var key=toKey$2(path[index]);if(!(result=null!=object&&hasFunc(object,key)))break;object=object[key]}return result||++index!=length?result:!!(length=null==object?0:object.length)&&isLength(length)&&isIndex(key,length)&&(isArray$3(object)||isArguments(object))};var baseIsEqual$1=_baseIsEqual,get=get_1,hasIn=function(object,path){return null!=object&&hasPath(object,path,baseHasIn)},isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey;var baseGet=_baseGet;var baseProperty=function(key){return function(object){return null==object?void 0:object[key]}},basePropertyDeep=function(path){return function(object){return baseGet(object,path)}},isKey=_isKey,toKey=_toKey;var baseMatches=_baseMatches,baseMatchesProperty=function(path,srcValue){return isKey$1(path)&&isStrictComparable(srcValue)?matchesStrictComparable(toKey$1(path),srcValue):function(object){var objValue=get(object,path);return void 0===objValue&&objValue===srcValue?hasIn(object,path):baseIsEqual$1(srcValue,objValue,3)}},identity=identity_1,isArray$2=isArray_1,property=function(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)};var _baseIteratee=function(value){return"function"==typeof value?value:null==value?identity:"object"==typeof value?isArray$2(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value):property(value)};var arrayFilter=_arrayFilter,baseFilter=_baseFilter,baseIteratee=_baseIteratee,isArray$1=isArray_1,negate=function(predicate){if("function"!=typeof predicate)throw new TypeError("Expected a function");return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2])}return!predicate.apply(this,args)}};var reject_lodash=getDefaultExportFromCjs((function(collection,predicate){return(isArray$1(collection)?arrayFilter:baseFilter)(collection,negate(baseIteratee(predicate)))})),root=_root,reWhitespace=/\s/;var trimmedEndIndex=function(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););return index},reTrimStart=/^\s+/;var baseTrim=function(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string},isObject$3=isObject_1,isSymbol=isSymbol_1,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;var isObject$2=isObject_1,now=function(){return root.Date.now()},toNumber=function(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject$3(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject$3(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value},nativeMax=Math.max,nativeMin=Math.min;var debounce_1=function(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=void 0,lastInvokeTime=time,result=func.apply(thisArg,args)}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;return void 0===lastCallTime||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject$2(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function(){return void 0===timerId?result:trailingEdge(now())},debounced},debounce$2=getDefaultExportFromCjs(debounce_1),debounce=debounce_1,isObject$1=isObject_1;var throttle$1=getDefaultExportFromCjs((function(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");return isObject$1(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})}));globalThis.l=console.log.bind(console),globalThis.n=val=>err((()=>null!=val),"shr_1140"),globalThis.nn=val=>err((()=>null!==val),"shr_1141"),globalThis.rs=variable=>err((()=>!n(variable)||"function"!=typeof variable&&"string"!=typeof variable?"":shared.resolve_variable(variable)),"shr_1142"),globalThis.rn=variable=>err((()=>!n(variable)||"function"!=typeof variable&&"number"!=typeof variable?1/0:shared.resolve_variable(variable)),"shr_1143"),globalThis.rb=variable=>err((()=>!(!n(variable)||"function"!=typeof variable&&"boolean"!=typeof variable)&&shared.resolve_variable(variable)),"shr_1144"),globalThis.ru=variable=>err((()=>n(variable)?shared.resolve_variable(variable):void 0),"shr_1145");const shared={ensure_els:els=>err((()=>{if(n(els))return els}),"shr_1146"),resolve_variable:variable=>err((()=>"function"==typeof variable?variable():variable),"shr_1147")};globalThis.s=selector=>err((()=>shared.ensure_els(document.querySelector(selector))),"shr_1148"),globalThis.sa=selector=>err((()=>shared.ensure_els(document.querySelectorAll(selector))),"shr_1149"),globalThis.sb=(base_el,selector)=>err((()=>{if(n(base_el))return shared.ensure_els(base_el.querySelector(selector))}),"shr_1150"),globalThis.sab=(base_el,selector)=>err((()=>{const els=n(base_el)?base_el.querySelectorAll(selector):void 0;return shared.ensure_els(els)}),"shr_1151");const X=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.in_service_worker="undefined"==typeof document,this.invisible_chars="​​​​​​​​​​",this.manifest={},this.get_asset_path=()=>__awaiter(this,void 0,void 0,(function*(){if("adonis_app"===env.env){const manifest_path=`${globalThis.location.origin}/assets/manifest.json`,response=yield fetch(manifest_path),manifest=yield response.json();this.manifest=manifest}})),this.all=(els,callback)=>err((()=>{n(els)&&(els instanceof Window||!(els instanceof NodeList||els.length>1)?callback(els):Array.from(els).forEach((el=>{callback(el)})))}),"shr_1152"),this.create=(el_type,cls)=>err((()=>{const el=document.createElement(el_type);return el.className=cls,el}),"shr_1153"),this.append=(parent,child)=>err((()=>{n(parent)&&n(child)&&[1,11].includes(parent.nodeType)&&parent.appendChild(child)}),"shr_1154"),this.as_first=(parent,child)=>err((()=>{n(parent)&&n(child)&&n(parent.parentNode)&&[1,11].includes(parent.nodeType)&&parent.insertBefore(child,parent.firstChild)}),"shr_1155"),this.before=(el_to_insert_before,child)=>err((()=>{n(el_to_insert_before)&&n(child)&&n(el_to_insert_before.parentNode)&&[1,11].includes(child.nodeType)&&el_to_insert_before.before(child)}),"shr_1156"),this.after=(el_to_insert_after,child)=>err((()=>{n(el_to_insert_after)&&n(child)&&n(el_to_insert_after.parentNode)&&[1,11].includes(child.nodeType)&&el_to_insert_after.after(child)}),"shr_1157"),this.remove=els=>err((()=>{this.all(els,(el=>err((()=>{n(el)&&n(el.parentNode)&&1===el.nodeType&&el.parentNode.removeChild(el)}),"shr_1158")))}),"shr_1159"),this.matches=(el,selector)=>err((()=>!(!n(el)||1!==el.nodeType)&&el.matches(selector)),"shr_1160"),this.closest=(el,selector)=>err((()=>{if(n(el)&&1===el.nodeType)return shared.ensure_els(el.closest(selector))}),"shr_1161"),this.add_cls=(els,cls)=>err((()=>{this.all(els,(el=>err((()=>{n(el)&&1===el.nodeType&&el.classList.add(cls)}),"shr_1162")))}),"shr_1163"),this.remove_cls=(els,cls)=>err((()=>{this.all(els,(el=>err((()=>{n(el)&&1===el.nodeType&&el.classList.remove(cls)}),"shr_1164")))}),"shr_1165"),this.move_item=(from,to,arr)=>err((()=>{arr.splice(to,0,arr.splice(from,1)[0])}),"shr_1166"),this.insert_item=(position,items,arr)=>err((()=>[...arr.slice(0,position),...items,...arr.slice(position)]),"shr_1216"),this.remove_item=(i,arr)=>err((()=>{arr.splice(i,1)}),"shr_1167"),this.bind=(els,event,f)=>err((()=>{this.all(els,(el=>err((()=>{n(el.addEventListener)&&el.addEventListener(event,f)}),"shr_1168")))}),"shr_1169"),this.css=(filename,parent,cls)=>err((()=>{if(n(parent)){const cls_final=cls||`${filename}_link`,new_link=this.create("link",cls_final);this.bind(new_link,"load",(()=>{const old_links=sab(parent,`.${cls_final}`);if(n(old_links)){const old_links_arr=[...old_links];old_links_arr.length>1&&(old_links_arr.pop(),old_links_arr.forEach((old_link=>{this.remove(old_link)})))}}));const app_filename="adonis_app"===env.env?this.manifest[`assets/${filename}.css`]:`${filename}.css`;return new_link.href=is_ext?we.runtime.getURL(`${filename}.css`):`${app_filename}`,new_link.setAttribute("rel","stylesheet"),new_link.setAttribute("type","text/css"),parent.appendChild(new_link),new_link}}),"shr_1170"),this.dynamic_css=(parent,cls,css)=>err((()=>{const cls_final=`${cls}_style`,old_style=sb(parent,`.${cls_final}`);n(old_style)&&this.remove(old_style);const new_style=this.create("style",cls_final);return new_style.innerHTML=css,n(parent)&&parent.appendChild(new_style),new_style}),"shr_1171"),this.get_css_val=(el,key)=>err((()=>globalThis.getComputedStyle(el).getPropertyValue(key)),"shr_1172"),this.get_numeric_css_val=(el,key)=>err((()=>parseInt(globalThis.getComputedStyle(el).getPropertyValue(key),10)),"shr_1173"),this.get_float_css_val=(el,key)=>err((()=>parseFloat(globalThis.getComputedStyle(el).getPropertyValue(key))),"shr_1174"),this.str_is_number=val=>err((()=>/^\d+$|^\d+\.\d+$/.test(val)),"shr_1175"),this.delay=delay=>new Promise((resolve=>{err((()=>{globalThis.setTimeout((()=>{resolve()}),delay)}),"shr_1176")})),this.id=()=>err((()=>{const uint32=(n(globalThis.crypto)?globalThis.crypto:require("crypto").webcrypto).getRandomValues(new Uint32Array(1))[0];return Array.from(uint32.toString(16)).map((char=>this.rand_bool()?char.toUpperCase():char)).join("")}),"shr_1177"),this.unique_id=()=>err((()=>(new Date).getTime()+this.id()),"shr_1215"),this.range=(min,max)=>err((()=>Math.floor(Math.random()*(max-min+1))+min),"shr_1178"),this.rand_bool=()=>err((()=>!Math.round(Math.random())),"shr_1179"),this.convert_string_bool=bool=>err((()=>"true"===bool),"shr_1194"),this.range_arr=(end,start=0)=>err((()=>{const arr=[];for(let i=start;i<=end;i+=1)arr.push(i);return arr}),"shr_1217"),this.cls=classes=>err((()=>reject_lodash(classes,(item=>!n(item)||""===item)).join(" ")),"shr_1180"),this.get_prop=(obj,key)=>err((()=>obj[key]),"shr_1181"),this.set_prop=(obj,key,val)=>err((()=>{const updated_obj=obj;return updated_obj[key]=val,updated_obj}),"shr_1182"),this.sanitize_filename=(filename,new_character="_")=>err((()=>filename.replace(/[<>:"/\\|?]/g,new_character)),"shr_1183"),this.convert_blob_to_base64=blob=>new Promise(((resolve,reject)=>{err((()=>{const reader=new FileReader;reader.onerror=reject,reader.onload=()=>{resolve(reader.result)},reader.readAsDataURL(blob)}),"shr_1184")})),this.convert_base64_to_blob=base64=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){const response=yield fetch(base64);return yield response.blob()}))),"shr_1225"),this.chunk_str=(str,len)=>err((()=>{const size=Math.ceil(str.length/len),chunks=Array(size);let offset=0;for(let i=0;i<size;i+=1)chunks[i]=str[n(str.substr)?"substr":"substring"](offset,len),offset+=len;return chunks}),"shr_1288"),this.bytes_to_base64=bytes=>err((()=>Math.ceil(4*bytes/3)),"shr_1289"),this.copy_text=text=>err((()=>{const input=this.create("input","");input.style.position="fixed",input.style.opacity="0",this.append(document.body,input),input.value=text,input.focus(),input.select(),document.execCommand("copy"),this.remove(input)}),"shr_1185"),this.copy_img=img_url=>err((()=>{const selection=globalThis.getSelection();if(n(selection)){selection.removeAllRanges();const img=this.create("img","");img.style.position="fixed",img.style.opacity="0",img.src=img_url,this.append(document.body,img);const range=document.createRange();range.setStartBefore(img),range.setEndAfter(img),range.selectNode(img),selection.addRange(range),document.execCommand("Copy"),this.remove(img)}}),"shr_1186"),this.px=val=>err((()=>`${val}px`),"shr_1187"),this.insert_invisible_chars_in_title=()=>err((()=>{document.title+=this.invisible_chars}),"shr_1188"),this.gcd=(a,b)=>err((()=>0===b?a:this.gcd(b,a%b)),"shr_1257"),this.get_aspect_ratio=(width,height)=>err((()=>{const gcd=this.gcd(width,height);return`${width/gcd}:${height/gcd}`}),"shr_1258"),this.percentage=(partial_val,total_val,round_down=!1)=>err((()=>{const percentage_raw=100*partial_val/total_val;return round_down?Math.floor(percentage_raw):percentage_raw}),"shr_1261"),this.wrap_link_in_a=text=>err((()=>text.replace(/</gi,"$ANGLE_BRACKET_LEFT").replace(/>/gi,"$ANGLE_BRACKET_RIGHT").replace(/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&amp;:/~+#-]*[\w@?^=%&amp;/~+#-])?/gi,'<a class="link" href="$&" target="_blank" rel="noopener noreferrer">$&</a>').replace(/\$ANGLE_BRACKET_LEFT/gi,"&#60").replace(/\$ANGLE_BRACKET_RIGHT/gi,"&#62")),"shr_1294"),this.pastel_color=()=>err((()=>`hsl(${~~(360*Math.random())} 70% 80%)`),"shr_1262"),this.found_old_settings=()=>err((()=>n(data.settings.enable_cut_features)),"shr_1252"),this.prefs_are_filled=()=>err((()=>n(data.settings)&&n(data.settings.prefs)&&n(data.settings.prefs.enable_cut_features)),"shr_1241"),this.camel_to_underscore=string=>err((()=>string.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()),"shr_1304")}async_debounce(f,wait,options={}){const resolve_list=[];let reject_list=[];const debounced=debounce$2(((...args)=>{f(...args).then((result=>{resolve_list.forEach((resolve=>resolve(result))),reject_list=[]})).catch((error=>{resolve_list.forEach((reject=>reject(error))),reject_list=[]}))}),wait,options);return(...args)=>new Promise(((resolve,reject)=>{resolve_list.push(resolve),reject_list.push(reject),debounced(...args)}))}async_throttle(f,wait,options={}){const throttled_f=throttle$1(((resolve,reject,...args)=>{f(...args).then(resolve).catch(reject)}),wait,options);return(...args)=>new Promise(((resolve,reject)=>{throttled_f(resolve,reject,...args)}))}}.get_instance();globalThis.x=X,globalThis.data={settings:{}};var _arrayEach=function(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index<length&&!1!==iteratee(array[index],index,array););return array},copyObject$3=_copyObject,keys$1=keys_1;var _baseAssign=function(object,source){return object&&copyObject$3(source,keys$1(source),object)},copyObject$2=_copyObject,keysIn$2=keysIn_1;var _baseAssignIn=function(object,source){return object&&copyObject$2(source,keysIn$2(source),object)},copyObject$1=_copyObject,getSymbols$1=_getSymbols;var _copySymbols=function(source,object){return copyObject$1(source,getSymbols$1(source),object)},arrayPush=_arrayPush,getPrototype=_getPrototype,getSymbols=_getSymbols,stubArray=stubArray_1,getSymbolsIn$2=Object.getOwnPropertySymbols?function(object){for(var result=[];object;)arrayPush(result,getSymbols(object)),object=getPrototype(object);return result}:stubArray,copyObject=_copyObject,getSymbolsIn$1=getSymbolsIn$2;var _copySymbolsIn=function(source,object){return copyObject(source,getSymbolsIn$1(source),object)},baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=getSymbolsIn$2,keysIn$1=keysIn_1;var _getAllKeysIn=function(object){return baseGetAllKeys(object,keysIn$1,getSymbolsIn)},hasOwnProperty=Object.prototype.hasOwnProperty;var _initCloneArray=function(array){var length=array.length,result=new array.constructor(length);return length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input),result},cloneArrayBuffer$1=_cloneArrayBuffer;var _cloneDataView=function(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer$1(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength)},reFlags=/\w*$/;var _cloneRegExp=function(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));return result.lastIndex=regexp.lastIndex,result},symbolProto=_Symbol?_Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;var cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=function(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{}},cloneTypedArray=_cloneTypedArray;var _initCloneByTag=function(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case"[object ArrayBuffer]":return cloneArrayBuffer(object);case"[object Boolean]":case"[object Date]":return new Ctor(+object);case"[object DataView]":return cloneDataView(object,isDeep);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return cloneTypedArray(object,isDeep);case"[object Map]":case"[object Set]":return new Ctor;case"[object Number]":case"[object String]":return new Ctor(object);case"[object RegExp]":return cloneRegExp(object);case"[object Symbol]":return cloneSymbol(object)}},getTag$2=_getTag,isObjectLike$1=isObjectLike_1;var baseIsMap=function(value){return isObjectLike$1(value)&&"[object Map]"==getTag$2(value)},baseUnary$1=_baseUnary,nodeIsMap=_nodeUtilExports&&_nodeUtilExports.isMap,isMap_1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap,getTag$1=_getTag,isObjectLike=isObjectLike_1;var baseIsSet=function(value){return isObjectLike(value)&&"[object Set]"==getTag$1(value)},baseUnary=_baseUnary,nodeIsSet=_nodeUtilExports&&_nodeUtilExports.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,Stack=_Stack,arrayEach=_arrayEach,assignValue=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray=isArray_1,isBuffer=isBufferExports,isMap=isMap_1,isObject=isObject_1,isSet=isSet$1,keys=keys_1,keysIn=keysIn_1,cloneableTags={};cloneableTags["[object Arguments]"]=cloneableTags["[object Array]"]=cloneableTags["[object ArrayBuffer]"]=cloneableTags["[object DataView]"]=cloneableTags["[object Boolean]"]=cloneableTags["[object Date]"]=cloneableTags["[object Float32Array]"]=cloneableTags["[object Float64Array]"]=cloneableTags["[object Int8Array]"]=cloneableTags["[object Int16Array]"]=cloneableTags["[object Int32Array]"]=cloneableTags["[object Map]"]=cloneableTags["[object Number]"]=cloneableTags["[object Object]"]=cloneableTags["[object RegExp]"]=cloneableTags["[object Set]"]=cloneableTags["[object String]"]=cloneableTags["[object Symbol]"]=cloneableTags["[object Uint8Array]"]=cloneableTags["[object Uint8ClampedArray]"]=cloneableTags["[object Uint16Array]"]=cloneableTags["[object Uint32Array]"]=!0,cloneableTags["[object Error]"]=cloneableTags["[object Function]"]=cloneableTags["[object WeakMap]"]=!1;var _baseClone=function baseClone$1(value,bitmask,customizer,key,object,stack){var result,isDeep=1&bitmask,isFlat=2&bitmask,isFull=4&bitmask;if(customizer&&(result=object?customizer(value,key,object,stack):customizer(value)),void 0!==result)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return copyArray(value,result)}else{var tag=getTag(value),isFunc="[object Function]"==tag||"[object GeneratorFunction]"==tag;if(isBuffer(value))return cloneBuffer(value,isDeep);if("[object Object]"==tag||"[object Arguments]"==tag||isFunc&&!object){if(result=isFlat||isFunc?{}:initCloneObject(value),!isDeep)return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value))}else{if(!cloneableTags[tag])return object?value:{};result=initCloneByTag(value,tag,isDeep)}}stack||(stack=new Stack);var stacked=stack.get(value);if(stacked)return stacked;stack.set(value,result),isSet(value)?value.forEach((function(subValue){result.add(baseClone$1(subValue,bitmask,customizer,subValue,value,stack))})):isMap(value)&&value.forEach((function(subValue,key){result.set(key,baseClone$1(subValue,bitmask,customizer,key,value,stack))}));var props=isArr?void 0:(isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys)(value);return arrayEach(props||value,(function(subValue,key){props&&(subValue=value[key=subValue]),assignValue(result,key,baseClone$1(subValue,bitmask,customizer,key,value,stack))})),result},baseClone=_baseClone;var cloneDeep$1=getDefaultExportFromCjs((function(value){return baseClone(value,5)})),baseIsEqual=_baseIsEqual;var isEqual$1=getDefaultExportFromCjs((function(value,other){return baseIsEqual(value,other)}));const Settings$1=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.set=({settings:settings,run_in_action:run_in_action=run_in_action_placeholder})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){let settings_final;if(x.prefs_are_filled()&&n(settings))settings_final=settings;else{const default_settings=yield ext.send_msg_resp({msg:"get_defaults"});settings_final=default_settings}run_in_action((()=>err((()=>{data.settings.prefs.home_btn_is_visible=settings_final.prefs.home_btn_is_visible}),"shr_1364")))}))),"shr_1365"),this.set_from_storage=({to_js:to_js,run_in_action:run_in_action=run_in_action_placeholder,set_data:set_data=Cache.set_data}={})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){if(!ext.ext_context_invalidated()){const old_settings=cloneDeep$1(data.settings);yield set_data();return x.prefs_are_filled()?isEqual$1(n(to_js)?to_js(data.settings):data.settings,n(to_js)?to_js(old_settings):old_settings)||(yield this.set({settings:data.settings,run_in_action:run_in_action})):yield this.set({run_in_action:run_in_action}),data.settings}}))),"shr_1367")}}.get_instance(),run_in_action_placeholder=callback=>err((()=>{callback()}),"shr_1234");const Schema=class{constructor(){this.transform=({data_obj:data_obj,version:version,transform_items:transform_items,keys_to_remove:keys_to_remove=[],force:force=!1,run_in_action:run_in_action=run_in_action_placeholder})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){if(version!==ext.get_app_version()||force){const properties_to_remove=[];return transform_items.forEach((transform_item=>err((()=>{!transform_item.update_existing_val&&n(transform_item.new_key)&&!n(data_obj[transform_item.new_key])&&(transform_item.create_property_if_it_doesnt_exist||!transform_item.create_property_if_it_doesnt_exist&&n(transform_item.old_key)&&n(data_obj[transform_item.old_key]))&&(n(transform_item.new_val)?run_in_action((()=>err((()=>{n(transform_item)&&n(transform_item.new_key)&&(data_obj[transform_item.new_key]=transform_item.new_val)}),"shr_1229"))):n(transform_item.old_key)&&run_in_action((()=>err((()=>{n(transform_item)&&n(transform_item.new_key)&&n(transform_item.old_key)&&(data_obj[transform_item.new_key]=data_obj[transform_item.old_key])}),"shr_1230")))),transform_item.update_existing_val&&n(transform_item.old_key)&&n(transform_item.new_val)&&(data_obj[transform_item.old_key]=transform_item.new_val),transform_item.update_existing_val||!n(transform_item.old_key)||properties_to_remove.includes(transform_item.old_key)||properties_to_remove.push(transform_item.old_key)}),"shr_1227"))),properties_to_remove.forEach((property_to_remove=>err((()=>{run_in_action((()=>err((()=>{delete data_obj[property_to_remove]}),"shr_1231")))}),"shr_1228"))),keys_to_remove.forEach((key_to_remove=>err((()=>{run_in_action((()=>err((()=>{delete data_obj[key_to_remove]}),"shr_1231")))}),"shr_1260"))),data_obj}return data_obj}))),"shr_1299"),this.replace=({settings:settings})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){yield ext.storage_set(settings,!0)}))),"shr_1236"),this.get_version_legacy=({settings:settings})=>err((()=>n(settings.prefs)?settings.prefs.version:settings.version),"shr_1300")}static get_instance(){return this.instance||(this.instance=new this)}}.get_instance();const Visibility=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.display=()=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){we.tabs.create({url:we.runtime.getURL("announcement.html")})}))),"shr_1231")}}.get_instance();const Colors=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.default_colors=["rgb(255 255 255)","rgb(0 0 0)","rgb(255 0 0)","rgb(183 28 28)","rgb(244 67 54)","rgb(245 0 87)","rgb(136 14 79)","rgb(240 98 146)","rgb(170 0 255)","rgb(74 20 140)","rgb(156 39 176)","rgb(98 0 234)","rgb(103 58 183)","rgb(48 79 254)","rgb(63 81 181)","rgb(0 176 255)","rgb(24 255 255)","rgb(29 233 182)","rgb(0 150 136)","rgb(0 200 83)","rgb(27 94 32)","rgb(100 221 23)","rgb(174 234 0)","rgb(255 214 0)","rgb(255 235 59)","rgb(255 111 0)","rgb(255 213 79)","rgb(255 152 0)","rgb(221 44 0)","rgb(191 54 12)"]}}.get_instance();const CssVars=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.get=({name:name,el:el})=>err((()=>x.get_css_val(n(el)?el:document.documentElement,`--${name}`)),"shr_1089"),this.set_var=({roots:roots,name:name,val:val})=>err((()=>{roots.forEach((root=>err((()=>{root.style.setProperty(`--${name}`,val)}),"shr_1090")))}),"shr_1091"),this.set_transition_vars=({roots:roots,transition_duration:transition_duration})=>err((()=>{this.set_var({roots:roots,name:"transition_duration",val:transition_duration}),this.set_var({roots:roots,name:"transition",val:`all ${+transition_duration<1?1:transition_duration}ms ease-out`}),this.set_var({roots:roots,name:"animation",val:`${+transition_duration<1?1:transition_duration}ms ease-out 1 forwards`})}),"shr_1092")}}.get_instance();const Cache=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.get_data=({set_from_storage:set_from_storage=!1}={})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){const session_data=yield we.storage.session.get(),cache_is_filled=n(session_data.settings);let data_obj=cache_is_filled&&!set_from_storage?session_data:yield ext.storage_get();return set_from_storage&&(data_obj=Settings.apply_unchanged_prefs({settings:data_obj})),!cache_is_filled||set_from_storage?(yield this.set_settings({settings:data_obj}),{settings:data_obj}):data_obj}))),"shr_1123"),this.set_data=({run_in_action:run_in_action=run_in_action_placeholder}={})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){const session=yield this.get_data();run_in_action((()=>err((()=>{Object.assign(data,session)}),"shr_1244")))}))),"shr_1243"),this.set_settings=({settings:settings={},run_in_action:run_in_action=run_in_action_placeholder}={})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){yield we.storage.session.set({settings:settings}),run_in_action((()=>err((()=>{data.settings=settings}),"shr_1245")))}))),"shr_1124"),this.set=({key:key,val:val,run_in_action:run_in_action=run_in_action_placeholder})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){yield we.storage.session.set({[key]:val}),run_in_action((()=>err((()=>{data[key]=val}),"shr_1248")))}))),"shr_1249"),this.get=({key:key})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){return n(data[key])?data[key]:(yield we.storage.session.get(key))[key]}))),"shr_1250")}}.get_instance();const Settings=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.apply_unchanged_prefs=({settings:settings,additional_unchanged_prefs:additional_unchanged_prefs={}})=>err((()=>(settings.prefs=Object.assign(Object.assign(Object.assign({},settings.prefs),{current_section:data.settings.prefs.current_section,color_help_is_visible:data.settings.prefs.color_help_is_visible}),additional_unchanged_prefs),settings)),"shr_1253")}}.get_instance();let Class$6=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.react_sync=({changes:changes,callback:callback})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){!isEmpty$1(data.settings)&&Object.keys(changes).some((key=>!isEqual$1(data.settings[key],changes[key].newValue)&&n(changes[key].newValue)))&&(yield Cache.get_data({set_from_storage:!0}),yield callback())}))),"shr_1240")}};const Sync=Class$6.get_instance();const State=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.cls="no_tr",this.enable=({el:el=document.head}={el:document.head})=>err((()=>{x.css(this.cls,el)}),"shr_1120"),this.disable=({el:el=document.head}={el:document.head})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){yield x.delay(500);const tr_link=sb(el,`.${this.cls}_link`);x.remove(tr_link)}))),"shr_1121")}}.get_instance();const ServiceWorker=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.make_persistent_intervals=[],this.persistent_service_worker=!1,this.make_persistent=()=>__awaiter(this,void 0,void 0,(function*(){return err_async((()=>__awaiter(this,void 0,void 0,(function*(){this.clear_make_persistent_intervals(),this.make_persistent_intervals.push(setInterval((()=>{err_async((()=>__awaiter(this,void 0,void 0,(function*(){data.settings.prefs.persistent_service_worker?ext.get_active_tab():this.clear_make_persistent_intervals()}))),"shr_1284")}),25e3))}))),"shr_1285")})),this.clear_make_persistent_intervals=()=>err((()=>{const make_persistent_intervals=[...this.make_persistent_intervals];this.make_persistent_intervals=[],make_persistent_intervals.forEach((make_persistent_interval=>err((()=>{clearInterval(make_persistent_interval)}),"shr_1287")))}),"shr_1286")}}.get_instance();const Theme=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.set=({name:name,el:el=document.head,additional_theme_callback:additional_theme_callback})=>err_async((()=>__awaiter(this,void 0,void 0,(function*(){State.enable({el:el});const name_final=`${name}_theme`,loading_screen_root_el=s('div[class^="root"][class*="loading_screen"]');x.css(name_final,el,"theme_link"),n(loading_screen_root_el)&&n(loading_screen_root_el.shadowRoot)&&x.css(name_final,loading_screen_root_el.shadowRoot,"theme_link"),n(additional_theme_callback)&&additional_theme_callback({name:name,el:el}),yield State.disable({el:el})}))),"shr_1129")}}.get_instance();const Title=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.get=()=>err((()=>{const title_el=s("title");return n(title_el)&&n(title_el.textContent)?title_el.textContent:""}),"shr_1230"),this.set=()=>err((()=>{const title_el=s("title");if(n(title_el)){const title=ext.msg(`${page}_title_text`);title_el.textContent="announcement"===page?`${we.runtime.getManifest().name} - ${title}`:title}}),"shr_1229")}}.get_instance();const Utils=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.to_object=({arr:arr,section:section,subsection:subsection})=>err((()=>{const obj_final={};return arr.forEach((item=>err((()=>{if(obj_final[item.name]=item,section&&(obj_final[item.name].section=section),subsection&&(obj_final[item.name].subsection=subsection),n(obj_final[item.name].inputs)){const innner_inputs=[...obj_final[item.name].inputs];obj_final[item.name].inputs=[],innner_inputs.forEach(((item_2,i)=>{obj_final[item.name].inputs[i]=item_2,section&&(obj_final[item.name].inputs[i].section=section),subsection&&(obj_final[item.name].inputs[i].subsection=subsection),"form"===item.type&&(obj_final[item.name].inputs[i].form=item.name)}))}}),"shr_1136"))),obj_final}),"shr_1137")}}.get_instance();const Viewport=class{static get_instance(){return this.instance||(this.instance=new this)}constructor(){this.get_dim=({dim:dim})=>err((()=>"width"===dim?document.documentElement.clientWidth:document.documentElement.clientHeight),"shr_1139")}}.get_instance();exports.Cache=Cache,exports.Class=Class$6,exports.Colors=Colors,exports.CssVars=CssVars,exports.Schema=Schema,exports.ServiceWorker=ServiceWorker,exports.Settings=Settings$1,exports.Settings$1=Settings,exports.State=State,exports.Sync=Sync,exports.Theme=Theme,exports.Title=Title,exports.Utils=Utils,exports.Viewport=Viewport,exports.Visibility=Visibility,exports.X=X,exports._Set=_Set,exports._SetCache=_SetCache,exports._Stack=_Stack,exports._Symbol=_Symbol,exports.__asyncValues=function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,m=o[Symbol.asyncIterator];return m?m.call(o):(o=__values(o),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(n){i[n]=o[n]&&function(v){return new Promise((function(resolve,reject){(function(resolve,reject,d,v){Promise.resolve(v).then((function(v){resolve({value:v,done:d})}),reject)})(resolve,reject,(v=o[n](v)).done,v.value)}))}}},exports.__awaiter=__awaiter,exports._arrayPush=_arrayPush,exports._assignValue=_assignValue,exports._baseAssignValue=_baseAssignValue,exports._baseFor=_baseFor,exports._baseGet=_baseGet,exports._baseGetTag=_baseGetTag,exports._baseIteratee=_baseIteratee,exports._cacheHas=_cacheHas,exports._castPath=_castPath,exports._cloneBufferExports=_cloneBufferExports,exports._cloneTypedArray=_cloneTypedArray,exports._copyArray=_copyArray,exports._copyObject=_copyObject,exports._defineProperty=_defineProperty,exports._getPrototype=_getPrototype,exports._initCloneObject=_initCloneObject,exports._isIndex=_isIndex,exports._setToArray=_setToArray,exports._toKey=_toKey,exports.commonjsGlobal=commonjsGlobal,exports.eq_1=eq_1,exports.get=get$2,exports.getDefaultExportFromCjs=getDefaultExportFromCjs,exports.identity_1=identity_1,exports.isArguments_1=isArguments_1,exports.isArrayLike_1=isArrayLike_1,exports.isArray_1=isArray_1,exports.isBufferExports=isBufferExports,exports.isEmpty=isEmpty$1,exports.isFunction_1=isFunction_1,exports.isObjectLike_1=isObjectLike_1,exports.isObject_1=isObject_1,exports.isSymbol_1=isSymbol_1,exports.isTypedArray_1=isTypedArray_1,exports.keysIn_1=keysIn_1,exports.prevent_default=e=>err((()=>{e.preventDefault()}),"shr_1111"),exports.run_in_action_placeholder=run_in_action_placeholder,exports.stop_propagation=e=>err((()=>{e.stopPropagation()}),"shr_1218");
package/globals.d.ts CHANGED
@@ -35,7 +35,7 @@ declare const show_notification: (
35
35
  obj?: import('./ts/error_modules_clean/error/interfaces/show_error').ShowError,
36
36
  ) => void;
37
37
  declare const show_unable_to_access_settings_error: (
38
- obj: import('./ts/error_modules_clean/error/interfaces/show_unable_to_access_settings_error').ShowUnableToAccessSettingsError,
38
+ obj?: import('./ts/error_modules_clean/error/interfaces/show_unable_to_access_settings_error').ShowUnableToAccessSettingsError,
39
39
  ) => void;
40
40
  declare const err: <T1>(
41
41
  f: () => T1,
package/inputs.js CHANGED
@@ -2,4 +2,4 @@
2
2
  * Copyright 2024
3
3
  */
4
4
 
5
- "use strict";var title=require("./chunk-title.js");require("react");var viewport=require("./chunk-viewport.js");require("react-dom"),require("./chunk-merge.js");var index$7=Object.freeze({__proto__:null,Btn:title.Btn,Checkbox:title.Checkbox,File:title.File,Form:title.Form,Group:title.Group,Help:title.Help,HelpBtn:title.HelpBtn,Hr:title.Hr,IconBtn:title.IconBtn,InputError:title.InputError,InputItem:title.InputItem,Label:title.Label,LabelInInputItem:title.LabelInInputItem,Link:title.Link,LinkBtn:title.LinkBtn,LinkIconBtn:title.LinkIconBtn,Range:title.Range,Section:title.Section,SectionBtn:title.SectionBtn,SectionContent:title.SectionContent,Select:title.Select,Text:title.Text,TextBtn:title.TextBtn,Textarea:title.Textarea,UploadBox:title.UploadBox});class Range extends title.InputBase{constructor(obj){super(obj),this.type="range",this.min=0,this.max=100,this.step=1,this.displayed_val=title.computedFn((function({input:input}){return n(input.step)?Math.round(title.Val.access({input:input})/input.step):0})),this.lower_fill_percentage=title.computedFn((function({input:input}){return 100*input.displayed_val({input:input})/(n(input.max)&&n(input.step)?input.max/input.step:0)})),this.lower_fill_width=title.computedFn((function({input:input}){return`${input.lower_fill_percentage({input:input})}%`})),this.help_is_present_cls=title.computedFn((function({input:input}){return input.include_help?"help_is_present":""})),Object.assign(this,obj)}}class Form extends title.InputBase{constructor(obj){super(obj),this.type="form",Object.assign(this,obj),this.action=obj.action,this.inputs=obj.inputs}}class Group extends title.InputBase{constructor(obj){super(obj),this.type="group",Object.assign(this,obj),this.inputs=obj.inputs}}class Textarea extends title.InputBase{constructor(obj){super(obj),this.type="textarea",Object.assign(this,obj)}}class UploadBox extends title.InputBase{constructor(obj){super(obj),this.type="upload_box",this.multiple=!1,this.accept=".png,.jpg,.jpeg,.gif",this.loading_msg_is_visible=!1,this.error_msg_is_visible=!1,this.is_in_hover_state=!1,this.drag_counter=0,this.filenames_are_visible=!1,this.filenames="",this.clear_val_on_upload=!0,this.loading_msg_visibility_cls=title.computedFn((function(){return this.loading_msg_is_visible?"":"none"})),this.error_msg_visibility_cls=title.computedFn((function(){return this.error_msg_is_visible?"":"none"})),this.loading_cls=title.computedFn((function(){return this.loading_msg_is_visible?"loading":""})),this.filenames_final=title.computedFn((function(){return rb(this.filenames_are_visible)&&n(this.filenames)?this.filenames:""})),title.makeObservable(this,{loading_msg_is_visible:title.observable,error_msg_is_visible:title.observable,is_in_hover_state:title.observable,filenames:title.observable}),Object.assign(this,obj)}}var index$6=Object.freeze({__proto__:null,Btn:title.Btn$1,Checkbox:title.Checkbox$1,File:title.File$1,Form:Form,Group:Group,Hr:class{constructor(obj){this.type="hr",Object.assign(this,obj),this.name=obj.name}},IconBtn:title.IconBtn$1,InputBase:title.InputBase,Label:class{constructor(obj){this.type="label",Object.assign(this,obj),this.name=obj.name}},Link:class{constructor(obj){this.type="link",this.label_type="text",this.Svg="",this.target="_blank",this.force_resolve=!1,this.text=()=>err((()=>ext.msg(`${this.name_clean}_link_text`)||ext.msg(`${this.name_clean}_${this.browser}_link_text`)),"shr_1069"),this.href_final=()=>err((()=>{const href=n(this.href)?this.href:ext.msg(`${this.name_clean}_link_href`)||ext.msg(`${this.name_clean}_${this.browser}_link_href`)||ext.msg(`offer_${this.name_clean}_${this.browser}_link_href`);return n(href)?href:""}),"shr_1070"),this.show_link=()=>err((()=>{const link_is_cross_browser=!n(this.browser),link_browser_is_the_same_as_env_browser=this.browser===env.browser;return link_is_cross_browser||!link_browser_is_the_same_as_env_browser||n(this.force_resolve)&&this.force_resolve}),"shr_1071"),Object.assign(this,obj),this.name=obj.name,this.name_clean=obj.name.replace(/i\d+i/,"")}},LinkBtn:title.LinkBtn$1,Option:title.Option,Range:Range,Section:title.Section$1,Select:title.Select$1,Text:title.Text$1,Textarea:Textarea,UploadBox:UploadBox});const color_picker_state={is_initialized:!1,is_visible:!1,is_closed:!0};class Color extends title.InputBase{constructor(obj){super(obj),this.type="color",this.include_visualization=!0,this.include_palette_label=!1,this.palette_is_visible=!1,this.palette_is_closed=!0,this.palette_width="0",this.palette_height="0",this.color_picker_width="0",this.color_picker_height="0",this.include_remove_color_btn=!0,this.include_ok_btn=!1,this.state=Object.assign({main:color_picker_state},Array(title.Color.palette_color_amount).fill(color_picker_state).reduce(((accumulator,val,i)=>(accumulator[i]=val,accumulator)),{})),this.is_palette_color=({i:i})=>err((()=>"number"==typeof i),"shr_1030"),this.visualization_cls=({i:i})=>err((()=>"main"===i?"visualization":""),"shr_1031"),this.palette_visualization_cls=({i:i})=>err((()=>"main"===i?"":"palette_visualization"),"shr_1032"),this.inset_border_cls=({i:i})=>err((()=>"main"===i?"":"inset_border"),"shr_1033"),this.el_to_show_type=({i:i})=>err((()=>"main"===i?"color_picker_or_palette":"color_picker"),"shr_1034"),this.color_picker_is_visible=title.computedFn((function({i:i}){return n(this.state)&&this.state[i].is_visible})),this.palette_w_is_visible=title.computedFn((function(){return!this.include_visualization||this.palette_is_visible})),this.visualization_outline_opened=title.computedFn((function({i:i}){return"main"===i&&this.palette_is_visible||n(this.state)&&this.state[i].is_visible?"opened":""})),this.visualization_outline_selected=title.computedFn((function({i:i}){return this.is_palette_color({i:i})&&i===(n(this.val_accessor)?viewport.get(data,this.val_accessor):data.settings.prefs[this.name])?"selected":""})),this.palette_visualization_outline_selected=title.computedFn((function({i:i}){return i===data.settings.prefs.selected_palette_color?"selected":""})),this.color_picker_is_closed_visibility_cls=title.computedFn((function({i:i}){return n(this.state)&&this.state[i].is_closed?"none":""})),this.palette_is_closed_visibility_cls=title.computedFn((function(){return this.palette_is_closed?"none":""})),this.color_help_visibility_cls=title.computedFn((function(){return title.Visibility$1.color_help_is_visible?"":"none"})),title.makeObservable(this,{palette_is_visible:title.observable,palette_is_closed:title.observable,palette_width:title.observable,palette_height:title.observable,color_picker_width:title.observable,color_picker_height:title.observable,state:title.observable}),Object.assign(this,obj),this.select_palette_color_callback=obj.select_palette_color_callback,this.remove_color_callback=obj.remove_color_callback,this.restore_default_palette_callback=obj.restore_default_palette_callback,this.hide_color_help_callback=obj.hide_color_help_callback}}var index$5=Object.freeze({__proto__:null,Color:Color}),index$4=Object.freeze({__proto__:null,Help:title.Help$1,InputError:title.InputError$1,InputWidth:title.InputWidth,LabelInInputItem:title.LabelInInputItem$1,NestedInput:title.NestedInput,Text:title.Text$2,UploadBox:title.UploadBox$1,Val:title.Val}),index$3=Object.freeze({__proto__:null,Color:title.Color,Visibility:title.Visibility$1}),index$2=Object.freeze({__proto__:null,ColorPicker:title.ColorPicker,Position:title.Position}),index$1=Object.freeze({__proto__:null}),index=Object.freeze({__proto__:null});exports.c_inputs=index$7,exports.d_color=index$3,exports.d_inputs=index$4,exports.i_color=index,exports.i_inputs=index$1,exports.o_color=index$5,exports.o_inputs=index$6,exports.s_color=index$2;
5
+ "use strict";var title=require("./chunk-title.js");require("react");var viewport=require("./chunk-viewport.js");require("react-dom"),require("./chunk-merge.js");var index$7=Object.freeze({__proto__:null,Btn:title.Btn,Checkbox:title.Checkbox,File:title.File,Form:title.Form,Group:title.Group,Help:title.Help,HelpBtn:title.HelpBtn,Hr:title.Hr,IconBtn:title.IconBtn,InputError:title.InputError,InputItem:title.InputItem,Label:title.Label,LabelInInputItem:title.LabelInInputItem,Link:title.Link,LinkBtn:title.LinkBtn,LinkIconBtn:title.LinkIconBtn,Range:title.Range,Section:title.Section,SectionBtn:title.SectionBtn,SectionContent:title.SectionContent,Select:title.Select,Text:title.Text,TextBtn:title.TextBtn,Textarea:title.Textarea,UploadBox:title.UploadBox});class Range extends title.InputBase{constructor(obj){super(obj),this.type="range",this.min=0,this.max=100,this.step=1,this.displayed_val=title.computedFn((function({input:input}){return n(input.step)?Math.round(title.Val.access({input:input})/input.step):0})),this.lower_fill_percentage=title.computedFn((function({input:input}){return 100*input.displayed_val({input:input})/(n(input.max)&&n(input.step)?input.max/input.step:0)})),this.lower_fill_width=title.computedFn((function({input:input}){return`${input.lower_fill_percentage({input:input})}%`})),this.help_is_present_cls=title.computedFn((function({input:input}){return input.include_help?"help_is_present":""})),Object.assign(this,obj)}}class Form extends title.InputBase{constructor(obj){super(obj),this.type="form",Object.assign(this,obj),this.action=obj.action,this.inputs=obj.inputs}}class Group extends title.InputBase{constructor(obj){super(obj),this.type="group",Object.assign(this,obj),this.inputs=obj.inputs}}class Textarea extends title.InputBase{constructor(obj){super(obj),this.type="textarea",Object.assign(this,obj)}}class UploadBox extends title.InputBase{constructor(obj){super(obj),this.type="upload_box",this.multiple=!1,this.accept=".png,.jpg,.jpeg,.gif",this.loading_msg_is_visible=!1,this.error_msg_is_visible=!1,this.is_in_hover_state=!1,this.drag_counter=0,this.filenames_are_visible=!1,this.filenames="",this.clear_val_on_upload=!0,this.loading_msg_visibility_cls=title.computedFn((function(){return this.loading_msg_is_visible?"":"none"})),this.error_msg_visibility_cls=title.computedFn((function(){return this.error_msg_is_visible?"":"none"})),this.loading_cls=title.computedFn((function(){return this.loading_msg_is_visible?"loading":""})),this.filenames_final=title.computedFn((function(){return rb(this.filenames_are_visible)&&n(this.filenames)?this.filenames:""})),title.makeObservable(this,{loading_msg_is_visible:title.observable,error_msg_is_visible:title.observable,is_in_hover_state:title.observable,filenames:title.observable}),Object.assign(this,obj)}}var index$6=Object.freeze({__proto__:null,Btn:title.Btn$1,Checkbox:title.Checkbox$1,File:title.File$1,Form:Form,Group:Group,Hr:class{constructor(obj){this.type="hr",Object.assign(this,obj),this.name=obj.name}},IconBtn:title.IconBtn$1,InputBase:title.InputBase,Label:class{constructor(obj){this.type="label",Object.assign(this,obj),this.name=obj.name}},Link:class{constructor(obj){this.type="link",this.label_type="text",this.Svg="",this.target="_blank",this.force_resolve=!1,this.text=()=>err((()=>ext.msg(`${this.name_clean}_link_text`)||ext.msg(`${this.name_clean}_${this.browser}_link_text`)),"shr_1069"),this.href_final=()=>err((()=>{const href=n(this.href)?this.href:ext.msg(`${this.name_clean}_link_href`)||ext.msg(`${this.name_clean}_${this.browser}_link_href`)||ext.msg(`offer_${this.name_clean}_${this.browser}_link_href`);return n(href)?href:""}),"shr_1070"),this.show_link=()=>err((()=>{const link_is_cross_browser=!n(this.browser),link_browser_is_the_same_as_env_browser=this.browser===env.browser;return link_is_cross_browser||!link_browser_is_the_same_as_env_browser||n(this.force_resolve)&&this.force_resolve}),"shr_1071"),Object.assign(this,obj),this.name=obj.name,this.name_clean=obj.name.replace(/i\d+i/,"")}},LinkBtn:title.LinkBtn$1,Option:title.Option,Range:Range,Section:title.Section$1,Select:title.Select$1,Text:title.Text$1,Textarea:Textarea,UploadBox:UploadBox});const color_picker_state={is_initialized:!1,is_visible:!1,is_closed:!0};class Color extends title.InputBase{constructor(obj){super(obj),this.type="color",this.include_visualization=!0,this.include_palette_label=!1,this.palette_is_visible=!1,this.palette_is_closed=!0,this.palette_width="0",this.palette_height="0",this.color_picker_width="0",this.color_picker_height="0",this.include_remove_color_btn=!1,this.include_ok_btn=!1,this.state=Object.assign({main:color_picker_state},Array(title.Color.palette_color_amount).fill(color_picker_state).reduce(((accumulator,val,i)=>(accumulator[i]=val,accumulator)),{})),this.is_palette_color=({i:i})=>err((()=>"number"==typeof i),"shr_1030"),this.visualization_cls=({i:i})=>err((()=>"main"===i?"visualization":""),"shr_1031"),this.palette_visualization_cls=({i:i})=>err((()=>"main"===i?"":"palette_visualization"),"shr_1032"),this.inset_border_cls=({i:i})=>err((()=>"main"===i?"":"inset_border"),"shr_1033"),this.el_to_show_type=({i:i})=>err((()=>"main"===i?"color_picker_or_palette":"color_picker"),"shr_1034"),this.color_picker_is_visible=title.computedFn((function({i:i}){return n(this.state)&&this.state[i].is_visible})),this.palette_w_is_visible=title.computedFn((function(){return!this.include_visualization||this.palette_is_visible})),this.visualization_outline_opened=title.computedFn((function({i:i}){return"main"===i&&this.palette_is_visible||n(this.state)&&this.state[i].is_visible?"opened":""})),this.visualization_outline_selected=title.computedFn((function({i:i}){return this.is_palette_color({i:i})&&i===(n(this.val_accessor)?viewport.get(data,this.val_accessor):data.settings.prefs[this.name])?"selected":""})),this.palette_visualization_outline_selected=title.computedFn((function({i:i}){return i===data.settings.prefs.selected_palette_color?"selected":""})),this.color_picker_is_closed_visibility_cls=title.computedFn((function({i:i}){return n(this.state)&&this.state[i].is_closed?"none":""})),this.palette_is_closed_visibility_cls=title.computedFn((function(){return this.palette_is_closed?"none":""})),this.color_help_visibility_cls=title.computedFn((function(){return title.Visibility$1.color_help_is_visible?"":"none"})),title.makeObservable(this,{palette_is_visible:title.observable,palette_is_closed:title.observable,palette_width:title.observable,palette_height:title.observable,color_picker_width:title.observable,color_picker_height:title.observable,state:title.observable}),Object.assign(this,obj),this.select_palette_color_callback=obj.select_palette_color_callback,this.remove_color_callback=obj.remove_color_callback,this.restore_default_palette_callback=obj.restore_default_palette_callback,this.hide_color_help_callback=obj.hide_color_help_callback}}var index$5=Object.freeze({__proto__:null,Color:Color}),index$4=Object.freeze({__proto__:null,Help:title.Help$1,InputError:title.InputError$1,InputWidth:title.InputWidth,LabelInInputItem:title.LabelInInputItem$1,NestedInput:title.NestedInput,Text:title.Text$2,UploadBox:title.UploadBox$1,Val:title.Val}),index$3=Object.freeze({__proto__:null,Color:title.Color,Visibility:title.Visibility$1}),index$2=Object.freeze({__proto__:null,ColorPicker:title.ColorPicker,Position:title.Position}),index$1=Object.freeze({__proto__:null}),index=Object.freeze({__proto__:null});exports.c_inputs=index$7,exports.d_color=index$3,exports.d_inputs=index$4,exports.i_color=index,exports.i_inputs=index$1,exports.o_color=index$5,exports.o_inputs=index$6,exports.s_color=index$2;
@@ -115,8 +115,10 @@ const shared_config = ({
115
115
  light_theme: path.join(paths.themes, 'light_theme.scss'),
116
116
  dark_theme: path.join(paths.themes, 'dark_theme.scss'),
117
117
  very_dark_theme: path.join(paths.themes, 'very_dark_theme.scss'),
118
- lavender_theme: path.join(paths.themes, 'lavender_theme.scss'),
118
+ clover_theme: path.join(paths.themes, 'clover_theme.scss'),
119
119
  aqua_theme: path.join(paths.themes, 'aqua_theme.scss'),
120
+ lavender_theme: path.join(paths.themes, 'lavender_theme.scss'),
121
+ ruby_theme: path.join(paths.themes, 'ruby_theme.scss'),
120
122
  },
121
123
  output: {
122
124
  filename: '[name].js',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loftyshaky/shared",
3
3
  "description": "-",
4
- "version": "2.2.0",
4
+ "version": "2.4.0",
5
5
  "author": "loftyshaky",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
- .ext_version {
2
- position: relative;
3
- bottom: -10px;
4
- right: -26px;
5
- float: right;
6
- font-size: 14px;
7
- }
1
+ .ext_version {
2
+ position: relative;
3
+ bottom: -10px;
4
+ right: -26px;
5
+ float: right;
6
+ font-size: 14px;
7
+ }
@@ -1,18 +1,18 @@
1
- html,
2
- .body {
3
- height: 100%;
4
- }
5
-
6
- .main {
7
- padding: $main_margin_2;
8
- padding-left: $main_margin_2;
9
- display: block;
10
- height: calc(100vh - #{$main_margin_4});
11
- }
12
-
13
- .main_2 {
14
- display: flex;
15
- height: calc(100vh - $main_margin_4);
16
- max-width: 1366px - $main_margin_2 + 2px;
17
- margin: auto;
18
- }
1
+ html,
2
+ .body {
3
+ height: 100%;
4
+ }
5
+
6
+ .main {
7
+ padding: $main_margin_2;
8
+ padding-left: $main_margin_2;
9
+ display: block;
10
+ height: calc(100vh - #{$main_margin_4});
11
+ }
12
+
13
+ .main_2 {
14
+ display: flex;
15
+ height: calc(100vh - $main_margin_4);
16
+ max-width: 1366px - $main_margin_2 + 2px;
17
+ margin: auto;
18
+ }
@@ -1,45 +1,45 @@
1
- .sections_and_offers {
2
- width: 100%;
3
- display: flex;
4
- flex-direction: column;
5
- overflow: hidden;
6
- }
7
-
8
- .sections {
9
- flex-grow: 1;
10
- height: 100%;
11
- overflow: auto;
12
- outline: none;
13
- }
14
-
15
- .section {
16
- margin: $main_margin;
17
- }
18
-
19
- .offers {
20
- @include border_top;
21
-
22
- order: 1;
23
-
24
- .offers_inner {
25
- margin: $main_margin;
26
- margin-top: $gap;
27
- }
28
-
29
- + .sections .section {
30
- margin-bottom: $gap;
31
- }
32
- }
33
-
34
- .subsection {
35
- .name {
36
- margin: 0;
37
- font-weight: bold;
38
- font-size: unset;
39
- text-decoration: underline;
40
-
41
- &:not(:first-child) {
42
- margin-top: $main_margin;
43
- }
44
- }
45
- }
1
+ .sections_and_offers {
2
+ width: 100%;
3
+ display: flex;
4
+ flex-direction: column;
5
+ overflow: hidden;
6
+ }
7
+
8
+ .sections {
9
+ flex-grow: 1;
10
+ height: 100%;
11
+ overflow: auto;
12
+ outline: none;
13
+ }
14
+
15
+ .section {
16
+ margin: $main_margin;
17
+ }
18
+
19
+ .offers {
20
+ @include border_top;
21
+
22
+ order: 1;
23
+
24
+ .offers_inner {
25
+ margin: $main_margin;
26
+ margin-top: $gap;
27
+ }
28
+
29
+ + .sections .section {
30
+ margin-bottom: $gap;
31
+ }
32
+ }
33
+
34
+ .subsection {
35
+ .name {
36
+ margin: 0;
37
+ font-weight: bold;
38
+ font-size: unset;
39
+ text-decoration: underline;
40
+
41
+ &:not(:first-child) {
42
+ margin-top: $main_margin;
43
+ }
44
+ }
45
+ }